Package: gtk
Function gtk-widget-device-events
Lambda Listgtk-widget-device-events (widget device) SyntaxArgumentsDetails
Accessor of the events mask for the widget corresponding to a specific
device. The gtk-widget-device-events function returns the events mask for the widget corresponding to an specific device. These are the events that the widget will receive when device operates on it. The (setf gtk-widget-device-events) function sets the device event mask for a widget. The event mask determines which events a widget will receive from the device. Keep in mind that different widgets have different default event masks, and by changing the event mask you may disrupt the functionality of the widget, so be careful. This function must be called while a widget is unrealized. Consider the gtk-widget-add-device-events function for widgets that are already realized, or if you want to preserve the existing event mask. This function cannot be used with windowless widgets. To get events on those widgets, place them inside a gtk-event-box widget and receive events on the event box. | See also |
2021-9-21