EnumClassProtocol
public protocol EnumClassProtocol
The class of an enumeration type holds information about its possible values.
The EnumClassProtocol
protocol exposes the methods and properties of an underlying GEnumClass
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 EnumClass
.
Alternatively, use EnumClassRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GEnumClass
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GEnumClass
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GEnumClass
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GEnumClass>! { get }
-
Required Initialiser for types conforming to
EnumClassProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
enumGet(value:
Extension method) Returns the
GEnumValue
for a value.Declaration
Swift
@inlinable func enumGet(value: Int) -> GLibObject.EnumValueRef!
-
enumGetValueBy(name:
Extension method) Looks up a
GEnumValue
by name.Declaration
Swift
@inlinable func enumGetValueBy(name: UnsafePointer<gchar>!) -> GLibObject.EnumValueRef!
-
enumGetValueBy(nick:
Extension method) Looks up a
GEnumValue
by nickname.Declaration
Swift
@inlinable func enumGetValueBy(nick: UnsafePointer<gchar>!) -> GLibObject.EnumValueRef!
-
gTypeClass
Extension methodthe parent class
Declaration
Swift
@inlinable var gTypeClass: GTypeClass { get set }
-
minimum
Extension methodthe smallest possible value.
Declaration
Swift
@inlinable var minimum: gint { get set }
-
maximum
Extension methodthe largest possible value.
Declaration
Swift
@inlinable var maximum: gint { get set }
-
nValues
Extension methodthe number of possible values.
Declaration
Swift
@inlinable var nValues: guint { get set }
-
values
Extension methodan array of
GEnumValue
structs describing the individual values.Declaration
Swift
@inlinable var values: EnumValueRef! { get set }