X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/5c471ed8362098ad535177010c7b15957a586234..b4b2da42d470a2795311814daa9a1e6497a35cdc:/lib/gui/ewidget.h diff --git a/lib/gui/ewidget.h b/lib/gui/ewidget.h index 8bd199f9..6739f25e 100644 --- a/lib/gui/ewidget.h +++ b/lib/gui/ewidget.h @@ -4,6 +4,7 @@ #include /* for gRegion */ #include /* for eSmartPtrList */ #include /* for eWindowStyle */ +#include class eWidgetDesktop;class eWidgetDesktop; @@ -38,10 +39,16 @@ public: void setBackgroundColor(const gRGB &col); void clearBackgroundColor(); + void setZPosition(int z); + void setTransparent(int transp); + /* untested code */ int isVisible() { return (m_vis & wVisShow) && ((!m_parent) || m_parent->isVisible()); } /* ... */ + + int isTransparent() { return m_vis & wVisTransparent; } + eWidgetAnimation m_animation; private: eWidgetDesktop *m_desktop; @@ -61,13 +68,19 @@ private: ePtr m_style; + void insertIntoParent(); void doPaint(gPainter &painter, const gRegion ®ion); void recalcClipRegionsWhenVisible(); + void parentRemoved(); + gRGB m_background_color; int m_have_background_color; eWidget *m_current_focus, *m_focus_owner; + + int m_z_position; + protected: virtual ~eWidget(); void mayKillFocus();