Initializer
init(type:in:identifier:isConst:isOptional:isArray:constPointers:)
Designated initialiser for a type reference
init(type: GIRType, in namespace: String? = nil, identifier: String? = nil, isConst: Bool = false, isOptional: Bool = false, isArray: Bool = false, constPointers: [Bool] = [])
Parameters
type-
The type to reference
namespace-
The namespace to use,
nilto use referenced type namespace identifier-
The identifier for this instance (e.g. C enum case name)
isConst-
Whether or not this reference is to a
constinstance isOptional-
Whether or not this instance is nullable
isArray-
Whether or not this is an array
constPointers-
Array of booleans representing indirection levels (pointers),
trueif the pointer isconst