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
AtkRange
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
range_ptr
Default implementationTyped pointer to the underlying
AtkRange
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkRange
instance.Declaration
Swift
var range_ptr: UnsafeMutablePointer<AtkRange>! { get }
-
Required Initialiser for types conforming to
RangeProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()
Extension methodReturns a new
AtkRange
that is a exact copy ofsrc
Declaration
Swift
@inlinable func copy() -> Atk.RangeRef!
-
free()
Extension methodFree
range
Declaration
Swift
@inlinable func free()
-
getDescription()
Extension methodReturns the human readable description of
range
Declaration
Swift
@inlinable func getDescription() -> String!
-
getLowerLimit()
Extension methodReturns the lower limit of
range
Declaration
Swift
@inlinable func getLowerLimit() -> Double
-
getUpperLimit()
Extension methodReturns the upper limit of
range
Declaration
Swift
@inlinable func getUpperLimit() -> Double
-
description
Extension methodReturns the human readable description of
range
Declaration
Swift
@inlinable var description: String! { get }
-
lowerLimit
Extension methodReturns the lower limit of
range
Declaration
Swift
@inlinable var lowerLimit: Double { get }
-
upperLimit
Extension methodReturns the upper limit of
range
Declaration
Swift
@inlinable var upperLimit: Double { get }