TypeQueryProtocol

public protocol TypeQueryProtocol

The TypeQueryProtocol protocol exposes the methods and properties of an underlying GTypeQuery 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 TypeQuery. Alternatively, use TypeQueryRef as a lighweight, unowned reference if you already have an instance you just want to use.

A structure holding information for a specific type. It is filled in by the g_type_query() function.

  • ptr

    Untyped pointer to the underlying GTypeQuery instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer { get }
  • _ptr Default implementation

    Typed pointer to the underlying GTypeQuery instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GTypeQuery instance.

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GTypeQuery> { get }

TypeQuery Record: TypeQueryProtocol extension (methods and fields)

  • typeQuery(type:) Extension method

    Queries the type system for information about a specific type. This function will fill in a user-provided structure to hold type-specific information. If an invalid GType is passed in, the type member of the GTypeQuery is 0. All members filled into the GTypeQuery structure should be considered constant and have to be left untouched.

    Declaration

    Swift

    func typeQuery(type: GType)
  • type Extension method

    the GType value of the type

    Declaration

    Swift

    var type: GType { get set }
  • typeName Extension method

    the name of the type

    Declaration

    Swift

    var typeName: UnsafePointer<CChar> { get set }
  • classSize Extension method

    the size of the class structure

    Declaration

    Swift

    var classSize: Int { get set }
  • instanceSize Extension method

    the size of the instance structure

    Declaration

    Swift

    var instanceSize: Int { get set }