-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTCSnapPage.h
More file actions
41 lines (28 loc) · 769 Bytes
/
TCSnapPage.h
File metadata and controls
41 lines (28 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef TCSnapPage_h
#define TCSnapPage_h
#include "TCPage.h"
#include "CppTweener.h"
using namespace tween;
namespace Touched {
class TCSnapPage : public TCPage, public TweenerListener {
protected:
long milli_seconds;
Tweener tweener;
TweenerParam param;
int current_index;
virtual void CalculateMovement();
public:
TCSnapPage();
virtual ~TCSnapPage();
virtual void TouchEndOrCancel(void* _address, float _position);
void GoPage(int _index, short ptransition = EXPO);
int GetCurrentIndex() {
return current_index;
}
virtual void ChangedIndex(int _index) = 0;
virtual void onStart(TweenerParam& param);
virtual void onStep(TweenerParam& param);
virtual void onComplete(TweenerParam& param);
};
}
#endif