device_grab_add
function device_grab_add(widget:Gtk.Widget, device:Gdk.Device, block_others:Boolean):void { // Gjs wrapper for gtk_device_grab_add() }
Adds a GTK+ grab on device, so all the events on device and its associated pointer or keyboard (if any) are delivered to widget. If the block_others parameter is true, any other devices will be unable to interact with widget during the grab.
Since 3.0
- widget
- device
a Gdk.Device to grab on.
- block_others
true to prevent other devices to interact with widget.