Datatype

public class Datatype : Thing

GIR type class

  • String representation of the Datatype thing

    Declaration

    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 initialise

    type

    C typedef name of the data type

    comment

    Documentation text for the data type

    introspectable

    Set to true if introspectable

    deprecated

    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 from

    i

    Index within the siblings of the node

    nameAttr

    Key for the attribute to extract the name property from

    typeAttr

    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 from

    i

    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 is void

    Declaration

    Swift

    public var isVoid: Bool { get }