diff options
Diffstat (limited to 'lib/gui/ewidgetanimation.h')
| -rw-r--r-- | lib/gui/ewidgetanimation.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/gui/ewidgetanimation.h b/lib/gui/ewidgetanimation.h new file mode 100644 index 00000000..61d79e6d --- /dev/null +++ b/lib/gui/ewidgetanimation.h @@ -0,0 +1,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 |
