use gstreamer for playing media files
[enigma2.git] / lib / gui / ewindow.h
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..bb7f771cc57a72b2e921c69c44a3248afb51c954 100644 (file)
@@ -0,0 +1,38 @@
+#ifndef __lib_gui_ewindow_h
+#define __lib_gui_ewindow_h
+
+#include <lib/gui/ewidget.h>
+#include <lib/gui/ewindowstyle.h>
+
+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; }
+       
+       enum {
+               wfNoBorder = 1
+       };
+       
+       void setFlag(int flags);
+       void clearFlag(int flags);
+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;
+};
+
+#endif