Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <VisibleEffect.h>
Public Member Functions | |
CScroller (unsigned int duration=200, std::shared_ptr< Tweener > tweener=std::shared_ptr< Tweener >()) | |
CScroller (const CScroller &right) | |
CScroller & | operator= (const CScroller &src) |
~CScroller () | |
void | ScrollTo (float endPos) |
void | Stop () |
bool | Update (unsigned int time) |
float | GetValue () const |
void | SetValue (float scrollValue) |
bool | IsScrolling () const |
bool | IsScrollingUp () const |
bool | IsScrollingDown () const |
unsigned int | GetDuration () const |
Class used to handle scrolling, allow using tweeners. Usage: start scrolling using ScrollTo() method / stop scrolling using Stop() method update scroll value each frame with current time using Update() method get/set scroll value using GetValue()/SetValue()
CScroller::CScroller | ( | unsigned int | duration = 200, |
std::shared_ptr< Tweener > | tweener = std::shared_ptr<Tweener>() ) |
CScroller::CScroller | ( | const CScroller & | right | ) |
|
default |
|
inline |
|
inline |
Value of scroll
|
inline |
|
inline |
|
inline |
void CScroller::ScrollTo | ( | float | endPos | ) |
Set target value scroller will be scrolling to
endPos | target |
|
inline |
|
inline |
Immediately stop scrolling
Update the scroller to where it would be at the given time point, calculating a new Value.
time | time point |