TypeQueryProtocol

public protocol TypeQueryProtocol

A structure holding information for a specific type.

See also: g_type_query()

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.

  • 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 }
  • Required Initialiser for types conforming to TypeQueryProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

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

    @inlinable
    func typeQuery(type: GType)
  • type Extension method

    the GType value of the type

    Declaration

    Swift

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

    the name of the type

    Declaration

    Swift

    @inlinable
    var typeName: UnsafePointer<gchar>! { get set }
  • classSize Extension method

    the size of the class structure

    Declaration

    Swift

    @inlinable
    var classSize: guint { get set }
  • instanceSize Extension method

    the size of the instance structure

    Declaration

    Swift

    @inlinable
    var instanceSize: guint { get set }