Gtk.Widget.prototype.set_device_enabled
function set_device_enabled(device:Gdk.Device, enabled:Boolean):void { // Gjs wrapper for gtk_widget_set_device_enabled() }
Enables or disables a Gdk.Device to interact with widget and all its children.
It does so by descending through the Gdk.Window hierarchy and enabling the same mask that is has for core events (i.e. the one that Gdk.get_events returns).
Since 3.0
- device
- enabled
whether to enable the device