FlagsValueProtocol
public protocol FlagsValueProtocol
A structure which contains a single flags value, its name, and its nickname.
The FlagsValueProtocol
protocol exposes the methods and properties of an underlying GFlagsValue
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 FlagsValue
.
Alternatively, use FlagsValueRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GFlagsValue
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GFlagsValue
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GFlagsValue
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GFlagsValue>! { get }
-
Required Initialiser for types conforming to
FlagsValueProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
flagsCompleteTypeInfo(gFlagsType:
Extension methodinfo: ) This function is meant to be called from the
complete_type_info()
function of aGTypePlugin
implementation, see the example forg_enum_complete_type_info()
above.Declaration
Swift
@inlinable func flagsCompleteTypeInfo<TypeInfoT>(gFlagsType: GType, info: TypeInfoT) where TypeInfoT : TypeInfoProtocol
-
flagsRegisterStatic(name:
Extension method) Registers a new static flags type with the name
name
.It is normally more convenient to let glib-mkenums generate a
my_flags_get_type()
function from a usual C enumeration definition than to write one yourself usingg_flags_register_static()
.Declaration
Swift
@inlinable func flagsRegisterStatic(name: UnsafePointer<gchar>!) -> GType
-
value
Extension methodthe flags value
Declaration
Swift
@inlinable var value: guint { get set }
-
valueName
Extension methodthe name of the value
Declaration
Swift
@inlinable var valueName: UnsafePointer<gchar>! { get set }
-
valueNick
Extension methodthe nickname of the value
Declaration
Swift
@inlinable var valueNick: UnsafePointer<gchar>! { get set }