Package: gtk

Function gtk-widget-device-enabled

Lambda List

gtk-widget-device-enabled (widget device)

Syntax

(gtk-widget-device-enabled widget devive) => enabled
(setf (gtk-widget-device-enabled widget devide) enabled)

Arguments

widget -- a gtk-widget object
device -- a gdk-device object
enabled -- a boolean whether to enable the device

Details

The gtk-widget-device-enabled function returns whether the device can interact with the widget and its children. The (setf gtk-widget-device-enabled) function enables or disables the device to interact with the widget and all its children.

It does so by descending through the gdk-window object hierarchy and enabling the same mask that is has for core events, i.e. the one that the gdk-window-events function returns.

 

See also

2021-9-16