Method

GdkWindowset_device_events

since: 3.0

Declaration [src]

void
gdk_window_set_device_events (
  GdkWindow* window,
  GdkDevice* device,
  GdkEventMask event_mask
)

Description [src]

Sets the event mask for a given device (Normally a floating device, not attached to any visible pointer) to window. For example, an event mask including #GDK_BUTTON_PRESS_MASK means the window should report button press events. The event mask is the bitwise OR of values from the GdkEventMask enumeration.

See the [input handling overview][event-masks] for details.

Available since: 3.0

Parameters

device

Type: GdkDevice

GdkDevice to enable events for.

The data is owned by the caller of the method.
event_mask

Type: GdkEventMask

Event mask for window.