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
class_branch_pspecs: null[]
parsed: number
priority: number
set_name: string
widget_class_pspecs: null[]
widget_path_pspecs: null[]
$gtype: GType<BindingSet>
  • 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

  • This function was used internally by the GtkRC parsing mechanism to assign match patterns to Gtk.BindingSet structures.

    In GTK+ 3, these match patterns are unused.

    Parameters

    • Deprecatedpath_type: Gtk.PathType

      path type the pattern applies to

    • Deprecatedpath_pattern: string

      the actual match pattern

    • Deprecatedpriority: Gtk.PathPriorityType

      binding priority

    Returns void

    since 3.0

  • 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