Initializer
init(_:swiftName:typeName:ctype:superType:isAlias:conversions:)
Convenience initialiser for a top-level GIR type
convenience init(_ knownName: String, swiftName: String? = nil, typeName: String? = nil, ctype: String, superType: TypeReference? = nil, isAlias: Bool = false, conversions: [GIRType : [TypeConversion]] = [:])
Parameters
knownName-
The unqualified name of the type known at top level in the default
Swiftnamespace. swiftName-
The name of the type in Swift (empty or
nilif same asname) typeName-
The name of the underlying type (empty or
nilif same asswiftName) ctype-
The name of the type in C
superType-
The parent or alias type (or
nilif fundamental) isAlias-
An indicator whether the type is an alias of its supertype that does not need casting
conversions-
Conversion dictionary to use