Widget.setDeviceEnabled

Enables or disables a #GdkDevice to interact with widget and all its children.

It does so by descending through the #GdkWindow hierarchy and enabling the same mask that is has for core events (i.e. the one that gdk.window.Window.getEvents returns).

class Widget
void
setDeviceEnabled

Parameters

device gdk.device.Device

a #GdkDevice

enabled bool

whether to enable the device