Gjsify LogoGjsify Logo

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 #GtkWidgetPath. 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.

record

Hierarchy

  • BindingSet

Index

Constructors

Properties

class_branch_pspecs: object[]

unused

field
current: Gtk.BindingEntry

implementation detail

field
entries: Gtk.BindingEntry

the key binding entries in this binding set

field
parsed: number

whether this binding set stems from a CSS file and is reset upon theme changes

field
priority: number

unused

field
set_name: string

unique name of this binding set

field
widget_class_pspecs: object[]

unused

field
widget_path_pspecs: object[]

unused

field
name: string

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

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

    In GTK+ 3, these match patterns are unused.

    Parameters

    • path_type: Gtk.PathType

      path type the pattern applies to

    • path_pattern: string

      the actual match pattern

    • priority: Gtk.PathPriorityType

      binding priority

    Returns void

  • 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 Gtk.BindingSet

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method