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.
-
Untyped pointer to the underlying
GtkBindingSetinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GtkBindingSetinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkBindingSetinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GtkBindingSet>! { get } -
Required Initialiser for types conforming to
BindingSetProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
activate(keyval:Extension methodmodifiers: object: ) Find a key binding matching
keyvalandmodifierswithinbinding_setand activate the binding onobject.Declaration
Swift
@inlinable func activate<ObjectT>(keyval: Int, modifiers: Gdk.ModifierType, object: ObjectT) -> Bool where ObjectT : ObjectProtocol -
addPath(pathType:Extension methodpathPattern: priority: ) This function was used internally by the GtkRC parsing mechanism to assign match patterns to
GtkBindingSetstructures.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) -
bindingEntryAddSignalFromString(signalDesc:Extension method) Parses a signal description from
signal_descand incorporates it intobinding_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 -
bindingEntryAddSignall(keyval:Extension methodmodifiers: signalName: bindingArgs: ) Override or install a new key binding for
keyvalwithmodifiersonbinding_set.Declaration
Swift
@inlinable func bindingEntryAddSignall<SListT>(keyval: Int, modifiers: Gdk.ModifierType, signalName: UnsafePointer<gchar>!, bindingArgs: SListT) where SListT : SListProtocol -
bindingEntryRemove(keyval:Extension methodmodifiers: ) Remove a binding previously installed via
gtk_binding_entry_add_signal()onbinding_set.Declaration
Swift
@inlinable func bindingEntryRemove(keyval: Int, modifiers: Gdk.ModifierType) -
bindingEntrySkip(keyval:Extension methodmodifiers: ) Install a binding on
binding_setwhich 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) -
setNameExtension methodunique name of this binding set
Declaration
Swift
@inlinable var setName: UnsafeMutablePointer<gchar>! { get set } -
priorityExtension methodunused
Declaration
Swift
@inlinable var priority: gint { get set } -
widgetPathPspecsExtension methodunused
Declaration
Swift
@inlinable var widgetPathPspecs: SListRef! { get set } -
widgetClassPspecsExtension methodunused
Declaration
Swift
@inlinable var widgetClassPspecs: SListRef! { get set } -
classBranchPspecsExtension methodunused
Declaration
Swift
@inlinable var classBranchPspecs: SListRef! { get set } -
entriesExtension methodthe key binding entries in this binding set
Declaration
Swift
@inlinable var entries: BindingEntryRef! { get set } -
currentExtension methodimplementation detail
Declaration
Swift
@inlinable var current: BindingEntryRef! { get set } -
parsedExtension methodwhether this binding set stems from a CSS file and is reset upon theme changes
Declaration
Swift
@inlinable var parsed: guint { get set }
View on GitHub
Install in Dash
BindingSetProtocol Protocol Reference