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
GtkBindingSet
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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)
-
activate(keyval:
Extension methodmodifiers: object: ) Find a key binding matching
keyval
andmodifiers
withinbinding_set
and 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
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)
-
bindingEntryAddSignalFromString(signalDesc:
Extension method) Parses a signal description from
signal_desc
and 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
keyval
withmodifiers
onbinding_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_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 methodunique name of this binding set
Declaration
Swift
@inlinable var setName: UnsafeMutablePointer<gchar>! { get set }
-
priority
Extension methodunused
Declaration
Swift
@inlinable var priority: gint { get set }
-
widgetPathPspecs
Extension methodunused
Declaration
Swift
@inlinable var widgetPathPspecs: SListRef! { get set }
-
widgetClassPspecs
Extension methodunused
Declaration
Swift
@inlinable var widgetClassPspecs: SListRef! { get set }
-
classBranchPspecs
Extension methodunused
Declaration
Swift
@inlinable var classBranchPspecs: SListRef! { get set }
-
entries
Extension methodthe key binding entries in this binding set
Declaration
Swift
@inlinable var entries: BindingEntryRef! { get set }
-
current
Extension methodimplementation detail
Declaration
Swift
@inlinable var current: BindingEntryRef! { get set }
-
parsed
Extension methodwhether this binding set stems from a CSS file and is reset upon theme changes
Declaration
Swift
@inlinable var parsed: guint { get set }