W Wrapl, The Programming Language

Libraries:Gtk:Gtk:Grab

Functions

Add(widget @ Gtk.Gtk.Widget.T) : Std.Object.T

Makes widget the current grabbed widget. This means that interaction with other widgets in the same application is blocked and mouse as well as keyboard events are delivered to this widget.

If widget is not sensitive, it is not set as the current grabbed widget and this function does nothing.

widget The widget that grabs keyboard and pointer events.


GetCurrent() : Gtk.Gtk.Widget.T

Queries the current grab of the default window group.

Queries the current grab of the default window group.

Returns The widget which currently has the grab or NULL if no grab is active. [transfer none]


Remove(widget @ Gtk.Gtk.Widget.T) : Std.Object.T

Removes the grab from the given widget. You have to pair calls to Add and Remove.

If widget does not have the grab, this function does nothing.

widget The widget which gives up the grab.