]> Pileus Git - ~andy/gtk/blob - gdk/gdkselection.h
these should be 31, not 3. Hooray for Xatoms (and not using the XA_*
[~andy/gtk] / gdk / gdkselection.h
1 #ifndef __GDK_SELECTION_H__
2 #define __GDK_SELECTION_H__
3
4 #include <gdk/gdktypes.h>
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif /* __cplusplus */
9
10 /* Predefined atoms relating to selections. In general, one will need to use
11  * gdk_intern_atom
12  */
13 #define GDK_SELECTION_PRIMARY           _GDK_MAKE_ATOM (1)
14 #define GDK_SELECTION_SECONDARY         _GDK_MAKE_ATOM (2)
15 #define GDK_SELECTION_CLIPBOARD         _GDK_MAKE_ATOM (69)
16 #define GDK_TARGET_BITMAP               _GDK_MAKE_ATOM (5)
17 #define GDK_TARGET_COLORMAP             _GDK_MAKE_ATOM (7)
18 #define GDK_TARGET_DRAWABLE             _GDK_MAKE_ATOM (17)
19 #define GDK_TARGET_PIXMAP               _GDK_MAKE_ATOM (20)
20 #define GDK_TARGET_STRING               _GDK_MAKE_ATOM (31)
21 #define GDK_SELECTION_TYPE_ATOM         _GDK_MAKE_ATOM (4)
22 #define GDK_SELECTION_TYPE_BITMAP       _GDK_MAKE_ATOM (5)
23 #define GDK_SELECTION_TYPE_COLORMAP     _GDK_MAKE_ATOM (7)
24 #define GDK_SELECTION_TYPE_DRAWABLE     _GDK_MAKE_ATOM (17)
25 #define GDK_SELECTION_TYPE_INTEGER      _GDK_MAKE_ATOM (19)
26 #define GDK_SELECTION_TYPE_PIXMAP       _GDK_MAKE_ATOM (20)
27 #define GDK_SELECTION_TYPE_WINDOW       _GDK_MAKE_ATOM (33)
28 #define GDK_SELECTION_TYPE_STRING       _GDK_MAKE_ATOM (31)
29
30 #ifndef GDK_DISABLE_DEPRECATED
31
32 typedef GdkAtom GdkSelection;
33 typedef GdkAtom GdkTarget;
34 typedef GdkAtom GdkSelectionType;
35
36 #endif /* GDK_DISABLE_DEPRECATED */
37
38 /* Selections
39  */
40 gboolean   gdk_selection_owner_set (GdkWindow    *owner,
41                                     GdkAtom       selection,
42                                     guint32       time,
43                                     gboolean      send_event);
44 GdkWindow* gdk_selection_owner_get (GdkAtom       selection);
45 void       gdk_selection_convert   (GdkWindow    *requestor,
46                                     GdkAtom       selection,
47                                     GdkAtom       target,
48                                     guint32       time);
49 gboolean   gdk_selection_property_get (GdkWindow  *requestor,
50                                        guchar    **data,
51                                        GdkAtom    *prop_type,
52                                        gint       *prop_format);
53 void       gdk_selection_send_notify (guint32       requestor,
54                                       GdkAtom       selection,
55                                       GdkAtom       target,
56                                       GdkAtom       property,
57                                       guint32       time);
58
59 #ifdef __cplusplus
60 }
61 #endif /* __cplusplus */
62
63 #endif /* __GDK_SELECTION_H__ */