Package: gtk

Function gtk:pad-controller-new

Lambda List

gtk:pad-controller-new (window group pad)

Arguments

window -- a gtk:window widget
group -- a g:action-group instance to trigger actions from
pad -- a gdk:device object of :tablet-pad type, or nil to handle all pads

Return Value

The newly created gtk:pad-controller object.

Details

Creates a new gtk:pad-controller object 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 gtk:pad-controller objects with NULL and non-NULL pad argument on the same window, as execution order is not guaranteed.

The gtk:pad-controller object is created with no mapped actions. In order to map pad events to actions, use the gtk:pad-controller-set-action-entries or gtk:pad-controller-set-action functions.

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

See also

2024-4-5