]> Pileus Git - ~andy/gtk/blob - gdk/gdkproperty.h
afba2d2bfe4a0a239d18f5b7f14f70b62c77d1b3
[~andy/gtk] / gdk / gdkproperty.h
1 #ifndef __GDK_PROPERTY_H__
2 #define __GDK_PROPERTY_H__
3
4 #include <gdk/gdktypes.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif /* __cplusplus */
9
10 typedef enum
11 {
12   GDK_PROP_MODE_REPLACE,
13   GDK_PROP_MODE_PREPEND,
14   GDK_PROP_MODE_APPEND
15 } GdkPropMode;
16
17 GdkAtom gdk_atom_intern     (const gchar *atom_name,
18                              gboolean     only_if_exists);
19 gchar*  gdk_atom_name       (GdkAtom atom);
20 gboolean gdk_property_get   (GdkWindow   *window,
21                              GdkAtom      property,
22                              GdkAtom      type,
23                              gulong       offset,
24                              gulong       length,
25                              gint         pdelete,
26                              GdkAtom     *actual_property_type,
27                              gint        *actual_format,
28                              gint        *actual_length,
29                              guchar     **data);
30
31 void    gdk_property_change (GdkWindow   *window,
32                              GdkAtom      property,
33                              GdkAtom      type,
34                              gint         format,
35                              GdkPropMode  mode,
36                              guchar      *data,
37                              gint         nelements);
38 void    gdk_property_delete (GdkWindow   *window,
39                              GdkAtom      property);
40
41 gint       gdk_text_property_to_text_list (GdkAtom encoding, gint format,
42                                            guchar *text, gint length,
43                                            gchar ***list);
44 void       gdk_free_text_list             (gchar **list);
45 gint       gdk_string_to_compound_text    (gchar *str,
46                                            GdkAtom *encoding, gint *format,
47                                            guchar **ctext, gint *length);
48 void       gdk_free_compound_text         (guchar *ctext);
49
50 #ifdef __cplusplus
51 }
52 #endif /* __cplusplus */
53
54 #endif /* __GDK_PROPERTY_H__ */