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.
-
Untyped pointer to the underlying
GTypeQuery
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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(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, thetype
member of theGTypeQuery
is 0. All members filled into theGTypeQuery
structure should be considered constant and have to be left untouched.Declaration
Swift
@inlinable func typeQuery(type: GType)
-
type
Extension methodthe
GType
value of the typeDeclaration
Swift
@inlinable var type: GType { get set }
-
typeName
Extension methodthe name of the type
Declaration
Swift
@inlinable var typeName: UnsafePointer<gchar>! { get set }
-
classSize
Extension methodthe size of the class structure
Declaration
Swift
@inlinable var classSize: guint { get set }
-
instanceSize
Extension methodthe size of the instance structure
Declaration
Swift
@inlinable var instanceSize: guint { get set }