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)