BindingSetRef
public struct BindingSetRef : 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 BindingSetRef type acts as a lightweight Swift reference to an underlying GtkBindingSet instance.
It exposes methods that can operate on this data type through BindingSetProtocol conformance.
Use BindingSetRef only as an unowned reference to an existing GtkBindingSet instance.
-
Untyped pointer to the underlying `GtkBindingSet` instance.For type-safe access, use the generated, typed pointer
_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkBindingSet>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkBindingSet>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkBindingSet>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkBindingSet>?) -
Conditional initialiser from an optional
gpointerDeclaration
Swift
@inlinable init!(gpointer g: gpointer?) -
Conditional initialiser from an optional, non-mutable
gconstpointerDeclaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?) -
Reference intialiser for a related type that implements
BindingSetProtocolDeclaration
Swift
@inlinable init<T>(_ other: T) where T : BindingSetProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
BindingSetProtocol.Declaration
Swift
@inlinable init<T>(cPointer: UnsafeMutablePointer<T>) -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
BindingSetProtocol.Declaration
Swift
@inlinable init<T>(constPointer: UnsafePointer<T>) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
BindingSetProtocol.Declaration
Swift
@inlinable init(mutating raw: UnsafeRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
BindingSetProtocol.Declaration
Swift
@inlinable init(raw: UnsafeMutableRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
BindingSetProtocol.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer) -
This function returns the binding set named after the type name ofthe passed in class structure. New binding sets are created on demand by this function.
Declaration
Swift
@inlinable static func byClass(objectClass: gpointer! = nil) -> BindingSetRef! -
Find a binding set by its globally unique name.
The
set_namecan either be a name used forgtk_binding_set_new()or the type name of a class used ingtk_binding_set_by_class().Declaration
Swift
@inlinable static func find(setName: UnsafePointer<gchar>!) -> BindingSetRef!
View on GitHub
Install in Dash
BindingSetRef Structure Reference