Scrollable
public protocol Scrollable : AnyObject
Defines methods to be implemented by classes that will support scrolling.
-
Gets the maximum scroll position.
Declaration
Swift
func getMaxScrollPos() -> DoubleReturn Value
The maximum scroll position.
-
Gets the current scroll position.
Declaration
Swift
func getCurrentScrollPos() -> DoubleReturn Value
The current scroll position.
-
Sets the current scroll position.
Declaration
Swift
func setCurrentScrollPos(_ pos: Double)Parameters
posThe scroll position to set.
-
Gets the height of the caption.
Declaration
Swift
func getCaptionHeight() -> DoubleReturn Value
The caption height.
-
Checks if the scroll mode is integral, which means the scroll step is round numbers.
Declaration
Swift
func integralScrollMode() -> BoolReturn Value
true if the scroll mode is integral; otherwise false.
-
Gets the height of the items that are completely visible.
Declaration
Swift
func getHeightOfCompletelyVisibleItems() -> DoubleReturn Value
The height.
-
Gets the index of the last visible item.
Declaration
Swift
func getNumberOfLastVisibleItems() -> IntReturn Value
the index.
-
Gets the count of the items.
Declaration
Swift
func getItemsNumber() -> IntReturn Value
The item count.
Scrollable Protocol Reference