ParamFlags
public struct ParamFlags : OptionSet
Through the GParamFlags
flag values, certain aspects of parameters
can be configured.
See also: G_PARAM_STATIC_STRINGS
-
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
GParamFlags
enum valueDeclaration
Swift
@inlinable public var value: GParamFlags { 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
GParamFlags
enum valueDeclaration
Swift
@inlinable public init(_ enumValue: GParamFlags)
-
Creates a new instance with the specified Int value
Declaration
Swift
@inlinable public init<I>(_ intValue: I) where I : BinaryInteger
-
the parameter is readable
Declaration
Swift
public static let readable: ParamFlags
-
the parameter is writable
Declaration
Swift
public static let writable: ParamFlags
-
alias for
G_PARAM_READABLE
|G_PARAM_WRITABLE
Declaration
Swift
public static let readwrite: ParamFlags
-
the parameter will be set upon object construction
Declaration
Swift
public static let construct: ParamFlags
-
the parameter can only be set upon object construction
Declaration
Swift
public static let constructOnly: ParamFlags
-
upon parameter conversion (see
g_param_value_convert()
) strict validation is not requiredDeclaration
Swift
public static let laxValidation: ParamFlags
-
the string used as name when constructing the parameter is guaranteed to remain valid and unmodified for the lifetime of the parameter. Since 2.8
Declaration
Swift
public static let staticName: ParamFlags
-
internal
Declaration
Swift
public static let `private`: ParamFlags
-
the string used as nick when constructing the parameter is guaranteed to remain valid and unmmodified for the lifetime of the parameter. Since 2.8
Declaration
Swift
public static let staticNick: ParamFlags
-
the string used as blurb when constructing the parameter is guaranteed to remain valid and unmodified for the lifetime of the parameter. Since 2.8
Declaration
Swift
public static let staticBlurb: ParamFlags
-
calls to
g_object_set_property()
for this property will not automatically result in a “notify” signal being emitted: the implementation must callg_object_notify()
themselves in case the property actually changes. Since: 2.42.Declaration
Swift
public static let explicitNotify: ParamFlags
-
the parameter is deprecated and will be removed in a future version. A warning will be generated if it is used while running with G_ENABLE_DIAGNOSTIC=1. Since 2.26
Declaration
Swift
public static let deprecated: ParamFlags