PadController.this

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 toplevel window, as execution order is not guaranteed.

The GtkPadController is created with no mapped actions. In order to map pad events to actions, use [method@Gtk.PadController.set_action_entries] or [method@Gtk.PadController.set_action].

Be aware that pad events will only be delivered to GtkWindows, so adding a pad controller to any other type of widget will not have an effect.

  1. this(GtkPadController* gtkPadController, bool ownedRef)
  2. this(ActionGroupIF group, Device pad)
    class PadController

Parameters

group ActionGroupIF

GActionGroup to trigger actions from

pad Device

A %GDK_SOURCE_TABLET_PAD device, or %NULL to handle all pads

Return Value

A newly created GtkPadController

Throws

ConstructionException GTK+ fails to create the object.

Meta