Package tripleplay.ui
Interface Scroller.Listener
- Enclosing class:
Scroller
public static interface Scroller.Listener
Listens for changes to the scrolling area or offset.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
positionChanged
(float xpos, float ypos) Notifies this listener of changes to the content offset.void
viewChanged
(pythagoras.f.IDimension contentSize, pythagoras.f.IDimension scrollSize) Notifies this listener of changes to the content size or scroll size.
-
Method Details
-
viewChanged
void viewChanged(pythagoras.f.IDimension contentSize, pythagoras.f.IDimension scrollSize) Notifies this listener of changes to the content size or scroll size. Normally this happens when either the content or scroll group is validated.- Parameters:
contentSize
- the new size of the contentscrollSize
- the new size of the viewable area
-
positionChanged
void positionChanged(float xpos, float ypos) Notifies this listener of changes to the content offset. Note the offset values are positive numbers, so correspond to the position of the view area over the content.- Parameters:
xpos
- the horizontal amount by which the view is offsetypos
- the vertical amount by which the view is offset
-