Function

Gtkdevice_grab_add

since: 3.0

Declaration [src]

void
gtk_device_grab_add (
  GtkWidget* widget,
  GdkDevice* device,
  gboolean block_others
)

Description [src]

Adds a GTK+ grab on device, so all the events on device and its associated pointer or keyboard (if any) are delivered to widget. If the block_others parameter is TRUE, any other devices will be unable to interact with widget during the grab.

Available since: 3.0

Parameters

widget

Type: GtkWidget

A GtkWidget.

The data is owned by the caller of the function.
device

Type: GdkDevice

A GdkDevice to grab on.

The data is owned by the caller of the function.
block_others

Type: gboolean

TRUE to prevent other devices to interact with widget.