22 #ifndef TETRAEDGE_TE_TE_SCROLLING_LAYOUT_H 23 #define TETRAEDGE_TE_TE_SCROLLING_LAYOUT_H 25 #include "tetraedge/te/te_animation.h" 26 #include "tetraedge/te/te_curve_anim2.h" 27 #include "tetraedge/te/te_layout.h" 28 #include "tetraedge/te/te_timer.h" 29 #include "tetraedge/te/te_signal.h" 38 void setInertiaAnimationDuration(
int duration) {
39 _inertiaAnimationDuration = duration;
42 _inertiaAnimationCurve = curve;
44 void setAutoScrollDelay(uint val) {
45 _autoScrollDelay = val;
47 void setAutoScrollLoop(
int loop) {
48 _autoScrollLoop = loop;
50 void setAutoScrollAnimation1Speed(
float speed) {
51 _autoScrollAnimation1Speed = speed;
53 void setAutoScrollAnimation2Speed(
float speed) {
54 _autoScrollAnimation2Speed = speed;
56 void setAutoScrollAnimation1Enabled(
bool enabled) {
57 _autoScrollAnimation1Enabled = enabled;
59 void setAutoScrollAnimation2Enabled(
bool enabled) {
60 _autoScrollAnimation2Enabled = enabled;
62 void setAutoScrollAnimation1Delay(
int delay) {
63 _autoScrollAnimation1Delay = delay;
65 void setAutoScrollAnimation2Delay(
int delay) {
66 _autoScrollAnimation2Delay = delay;
69 _autoScrollAnimation1Curve = curve;
72 _autoScrollAnimation2Curve = curve;
80 void setMouseControl(
bool val) {
83 void setEnclose(
bool val) {
86 void setContentLayout(
TeLayout *layout);
89 bool onAutoScrollDelayTimer();
90 bool onAutoScrollAnimation1DelayTimer();
91 bool onAutoScrollAnimation2DelayTimer();
92 bool onAutoScrollAnimation1Finished();
93 bool onAutoScrollAnimation2Finished();
95 bool onSlideButtonDown();
98 void playAutoScrollAnimation1();
99 void playAutoScrollAnimation2();
101 void resetScrollPosition();
102 void playAutoScroll();
107 int _inertiaAnimationDuration;
112 int _currentScrollLoopNo;
114 uint _autoScrollDelay;
117 float _autoScrollAnimation1Speed;
118 float _autoScrollAnimation2Speed;
119 bool _autoScrollAnimation1Enabled;
120 bool _autoScrollAnimation2Enabled;
121 int _autoScrollAnimation1Delay;
122 int _autoScrollAnimation2Delay;
123 TeTimer _autoScrollAnimation1Timer;
124 TeTimer _autoScrollAnimation2Timer;
139 float _mouseMoveThreshold;
142 bool _insideMouseThreshold;
149 #endif // TETRAEDGE_TE_TE_SCROLLING_LAYOUT_H Definition: te_signal.h:40
Definition: detection.h:27
Definition: te_curve_anim2.h:36
Definition: te_timer.h:33
Definition: te_layout.h:35
Definition: te_vector2s32.h:31
Definition: te_vector3f32.h:33