Documentation Language: Swift

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, nil to 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 const instance

isOptional

Whether or not this instance is nullable

isArray

Whether or not this is an array

constPointers

Array of booleans representing indirection levels (pointers), true if the pointer is const