Method
GtkWidgetset_device_events
since: 3.0
Declaration [src]
void
gtk_widget_set_device_events (
GtkWidget* widget,
GdkDevice* device,
GdkEventMask events
)
Description [src]
Sets the device event mask (see GdkEventMask
) for a widget. The event
mask determines which events a widget will receive from device
. Keep
in mind that different widgets have different default event masks, and by
changing the event mask you may disrupt a widget’s functionality,
so be careful. This function must be called while a widget is
unrealized. Consider gtk_widget_add_device_events()
for widgets that are
already realized, or if you want to preserve the existing event
mask. This function can’t be used with windowless widgets (which return
FALSE
from gtk_widget_get_has_window());
to get events on those widgets, place them inside a GtkEventBox
and receive events on the event box.
Available since: 3.0
Parameters
device
-
Type:
GdkDevice
A
GdkDevice
.The data is owned by the caller of the method. events
-
Type:
GdkEventMask
Event mask.