Thing
public class Thing : Hashable, Comparable
GIR named thing class
-
String representation of the kind of
Thingrepresented by the receiverDeclaration
Swift
public var kind: String { get } -
type name without namespace/prefix
Declaration
Swift
public let name: String -
documentation for the
ThingDeclaration
Swift
public let comment: String -
Is this
Thingintrospectable?Declaration
Swift
public let introspectable: Bool -
Alternative to use if deprecated
Declaration
Swift
public let deprecated: String? -
Is this
Thingexplicitly marked as deprecated?Declaration
Swift
public let markedAsDeprecated: Bool -
Version the receiver is available from
Declaration
Swift
public let version: String? -
Hashes the essential components of this value by feeding them into the given hasher.
This method is implemented to conform to the Hashable protocol. Calls hasher.combine(_:) with the name component.
Declaration
Swift
public func hash(into hasher: inout Hasher)Parameters
hasherThe hasher to use when combining the components of the receiver.
-
Memberwise initialiser
Declaration
Swift
public init(name: String, comment: String, introspectable: Bool = false, deprecated: String? = nil, markedAsDeprecated: Bool = false, version: String? = nil)Parameters
nameThe name of the
Thingto initialisecommentDocumentation text for the
ThingintrospectableSet to
trueif introspectabledeprecatedDocumentation on deprecation status if non-
nilmarkedAsDeprecatedSet to
trueif deprecatedversionThe version this
Thingis first available in
-
return a name with reserved Ref or Protocol suffixes escaped
Declaration
Swift
var escapedName: String { get }
-
type name without ‘Private’ suffix (nil if public)
Declaration
Swift
var priv: String? { get } -
Type name without ‘Class’, ‘Iface’, etc. suffix
Declaration
Swift
var node: String { get }
View on GitHub
Install in Dash
Thing Class Reference