diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-08-31 03:05:27 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-08-31 03:05:27 +0000 |
| commit | 87bfe5dfced0fb7a4e9839fdafa898261a39c86c (patch) | |
| tree | e9cd842941df0e2fc679931f18701fbacf071c77 /lib/gui/ewidgetanimation.h | |
| parent | 58f644a3102613e874ecc0faf999da16c353f264 (diff) | |
| download | enigma2-87bfe5dfced0fb7a4e9839fdafa898261a39c86c.tar.gz enigma2-87bfe5dfced0fb7a4e9839fdafa898261a39c86c.zip | |
- fix serious problems in widget code. fixup buffered mode. add animation support.lib/gui
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 |
