aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/ewidgetanimation.h
blob: 61d79e6d20c44aca58fc3320aef5b3afad4bcb43 (plain)
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
#ifndef __lib_gui_ewidgetanimation_h
#define __lib_gui_ewidgetanimation_h

#include <lib/gdi/esize.h>
#include <lib/gdi/epoint.h>

class eWidget;

class eWidgetAnimation
{
public:
	eWidgetAnimation(eWidget *widget);
	
	void tick(int inc);
	
	void startMoveAnimation(ePoint start, ePoint end, int length);
	
	int m_active;
private:
	int m_move_current_tick, m_move_length;
	ePoint m_move_start, m_move_end;
	eWidget *m_widget;
};

#endif