Constructor
GtkPadControllernew
since: 3.22
Declaration [src]
GtkPadController*
gtk_pad_controller_new (
GtkWindow* window,
GActionGroup* group,
GdkDevice* pad
)
Description [src]
Creates a new GtkPadController
that will associate events from pad
to
actions. A NULL
pad may be provided so the controller manages all pad devices
generically, it is discouraged to mix GtkPadController
objects with NULL
and non-NULL
pad
argument on the same window
, as execution order is not guaranteed.
The GtkPadController
is created with no mapped actions. In order to map pad
events to actions, use gtk_pad_controller_set_action_entries()
or gtk_pad_controller_set_action().
Available since: 3.22
Parameters
window
-
Type:
GtkWindow
A
GtkWindow
.The data is owned by the caller of the function. group
-
Type:
GActionGroup
GActionGroup
to trigger actions from.The data is owned by the caller of the function. pad
-
Type:
GdkDevice
A
GDK_SOURCE_TABLET_PAD
device, orNULL
to handle all pads.The argument can be NULL
.The data is owned by the caller of the function.
Return value
Type: GtkPadController
A newly created GtkPadController
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |