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();
void setCompositionMode(int mode);
private:
ePtrList<eWidget> 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;
void createBufferForWidget(eWidget *widget);
void removeBufferForWidget(eWidget *widget);
- void redrawComposition();
+ void redrawComposition(int notifed);
+ void notify();
+
+ void clearVisibility(eWidget *widget);
};
#endif