FlagsClassProtocol

public protocol FlagsClassProtocol

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.

The class of a flags type holds information about its possible values.

  • ptr

    Untyped pointer to the underlying GFlagsClass instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • _ptr Default implementation

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

FlagsClass Record: FlagsClassProtocol extension (methods and fields)