BindingSetProtocol

public protocol BindingSetProtocol

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.

The BindingSetProtocol protocol exposes the methods and properties of an underlying GtkBindingSet instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see BindingSet. Alternatively, use BindingSetRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying GtkBindingSet instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • _ptr Default implementation

    Typed pointer to the underlying GtkBindingSet instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GtkBindingSet instance.

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GtkBindingSet>! { get }
  • Required Initialiser for types conforming to BindingSetProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

BindingSet Record: BindingSetProtocol extension (methods and fields)

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

    Declaration

    Swift

    @inlinable
    func activate<ObjectT>(keyval: Int, modifiers: Gdk.ModifierType, object: ObjectT) -> Bool where ObjectT : ObjectProtocol
  • 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.

    add_path is deprecated: This method is deprecated.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func addPath(pathType: GtkPathType, pathPattern: UnsafePointer<gchar>!, priority: GtkPathPriorityType)
  • Parses a signal description from signal_desc and incorporates it into binding_set.

    Signal descriptions may either bind a key combination to one or more signals:

      bind "key" {
        "signalname" (param, ...)
        ...
      }
    

    Or they may also unbind a key combination:

      unbind "key"
    

    Key combinations must be in a format that can be parsed by gtk_accelerator_parse().

    Declaration

    Swift

    @inlinable
    func bindingEntryAddSignalFromString(signalDesc: UnsafePointer<gchar>!) -> GTokenType
  • Override or install a new key binding for keyval with modifiers on binding_set.

    Declaration

    Swift

    @inlinable
    func bindingEntryAddSignall<SListT>(keyval: Int, modifiers: Gdk.ModifierType, signalName: UnsafePointer<gchar>!, bindingArgs: SListT) where SListT : SListProtocol
  • Remove a binding previously installed via gtk_binding_entry_add_signal() on binding_set.

    Declaration

    Swift

    @inlinable
    func bindingEntryRemove(keyval: Int, modifiers: Gdk.ModifierType)
  • Install a binding on binding_set which causes key lookups to be aborted, to prevent bindings from lower priority sets to be activated.

    Declaration

    Swift

    @inlinable
    func bindingEntrySkip(keyval: Int, modifiers: Gdk.ModifierType)
  • setName Extension method

    unique name of this binding set

    Declaration

    Swift

    @inlinable
    var setName: UnsafeMutablePointer<gchar>! { get set }
  • priority Extension method

    unused

    Declaration

    Swift

    @inlinable
    var priority: gint { get set }
  • widgetPathPspecs Extension method

    unused

    Declaration

    Swift

    @inlinable
    var widgetPathPspecs: SListRef! { get set }
  • widgetClassPspecs Extension method

    unused

    Declaration

    Swift

    @inlinable
    var widgetClassPspecs: SListRef! { get set }
  • classBranchPspecs Extension method

    unused

    Declaration

    Swift

    @inlinable
    var classBranchPspecs: SListRef! { get set }
  • entries Extension method

    the key binding entries in this binding set

    Declaration

    Swift

    @inlinable
    var entries: BindingEntryRef! { get set }
  • current Extension method

    implementation detail

    Declaration

    Swift

    @inlinable
    var current: BindingEntryRef! { get set }
  • parsed Extension method

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

    Declaration

    Swift

    @inlinable
    var parsed: guint { get set }