EnumClassProtocol

public protocol EnumClassProtocol

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.

The class of an enumeration type holds information about its possible values.

  • ptr

    Untyped pointer to the underlying GEnumClass instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer { get }
  • _ptr Default implementation

    Typed 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 }

EnumClass Record: EnumClassProtocol extension (methods and fields)

  • enumGet(value:) Extension method

    Returns the GEnumValue for a value.

    Declaration

    Swift

    func enumGet(value: CInt) -> UnsafeMutablePointer<GEnumValue>!
  • enumGetValueBy(name:) Extension method

    Looks up a GEnumValue by name.

    Declaration

    Swift

    func enumGetValueBy(name: UnsafePointer<gchar>) -> UnsafeMutablePointer<GEnumValue>!
  • enumGetValueBy(nick:) Extension method

    Looks up a GEnumValue by nickname.

    Declaration

    Swift

    func enumGetValueBy(nick: UnsafePointer<gchar>) -> UnsafeMutablePointer<GEnumValue>!
  • gTypeClass Extension method

    the parent class

    Declaration

    Swift

    var gTypeClass: GTypeClass { get set }
  • minimum Extension method

    the smallest possible value.

    Declaration

    Swift

    var minimum: Int { get set }
  • maximum Extension method

    the largest possible value.

    Declaration

    Swift

    var maximum: Int { get set }
  • nValues Extension method

    the number of possible values.

    Declaration

    Swift

    var nValues: Int { get set }
  • values Extension method

    an array of GEnumValue structs describing the individual values.

    Declaration

    Swift

    var values: UnsafeMutablePointer<GEnumValue> { get set }