-
String representation of the
Datatype
thingDeclaration
Swift
public override var kind: String { get }
-
C typedef name
Declaration
Swift
public let type: String
-
Memberwise initialiser
Declaration
Swift
public init(name: String, type: String, comment: String, introspectable: Bool = false, deprecated: String? = nil)
Parameters
name
The name of the
Datatype
to initialisetype
C typedef name of the data type
comment
Documentation text for the data type
introspectable
Set to
true
if introspectabledeprecated
Documentation on deprecation status if non-
nil
version
The version this data type is first available in
-
XML Element initialser
Declaration
Swift
public init(node: XMLElement, atIndex i: Int, nameAttr: String = "name", typeAttr: String = "type")
Parameters
node
XMLElement
to construct this data type fromi
Index within the siblings of the
node
nameAttr
Key for the attribute to extract the
name
property fromtypeAttr
Key for the attribute to extract the
type
property from -
XML Element initialser
Declaration
Swift
public init(node: XMLElement, atIndex i: Int, withType t: String, nameAttr: String = "name")
Parameters
node
XMLElement
to construct this data type fromi
Index within the siblings of the
node
t
Type string of the data type
nameAttr
Key for the attribute to extract the
name
property from -
Returns
true
if the data type isvoid
Declaration
Swift
public var isVoid: Bool { get }