- add pageUp/pageDown movements
[enigma2.git] / lib / gui / ewidget.h
index 97eb143445ef56acbf1f37d693ac5e76253cc8e0..cb39a000461cc355d7ee2c39934b20a6b82403a4 100644 (file)
@@ -33,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;
 
@@ -52,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: