- add pageUp/pageDown movements
[enigma2.git] / lib / gui / ewidget.h
index 12d2e743942143604eaf1a31192273ba81cb1c88..cb39a000461cc355d7ee2c39934b20a6b82403a4 100644 (file)
@@ -5,8 +5,6 @@
 #include <lib/base/eptrlist.h> /* for eSmartPtrList */
 #include <lib/gui/ewindowstyle.h> /* for eWindowStyle */
 
-class eWindowStyle;
-
 class eWidget
 {
        friend class eWidgetDesktop;
@@ -35,6 +33,12 @@ public:
        int getStyle(ePtr<eWindowStyle> &style) { if (!m_style) return 1; style = m_style; return 0; }
        void setStyle(eWindowStyle *style) { m_style = style; }
        
+       void setBackgroundColor(const gRGB &col);
+       
+               /* untested code */
+       int isVisible() { return (m_vis & wVisShow) && ((!m_parent) || m_parent->isVisible()); }
+               /* ... */
+       
 private:
        eWidgetDesktop *m_desktop;
 
@@ -54,6 +58,9 @@ private:
        
        void doPaint(gPainter &painter, const gRegion &region);
        void recalcClipRegionsWhenVisible();
+       
+       gRGB m_background_color;
+       int m_have_background_color;
 protected:
        virtual ~eWidget();
 public: