Class (GI Struct)

Gtk-3.0GtkBindingSet

A binding set maintains a list of activatable key bindings. A single binding set can match multiple types of widgets. Similar to style contexts, can be matched by any information contained in a widgets Gtk.WidgetPath. When a binding within a set is matched upon activation, an action signal is emitted on the target widget to carry out the actual activation.

Index

Constructors

Properties

class_branch_pspecs: any[]
parsed: number
priority: number
set_name: string
widget_class_pspecs: any[]
widget_path_pspecs: any[]
$gtype: GType<BindingSet>

Methods

  • Find a key binding matching keyval and modifiers within binding_set and activate the binding on object.

    Parameters

    • keyval: number

      key value of the binding

    • modifiers: Gdk.ModifierType

      key modifier of the binding

    • object: GObject.Object

      object to activate when binding found

    Returns boolean

    true if a binding was found and activated

  • Find a binding set by its globally unique name.

    The set_name can either be a name used for gtk_binding_set_new() or the type name of a class used in gtk_binding_set_by_class().

    Parameters

    • set_name: string

      unique binding set name

    Returns BindingSet