X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d85ab0bcd4dd553144faa3454c319ae3c54f2f9d..bae4b8c8df551c8a32ce9611ad1691ccb405791a:/lib/gui/ewidgetdesktop.h diff --git a/lib/gui/ewidgetdesktop.h b/lib/gui/ewidgetdesktop.h index 58bff50a..7237df96 100644 --- a/lib/gui/ewidgetdesktop.h +++ b/lib/gui/ewidgetdesktop.h @@ -33,9 +33,16 @@ class eWidgetDesktop: public Object public: eWidgetDesktop(eSize screen); ~eWidgetDesktop(); - void addRootWidget(eWidget *root, int top); + void addRootWidget(eWidget *root); void removeRootWidget(eWidget *root); - void recalcClipRegions(); + + /* try to move widget content. */ + /* returns -1 if there's no move support. */ + /* call this after recalcClipRegions for that widget. */ + /* you probably want to invalidate if -1 was returned. */ + int movedWidget(eWidget *root); + + void recalcClipRegions(eWidget *root); void invalidate(const gRegion ®ion); void paint(); @@ -47,7 +54,8 @@ public: void setPalette(gPixmap &pm); void setRedrawTask(eMainloop &ml); - + + void makeCompatiblePixmap(ePtr &pm); void makeCompatiblePixmap(gPixmap &pm); enum { @@ -56,9 +64,12 @@ public: }; void setCompositionMode(int mode); + + int getStyleID() { return m_style_id; } + void setStyleID(int id) { m_style_id = id; } private: ePtrList m_root; - void calcWidgetClipRegion(eWidgetDesktopCompBuffer *comp, eWidget *widget, gRegion &parent_visible); + void calcWidgetClipRegion(eWidget *widget, gRegion &parent_visible); void paintBackground(eWidgetDesktopCompBuffer *comp); eMainloop *m_mainloop; @@ -72,7 +83,12 @@ private: void createBufferForWidget(eWidget *widget); void removeBufferForWidget(eWidget *widget); - void redrawComposition(); + void redrawComposition(int notifed); + void notify(); + + void clearVisibility(eWidget *widget); + + int m_style_id; }; #endif