Mixes in with Viewable
The HasScrolling mixin provides you ways of creating subclasses of objects that can scroll. Any object that can scroll will inherit from the HasScrolling mixin.
Instantiate: never Subclass: sometimes Call its methods: often
Since HasScrolling is a mixin, you'll never work directly with HasScrolling objects. Instead, you'll work with objects of classes that inherit from HasScrolling, such as NameCard.
Class HasScrolling defines the following methods:
Method | Description |
---|---|
PageDown |
Scrolls down by 3/4 of object bounds; override to change scroll amount |
PageLeft |
Scrolls left by 3/4 of object bounds; override to change scroll amount |
PageRight |
Scrolls right by 3/4 of object bounds; override to change scroll amount |
PageUp |
Scrolls up by 3/4 of object bounds; override to change scroll amount |
ScrollToBeginning |
Sets scroll position to beginning |
ScrollToEnd |
Sets scroll position to end |
ScrollToTop |
Sets scroll position to top edge |
ScrollToBottom |
Sets scroll position to bottom edge |
ScrollToLeft |
Sets scroll position to left edge |
ScrollToRight |
Sets scroll position to right edge |