Top |
gboolean | gdk_selection_owner_set () |
gboolean | gdk_selection_owner_set_for_display () |
GdkWindow * | gdk_selection_owner_get () |
GdkWindow * | gdk_selection_owner_get_for_display () |
void | gdk_selection_convert () |
gint | gdk_selection_property_get () |
void | gdk_selection_send_notify () |
void | gdk_selection_send_notify_for_display () |
typedef | GdkSelection |
typedef | GdkSelectionType |
typedef | GdkTarget |
#define | GDK_SELECTION_PRIMARY |
#define | GDK_SELECTION_SECONDARY |
#define | GDK_SELECTION_CLIPBOARD |
#define | GDK_TARGET_BITMAP |
#define | GDK_TARGET_COLORMAP |
#define | GDK_TARGET_DRAWABLE |
#define | GDK_TARGET_PIXMAP |
#define | GDK_TARGET_STRING |
#define | GDK_SELECTION_TYPE_ATOM |
#define | GDK_SELECTION_TYPE_BITMAP |
#define | GDK_SELECTION_TYPE_COLORMAP |
#define | GDK_SELECTION_TYPE_DRAWABLE |
#define | GDK_SELECTION_TYPE_INTEGER |
#define | GDK_SELECTION_TYPE_PIXMAP |
#define | GDK_SELECTION_TYPE_WINDOW |
#define | GDK_SELECTION_TYPE_STRING |
gboolean gdk_selection_owner_set (GdkWindow *owner
,GdkAtom selection
,guint32 time_
,gboolean send_event
);
gboolean gdk_selection_owner_set_for_display (GdkDisplay *display
,GdkWindow *owner
,GdkAtom selection
,guint32 time_
,gboolean send_event
);
Sets the GdkWindow owner
as the current owner of the selection selection
.
display |
the GdkDisplay. |
|
owner |
a GdkWindow or |
|
selection |
an atom identifying a selection. |
|
time_ |
timestamp to use when setting the selection. If this is older than the timestamp given last time the owner was set for the given selection, the request will be ignored. |
|
send_event |
if |
Since: 2.2
GdkWindow * gdk_selection_owner_get_for_display (GdkDisplay *display
,GdkAtom selection
);
Determine the owner of the given selection.
Note that the return value may be owned by a different process if a foreign window was previously created for that window, but a new foreign window will never be created by this call.
if there is a selection owner for this window, and it is a
window known to the current process, the GdkWindow that owns the
selection, otherwise NULL
.
Since: 2.2
void gdk_selection_convert (GdkWindow *requestor
,GdkAtom selection
,GdkAtom target
,guint32 time_
);
gint gdk_selection_property_get (GdkWindow *requestor
,guchar **data
,GdkAtom *prop_type
,gint *prop_format
);
Retrieves selection data that was stored by the selection
data in response to a call to gdk_selection_convert()
. This function
will not be used by applications, who should use the GtkClipboard
API instead.
requestor |
the window on which the data is stored |
|
data |
location to store a pointer to the retrieved data.
If the retrieval failed, |
|
prop_type |
location to store the type of the property. |
|
prop_format |
location to store the format of the property. |
void gdk_selection_send_notify (GdkNativeWindow requestor
,GdkAtom selection
,GdkAtom target
,GdkAtom property
,guint32 time_
);
void gdk_selection_send_notify_for_display (GdkDisplay *display
,GdkNativeWindow requestor
,GdkAtom selection
,GdkAtom target
,GdkAtom property
,guint32 time_
);
Send a response to SelectionRequest event.
display |
the GdkDisplay where |
|
requestor |
window to which to deliver response. |
|
selection |
selection that was requested. |
|
target |
target that was selected. |
|
property |
property in which the selection owner stored the data,
or |
|
time_ |
timestamp. |
Since: 2.2
typedef GdkAtom GdkSelection;
GdkSelection
is deprecated and should not be used in newly-written code.
typedef GdkAtom GdkSelectionType;
GdkSelectionType
is deprecated and should not be used in newly-written code.
typedef GdkAtom GdkTarget;
GdkTarget
is deprecated and should not be used in newly-written code.