RangeProtocol
public protocol RangeProtocol
AtkRange are used on AtkValue, in order to represent the full
range of a given component (for example an slider or a range
control), or to define each individual subrange this full range is
splitted if available. See AtkValue documentation for further
details.
The RangeProtocol protocol exposes the methods and properties of an underlying AtkRange instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see Range.
Alternatively, use RangeRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
AtkRangeinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
range_ptrDefault implementationTyped pointer to the underlying
AtkRangeinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkRangeinstance.Declaration
Swift
var range_ptr: UnsafeMutablePointer<AtkRange>! { get } -
Required Initialiser for types conforming to
RangeProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()Extension methodReturns a new
AtkRangethat is a exact copy ofsrcDeclaration
Swift
@inlinable func copy() -> Atk.RangeRef! -
free()Extension methodFree
rangeDeclaration
Swift
@inlinable func free() -
getDescription()Extension methodReturns the human readable description of
rangeDeclaration
Swift
@inlinable func getDescription() -> String! -
getLowerLimit()Extension methodReturns the lower limit of
rangeDeclaration
Swift
@inlinable func getLowerLimit() -> Double -
getUpperLimit()Extension methodReturns the upper limit of
rangeDeclaration
Swift
@inlinable func getUpperLimit() -> Double -
descriptionExtension methodReturns the human readable description of
rangeDeclaration
Swift
@inlinable var description: String! { get } -
lowerLimitExtension methodReturns the lower limit of
rangeDeclaration
Swift
@inlinable var lowerLimit: Double { get } -
upperLimitExtension methodReturns the upper limit of
rangeDeclaration
Swift
@inlinable var upperLimit: Double { get }
View on GitHub
Install in Dash
RangeProtocol Protocol Reference