-
String representation of
ConstantsDeclaration
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
nameThe name of the
Constantto initialisetypeC typedef name of the constant
ctypeunderlying C type
valuethe value of the constant
commentDocumentation text for the constant
introspectableSet to
trueif introspectabledeprecatedDocumentation 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
nodeXMLElementto construct this constant fromiIndex within the siblings of the
nodenameAttrKey for the attribute to extract the
nameproperty fromtypeAttrKey for the attribute to extract the
typeproperty fromcTypeAttrKey for the attribute to extract the C type property from
View on GitHub
Install in Dash
Constant Class Reference