Class: Gtk::PadController
- Inherits:
-
Object
- Object
- Gtk::PadController
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#action_group ⇒ Gio::ActionGroup
Action-group.
- #action_group=(action_group) ⇒ Gio::ActionGroup
-
#new(window, group, pad) ⇒ Gtk::PadController
Creates a new Gtk::PadController that will associate events from pad to actions.
-
#pad ⇒ Gdk::Device
Pad.
- #pad=(pad) ⇒ Gdk::Device
-
#set_action(type, index, mode, label, action_name) ⇒ nil
Adds an individual action to controller.
-
#set_action_entries(entries, n_entries) ⇒ nil
This is a convenience function to add a group of action entries on controller.
Instance Method Details
#action_group ⇒ Gio::ActionGroup
Returns action-group.
#action_group=(action_group) ⇒ Gio::ActionGroup
#new(window, group, pad) ⇒ Gtk::PadController
Creates a new Gtk::PadController that will associate events from pad to actions. A nil pad may be provided so the controller manages all pad devices generically, it is discouraged to mix Gtk::PadController objects with nil and non-nil pad argument on the same window, as execution order is not guaranteed.
The Gtk::PadController 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().
#pad ⇒ Gdk::Device
Returns pad.
#pad=(pad) ⇒ Gdk::Device
#set_action(type, index, mode, label, action_name) ⇒ nil
Adds an individual action to controller. This action will only be activated if the given button/ring/strip number in index is interacted while the current mode is mode. -1 may be used for simple cases, so the action is triggered on all modes.
The given label should be considered user-visible, so internationalization rules apply. Some windowing systems may be able to use those for user feedback.
#set_action_entries(entries, n_entries) ⇒ nil
This is a convenience function to add a group of action entries on controller. See Gtk::PadActionEntry and gtk_pad_controller_set_action().