Function

Gtkdevice_grab_add

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 GtkWidget
 

A GtkWidget.

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

A GdkDevice to grab on.

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

TRUE to prevent other devices to interact with widget.