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.

  • ptr
    Untyped pointer to the underlying `GtkBindingSet` instance.
    

    For type-safe access, use the generated, typed pointer _ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

BindingSet Record

  • Designated initialiser from the underlying C data type

    Declaration

    Swift

    @inlinable
    init(_ p: UnsafeMutablePointer<GtkBindingSet>)
  • Designated initialiser from a constant pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init(_ p: UnsafePointer<GtkBindingSet>)
  • Conditional initialiser from an optional pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafeMutablePointer<GtkBindingSet>?)
  • Conditional initialiser from an optional, non-mutable pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafePointer<GtkBindingSet>?)
  • Conditional initialiser from an optional gpointer

    Declaration

    Swift

    @inlinable
    init!(gpointer g: gpointer?)
  • Conditional initialiser from an optional, non-mutable gconstpointer

    Declaration

    Swift

    @inlinable
    init!(gconstpointer g: gconstpointer?)
  • Reference intialiser for a related type that implements BindingSetProtocol

    Declaration

    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 of
    

    the 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_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().

    Declaration

    Swift

    @inlinable
    static func find(setName: UnsafePointer<gchar>!) -> BindingSetRef!