00001 #ifndef __GDK_SELECTION_H__
00002 #define __GDK_SELECTION_H__
00003
00004 #include <gdk/gdktypes.h>
00005
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009
00010
00011
00012
00013 typedef enum {
00014 GDK_SELECTION_PRIMARY = 1,
00015 GDK_SELECTION_SECONDARY = 2
00016 } GdkSelection;
00017
00018 typedef enum {
00019 GDK_TARGET_BITMAP = 5,
00020 GDK_TARGET_COLORMAP = 7,
00021 GDK_TARGET_DRAWABLE = 17,
00022 GDK_TARGET_PIXMAP = 20,
00023 GDK_TARGET_STRING = 31
00024 } GdkTarget;
00025
00026 typedef enum {
00027 GDK_SELECTION_TYPE_ATOM = 4,
00028 GDK_SELECTION_TYPE_BITMAP = 5,
00029 GDK_SELECTION_TYPE_COLORMAP = 7,
00030 GDK_SELECTION_TYPE_DRAWABLE = 17,
00031 GDK_SELECTION_TYPE_INTEGER = 19,
00032 GDK_SELECTION_TYPE_PIXMAP = 20,
00033 GDK_SELECTION_TYPE_WINDOW = 33,
00034 GDK_SELECTION_TYPE_STRING = 31
00035 } GdkSelectionType;
00036
00037
00038
00039 gboolean gdk_selection_owner_set(GdkWindow * owner,
00040 GdkAtom selection,
00041 guint32 time, gboolean send_event);
00042 GdkWindow *gdk_selection_owner_get(GdkAtom selection);
00043 void gdk_selection_convert(GdkWindow * requestor,
00044 GdkAtom selection,
00045 GdkAtom target, guint32 time);
00046 gboolean gdk_selection_property_get(GdkWindow * requestor,
00047 guchar ** data,
00048 GdkAtom * prop_type,
00049 gint * prop_format);
00050 void gdk_selection_send_notify(guint32 requestor,
00051 GdkAtom selection,
00052 GdkAtom target,
00053 GdkAtom property, guint32 time);
00054
00055 #ifdef __cplusplus
00056 }
00057 #endif
00058 #endif