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
@inlinable public var intValue: Int { get set }
-
The equivalent raw
gint
valueDeclaration
Swift
@inlinable public var int: gint { get set }
-
The equivalent underlying
GBindingFlags
enum valueDeclaration
Swift
@inlinable public var value: GBindingFlags { get set }
-
Creates a new instance with the specified raw value
Declaration
Swift
@inlinable public init(rawValue: UInt32)
-
Creates a new instance with the specified
GBindingFlags
enum valueDeclaration
Swift
@inlinable public init(_ enumValue: GBindingFlags)
-
Creates a new instance with the specified Int value
Declaration
Swift
@inlinable public init<I>(_ intValue: I) where I : BinaryInteger
-
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 tofalse
and vice versa. This flag will only work for boolean properties, and cannot be used when passing custom transformation functions tog_object_bind_property_full()
.Declaration
Swift
public static let invertBoolean: BindingFlags