-
String representation of
Record
sDeclaration
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 (
nil
for plain records)Declaration
Swift
public var parentType: Record? { get }
-
Root class (
nil
for 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
name
The name of the record to initialise
type
C typedef name of the constant
ctype
underlying C type
cprefix
prefix used for C language free functions that implement methods for this record
typegetter
C type getter function
methods
Methods associated with this record
functions
Functions associated with this record
constructors
Constructors for this record
properties
Properties of this record
signals
List of signals for this record
interfaces
Interfaces implemented by this record
comment
Documentation text for the constant
introspectable
Set to
true
if introspectabledeprecated
Documentation on deprecation status if non-
nil
-
Initialiser to construct a record type from XML
Declaration
Swift
public init(node: XMLElement, atIndex i: Int)
Parameters
node
XMLElement
to construct this constant fromi
Index 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 }