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)

  • flagsGetFirst(value:) Extension method

    Returns the first GFlagsValue which is set in value.

    Declaration

    Swift

    func flagsGetFirst(value: CUnsignedInt) -> UnsafeMutablePointer<GFlagsValue>!
  • flagsGetValueBy(name:) Extension method

    Looks up a GFlagsValue by name.

    Declaration

    Swift

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

    Looks up a GFlagsValue by nickname.

    Declaration

    Swift

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

    the parent class

    Declaration

    Swift

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

    a mask covering all possible values.

    Declaration

    Swift

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

    the number of possible values.

    Declaration

    Swift

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

    an array of GFlagsValue structs describing the individual values.

    Declaration

    Swift

    var values: UnsafeMutablePointer<GFlagsValue> { get set }