Documentation Language: Swift

Initializer

init(name:containedType:in:swiftName:typeName:ctype:superType:isAlias:conversions:)

Designated initialiser for a generic GIR type

init(name: String, containedType: GIRType, in namespace: String, swiftName: String? = nil, typeName: String? = nil, ctype: String, superType: TypeReference? = nil, isAlias: Bool = false, conversions: [GIRType : [TypeConversion]] = [:])

Parameters

name

The name of the type without a namespace

containedType

The type contained within this generic type

namespace

The namespace (empty if top-level C)

swiftName

The name of the type in Swift (empty or nil if same as name)

typeName

The name of the underlying type (empty or nil if same as swiftName)

ctype

The name of the type in C

superType

The parent or alias type (or nil if fundamental)

isAlias

An indicator whether the type is an alias of its supertype that does not need casting

conversions

Conversion dictionary to use