Initializer
init(name:cname:type:instance:comment:introspectable:deprecated:varargs:isNullable:allowNone:isOptional:callerAllocates:ownershipTransfer:direction:)
default constructor
init(name: String, cname: String, type: TypeReference, instance: Bool, comment: String, introspectable: Bool = false, deprecated: String? = nil, varargs: Bool = false, isNullable: Bool = false, allowNone: Bool = false, isOptional: Bool = false, callerAllocates: Bool = false, ownershipTransfer: OwnershipTransfer = .none, direction: ParameterDirection = .in)
Parameters
name-
The name of the
Argumentto initialise cname-
C identifier
type-
The corresponding, underlying GIR type
instance-
trueif this is an instance parameter comment-
Documentation text for the type
introspectable-
Set to
trueif introspectable deprecated-
Documentation on deprecation status if non-
nil varargs-
trueif this is a varargs(...)parameter isNullable-
trueif this is a nullable parameter or return type allowNone-
trueif this parameter can be omitted isOptional-
trueif this is an optional (out) parameter callerAllocates-
trueif this is caller allocated ownershipTransfer-
Model of ownership transfer used
direction-
Whether this is an
in,out, orinoutparamete