-
String representation of
RecordsDeclaration
Swift
public override var kind: String { get } -
C language symbol prefix
Declaration
Swift
public let cprefix: String -
C type getter function
Declaration
Swift
public let typegetter: String -
Methods associated with this record
Declaration
Swift
public let methods: [Method] -
Functions associated with this record
Declaration
Swift
public let functions: [Function] -
Constructors for this record
Declaration
Swift
public let constructors: [Method] -
Properties of this record
Declaration
Swift
public let properties: [Property] -
List of signals for this record
Declaration
Swift
public let signals: [Signal] -
Parent type (
nilfor plain records)Declaration
Swift
public var parentType: Record? { get } -
Root class (
nilfor plain records)Declaration
Swift
public var rootType: Record { get } -
Names of implemented interfaces
Declaration
Swift
public var implements: [String] -
return all functions, methods, and constructors
Declaration
Swift
public var allMethods: [Method] { get } -
return all functions, methods, and constructors inherited from ancestors
Declaration
Swift
public var inheritedMethods: [Method] { get } -
init(name:type:ctype:cprefix:typegetter:methods:functions:constructors:properties:signals:interfaces:comment:introspectable:deprecated:)Designated initialiser
Declaration
Swift
public init(name: String, type: String, ctype: String, cprefix: String, typegetter: String, methods: [Method] = [], functions: [Function] = [], constructors: [Method] = [], properties: [Property] = [], signals: [Signal] = [], interfaces: [String] = [], comment: String = "", introspectable: Bool = false, deprecated: String? = nil)Parameters
nameThe name of the record to initialise
typeC typedef name of the constant
ctypeunderlying C type
cprefixprefix used for C language free functions that implement methods for this record
typegetterC type getter function
methodsMethods associated with this record
functionsFunctions associated with this record
constructorsConstructors for this record
propertiesProperties of this record
signalsList of signals for this record
interfacesInterfaces implemented by this record
commentDocumentation text for the constant
introspectableSet to
trueif introspectabledeprecatedDocumentation on deprecation status if non-
nil -
Initialiser to construct a record type from XML
Declaration
Swift
public init(node: XMLElement, atIndex i: Int)Parameters
nodeXMLElementto construct this constant fromiIndex within the siblings of the
node -
return the first method where the passed predicate closure returns
true -
return the first inherited method where the passed predicate closure returns
true -
return the first of my own or inherited methods where the passed predicate closure returns
true -
return the
retain(ref) method for the given record, if anyDeclaration
Swift
public var ref: Method? { get } -
return the
release(unref) method for the given record, if anyDeclaration
Swift
public var unref: Method? { get } -
return whether the record or one of its parents has a given property
Declaration
Swift
public func has(property name: String) -> Bool -
return only the properties that are not derived
Declaration
Swift
public var nonDerivedProperties: [Property] { get } -
return all properties, including the ones derived from ancestors
Declaration
Swift
public var allProperties: [Property] { get } -
return all signals, including the ones derived from ancestors
Declaration
Swift
public var allSignals: [Signal] { get }
-
swift node name for this record
Declaration
Swift
var swift: String { get } -
swift protocol name for this record
Declaration
Swift
var protocolName: String { get } -
swift struct name for this record
Declaration
Swift
var structName: String { get } -
swift class name for this record
Declaration
Swift
var className: String { get }
View on GitHub
Install in Dash
Record Class Reference