X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e3a70a61207238b3c6ac464752a61f5965d95f14..4374783e912d1a9385a41d7649d33f19e8eb96b3:/lib/gui/ewidget.h diff --git a/lib/gui/ewidget.h b/lib/gui/ewidget.h index 9f3df2c0..db86fd10 100644 --- a/lib/gui/ewidget.h +++ b/lib/gui/ewidget.h @@ -4,6 +4,9 @@ #include /* for gRegion */ #include /* for eSmartPtrList */ #include /* for eWindowStyle */ +#include + +class eWidgetDesktop;class eWidgetDesktop; class eWidget { @@ -34,11 +37,18 @@ public: void setStyle(eWindowStyle *style) { m_style = style; } 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; @@ -52,10 +62,13 @@ private: ePtrList m_childs; ePoint m_position; eSize m_size; + /* will be accounted when there's a client offset */ + eSize m_client_offset; eWidget *m_parent; ePtr m_style; + void insertIntoParent(); void doPaint(gPainter &painter, const gRegion ®ion); void recalcClipRegionsWhenVisible(); @@ -63,6 +76,9 @@ private: int m_have_background_color; eWidget *m_current_focus, *m_focus_owner; + + int m_z_position; + protected: virtual ~eWidget(); void mayKillFocus(); @@ -70,6 +86,7 @@ public: // all in local space! gRegion m_clip_region, m_visible_region, m_visible_with_childs; + struct eWidgetDesktopCompBuffer *m_comp_buffer; enum eWidgetEvent {