X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fgui%2Fewindow.h;h=ee1e7d8bcb26b851b1d6088547765a42b9f9657d;hb=99e6ea49ff22e993eecce31af689da1b3b85157c;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=d63d2c3c6cbbd574dda4f8b00ebe6c661735edd5;p=vuplus_dvbapp diff --git a/lib/gui/ewindow.h b/lib/gui/ewindow.h index e69de29..ee1e7d8 100644 --- a/lib/gui/ewindow.h +++ b/lib/gui/ewindow.h @@ -0,0 +1,45 @@ +#ifndef __lib_gui_ewindow_h +#define __lib_gui_ewindow_h + +#include +#include + +class eWidgetDesktop; + +class eWindow: public eWidget +{ + friend class eWindowStyle; +public: + eWindow(eWidgetDesktop *desktop, int z = 0); + ~eWindow(); + void setTitle(const std::string &string); + std::string getTitle() const; + eWidget *child() { return m_child; } + + void show(); + void hide(); + + enum { + wfNoBorder = 1 + }; + + void setBackgroundColor(const gRGB &col); + + void setFlag(int flags); + void clearFlag(int flags); + void setAnimationMode(int mode); +protected: + enum eWindowEvents + { + evtTitleChanged = evtUserWidget, + }; + int event(int event, void *data=0, void *data2=0); +private: + std::string m_title; + eWidget *m_child; + int m_flags; + eWidgetDesktop *m_desktop; + int m_animation_mode; +}; + +#endif