-
String representation of
Constant
sDeclaration
Swift
public override var kind: String { get }
-
raw value
Declaration
Swift
public let value: Int
-
Designated initialiser
Declaration
Swift
public init(name: String, type: String, ctype: String, value: Int, comment: String, introspectable: Bool = false, deprecated: String? = nil)
Parameters
name
The name of the
Constant
to initialisetype
C typedef name of the constant
ctype
underlying C type
value
the value of the constant
comment
Documentation text for the constant
introspectable
Set to
true
if introspectabledeprecated
Documentation on deprecation status if non-
nil
-
Initialiser to construct a constant from XML
Declaration
Swift
public init(node: XMLElement, atIndex i: Int, nameAttr: String = "name", typeAttr: String = "type", cTypeAttr: String? = nil)
Parameters
node
XMLElement
to construct this constant 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 fromcTypeAttr
Key for the attribute to extract the C type property from