elistboxcontent.cpp: paint background for selected entry also when transparent="1...
[enigma2.git] / lib / gui / ewindow.h
1 #ifndef __lib_gui_ewindow_h
2 #define __lib_gui_ewindow_h
3
4 #include <lib/gui/ewidget.h>
5 #include <lib/gui/ewindowstyle.h>
6
7 class eWidgetDesktop;
8
9 class eWindow: public eWidget
10 {
11         friend class eWindowStyle;
12 public:
13         eWindow(eWidgetDesktop *desktop, int z = 0);
14         ~eWindow();
15         void setTitle(const std::string &string);
16         std::string getTitle() const;
17         eWidget *child() { return m_child; }
18         
19         enum {
20                 wfNoBorder = 1
21         };
22
23         void setBackgroundColor(const gRGB &col);
24         
25         void setFlag(int flags);
26         void clearFlag(int flags);
27 protected:
28         enum eWindowEvents
29         {
30                 evtTitleChanged = evtUserWidget,
31         };
32         int event(int event, void *data=0, void *data2=0);
33 private:
34         std::string m_title;
35         eWidget *m_child;
36         int m_flags;
37         eWidgetDesktop *m_desktop;
38 };
39
40 #endif