FlagsClassProtocol
public protocol FlagsClassProtocol
The class of a flags type holds information about its possible values.
The FlagsClassProtocol
protocol exposes the methods and properties of an underlying GFlagsClass
instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see FlagsClass
.
Alternatively, use FlagsClassRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GFlagsClass
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GFlagsClass
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GFlagsClass
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GFlagsClass>! { get }
-
Required Initialiser for types conforming to
FlagsClassProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
flagsGetFirst(value:
Extension method) Returns the first
GFlagsValue
which is set invalue
.Declaration
Swift
@inlinable func flagsGetFirst(value: Int) -> GLibObject.FlagsValueRef!
-
flagsGetValueBy(name:
Extension method) Looks up a
GFlagsValue
by name.Declaration
Swift
@inlinable func flagsGetValueBy(name: UnsafePointer<gchar>!) -> GLibObject.FlagsValueRef!
-
flagsGetValueBy(nick:
Extension method) Looks up a
GFlagsValue
by nickname.Declaration
Swift
@inlinable func flagsGetValueBy(nick: UnsafePointer<gchar>!) -> GLibObject.FlagsValueRef!
-
gTypeClass
Extension methodthe parent class
Declaration
Swift
@inlinable var gTypeClass: GTypeClass { get set }
-
mask
Extension methoda mask covering all possible values.
Declaration
Swift
@inlinable var mask: guint { get set }
-
nValues
Extension methodthe number of possible values.
Declaration
Swift
@inlinable var nValues: guint { get set }
-
values
Extension methodan array of
GFlagsValue
structs describing the individual values.Declaration
Swift
@inlinable var values: FlagsValueRef! { get set }