gdkselection.h 2.5 KB
Newer Older
Owen Taylor's avatar
Started  
Owen Taylor committed
1
2
3
4
5
#ifndef __GDK_SELECTION_H__
#define __GDK_SELECTION_H__

#include <gdk/gdktypes.h>

6
G_BEGIN_DECLS
Owen Taylor's avatar
Started  
Owen Taylor committed
7

8
9
10
11
12
13
14
15
16
17
/* Predefined atoms relating to selections. In general, one will need to use
 * gdk_intern_atom
 */
#define GDK_SELECTION_PRIMARY 		_GDK_MAKE_ATOM (1)
#define GDK_SELECTION_SECONDARY 	_GDK_MAKE_ATOM (2)
#define GDK_SELECTION_CLIPBOARD 	_GDK_MAKE_ATOM (69)
#define GDK_TARGET_BITMAP 		_GDK_MAKE_ATOM (5)
#define GDK_TARGET_COLORMAP 		_GDK_MAKE_ATOM (7)
#define GDK_TARGET_DRAWABLE 		_GDK_MAKE_ATOM (17)
#define GDK_TARGET_PIXMAP 		_GDK_MAKE_ATOM (20)
18
#define GDK_TARGET_STRING 		_GDK_MAKE_ATOM (31)
19
20
21
22
23
24
25
#define GDK_SELECTION_TYPE_ATOM 	_GDK_MAKE_ATOM (4)
#define GDK_SELECTION_TYPE_BITMAP 	_GDK_MAKE_ATOM (5)
#define GDK_SELECTION_TYPE_COLORMAP 	_GDK_MAKE_ATOM (7)
#define GDK_SELECTION_TYPE_DRAWABLE 	_GDK_MAKE_ATOM (17)
#define GDK_SELECTION_TYPE_INTEGER 	_GDK_MAKE_ATOM (19)
#define GDK_SELECTION_TYPE_PIXMAP 	_GDK_MAKE_ATOM (20)
#define GDK_SELECTION_TYPE_WINDOW 	_GDK_MAKE_ATOM (33)
26
#define GDK_SELECTION_TYPE_STRING 	_GDK_MAKE_ATOM (31)
27
28
29
30
31
32
33
34

#ifndef GDK_DISABLE_DEPRECATED

typedef GdkAtom GdkSelection;
typedef GdkAtom GdkTarget;
typedef GdkAtom GdkSelectionType;

#endif /* GDK_DISABLE_DEPRECATED */
Owen Taylor's avatar
Started  
Owen Taylor committed
35
36
37

/* Selections
 */
38
39

#ifndef GDK_MULTIHEAD_SAFE
Owen Taylor's avatar
Started  
Owen Taylor committed
40
41
gboolean   gdk_selection_owner_set (GdkWindow	 *owner,
				    GdkAtom	  selection,
42
				    guint32	  time_,
Owen Taylor's avatar
Owen Taylor committed
43
				    gboolean      send_event);
Owen Taylor's avatar
Started  
Owen Taylor committed
44
GdkWindow* gdk_selection_owner_get (GdkAtom	  selection);
45
46
47
48
49
#endif/* GDK_MULTIHEAD_SAFE */

gboolean   gdk_selection_owner_set_for_display (GdkDisplay *display,
						GdkWindow  *owner,
						GdkAtom     selection,
50
						guint32     time_,
51
52
53
54
						gboolean    send_event);
GdkWindow *gdk_selection_owner_get_for_display (GdkDisplay *display,
						GdkAtom     selection);

Owen Taylor's avatar
Started  
Owen Taylor committed
55
56
57
void	   gdk_selection_convert   (GdkWindow	 *requestor,
				    GdkAtom	  selection,
				    GdkAtom	  target,
58
				    guint32	  time_);
Owen Taylor's avatar
Started  
Owen Taylor committed
59
60
61
62
gboolean   gdk_selection_property_get (GdkWindow  *requestor,
				       guchar	 **data,
				       GdkAtom	  *prop_type,
				       gint	  *prop_format);
63
64

#ifndef GDK_MULTIHEAD_SAFE
Owen Taylor's avatar
Started  
Owen Taylor committed
65
66
67
68
void	   gdk_selection_send_notify (guint32	    requestor,
				      GdkAtom	    selection,
				      GdkAtom	    target,
				      GdkAtom	    property,
69
				      guint32	    time_);
70
71
72
73
74
75
76
#endif /* GDK_MULTIHEAD_SAFE */

void       gdk_selection_send_notify_for_display (GdkDisplay *display,
						  guint32     requestor,
						  GdkAtom     selection,
						  GdkAtom     target,
						  GdkAtom     property,
77
						  guint32     time_);
Owen Taylor's avatar
Started  
Owen Taylor committed
78

79
G_END_DECLS
Owen Taylor's avatar
Started  
Owen Taylor committed
80
81

#endif /* __GDK_SELECTION_H__ */