]> Pileus Git - ~andy/gtk/blob - gdk/gdkproperty.h
Merges from gtk-1-2
[~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
21 gboolean gdk_property_get    (GdkWindow     *window,
22                               GdkAtom        property,
23                               GdkAtom        type,
24                               gulong         offset,
25                               gulong         length,
26                               gint           pdelete,
27                               GdkAtom       *actual_property_type,
28                               gint          *actual_format,
29                               gint          *actual_length,
30                               guchar       **data);
31 void     gdk_property_change (GdkWindow     *window,
32                               GdkAtom        property,
33                               GdkAtom        type,
34                               gint           format,
35                               GdkPropMode    mode,
36                               const 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,
42                                      gint           format,
43                                      const guchar  *text,
44                                      gint           length,
45                                      gchar       ***list);
46 void gdk_free_text_list             (gchar        **list);
47 gint gdk_string_to_compound_text    (const gchar   *str,
48                                      GdkAtom       *encoding,
49                                      gint          *format,
50                                      guchar       **ctext,
51                                      gint          *length);
52 void gdk_free_compound_text         (guchar        *ctext);
53
54 #ifdef __cplusplus
55 }
56 #endif /* __cplusplus */
57
58 #endif /* __GDK_PROPERTY_H__ */