Description Usage Arguments Details Value Author(s)
Grabs the pointer (usually a mouse) so that all events are passed to this
application until the pointer is ungrabbed with gdkPointerUngrab
, or
the grab window becomes unviewable.
This overrides any previous pointer grab by this client.
1 2 |
|
the |
|
if |
|
specifies the event mask, which is used in accordance with
|
|
If non- |
|
the cursor to display while the grab is active. If this is |
|
the timestamp of the event which led to this pointer grab. This usually
comes from a |
Pointer grabs are used for operations which need complete control over mouse
events, even if the mouse leaves the application.
For example in GTK+ it is used for Drag and Drop, for dragging the handle in
the GtkHPaned
and GtkVPaned
widgets, and for resizing columns in GtkCList
widgets.
Note that if the event mask of an X window has selected both button press and
button release events, then a button press event will cause an automatic
pointer grab until the button is released.
X does this automatically since most applications expect to receive button
press and release events in pairs.
It is equivalent to a pointer grab on the window with owner.events
set to
TRUE
.
If you set up anything at the time you take the grab that needs to be cleaned
up when the grab ends, you should handle the GdkEventGrabBroken
events that
are emitted when the grab ends unvoluntarily.
[GdkGrabStatus
] GDK_GRAB_SUCCESS
if the grab was successful.
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.