BindingFlags

public struct BindingFlags : OptionSet

Flags to be passed to g_object_bind_property() or g_object_bind_property_full().

This enumeration can be extended at later date.

  • The corresponding value of the raw type

    Declaration

    Swift

    public var rawValue: UInt32
  • The equivalent raw Int value

    Declaration

    Swift

    public var intValue: Int { get set }
  • int

    The equivalent raw gint value

    Declaration

    Swift

    public var int: gint { get set }
  • The equivalent underlying GBindingFlags enum value

    Declaration

    Swift

    public var value: GBindingFlags { get set }
  • Creates a new instance with the specified raw value

    Declaration

    Swift

    public init(rawValue: UInt32)
  • Creates a new instance with the specified GBindingFlags enum value

    Declaration

    Swift

    public init(_ enumValue: GBindingFlags)
  • Creates a new instance with the specified Int value

    Declaration

    Swift

    public init(_ intValue: Int)
  • Creates a new instance with the specified gint value

    Declaration

    Swift

    public init(_ gintValue: gint)
  • The default binding; if the source property changes, the target property is updated with its value.

    Declaration

    Swift

    public static let `default`: BindingFlags
  • Bidirectional binding; if either the property of the source or the property of the target changes, the other is updated.

    Declaration

    Swift

    public static let bidirectional: BindingFlags
  • Synchronize the values of the source and target properties when creating the binding; the direction of the synchronization is always from the source to the target.

    Declaration

    Swift

    public static let syncCreate: BindingFlags
  • If the two properties being bound are booleans, setting one to true will result in the other being set to false and vice versa. This flag will only work for boolean properties, and cannot be used when passing custom transformation functions to g_object_bind_property_full().

    Declaration

    Swift

    public static let invertBoolean: BindingFlags
  • The default binding; if the source property changes, the target property is updated with its value.

    Declaration

    Swift

    @available(*, deprecated)
    public static let default_: BindingFlags
  • Synchronize the values of the source and target properties when creating the binding; the direction of the synchronization is always from the source to the target.

    Declaration

    Swift

    @available(*, deprecated)
    public static let sync_create: BindingFlags
  • If the two properties being bound are booleans, setting one to true will result in the other being set to false and vice versa. This flag will only work for boolean properties, and cannot be used when passing custom transformation functions to g_object_bind_property_full().

    Declaration

    Swift

    @available(*, deprecated)
    public static let invert_boolean: BindingFlags