diff options
author | Sebastian Geerken <devnull@localhost> | 2015-01-23 13:17:13 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-01-23 13:17:13 +0100 |
commit | 80229b2b5159af52b407fdf2f535d57c669bb667 (patch) | |
tree | 1119ca90bc237648a1dea0bd5392dbd759239bca /dw/stackingcontextmgr.hh | |
parent | 101b4e1ddcf164b55ccf06513fc007463bfc0662 (diff) |
Simplified interrupted drawing. (Mouse events will follow.)
Diffstat (limited to 'dw/stackingcontextmgr.hh')
-rw-r--r-- | dw/stackingcontextmgr.hh | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/dw/stackingcontextmgr.hh b/dw/stackingcontextmgr.hh index 4fb0368d..3836d98d 100644 --- a/dw/stackingcontextmgr.hh +++ b/dw/stackingcontextmgr.hh @@ -24,9 +24,8 @@ private: int *zIndices, numZIndices; int findZIndex (int zIndex, bool mustExist); - void draw (View *view, Rectangle *area, - StackingIteratorStack *iteratorStack, Widget **interruptedWidget, - int *zIndexIndex, int startZIndex, int endZIndex, int *index); + void draw (View *view, Rectangle *area, int startZIndex, int endZIndex, + DrawingContext *context); Widget *getWidgetAtPoint (int x, int y, StackingIteratorStack *iteratorStack, Widget **interruptedWidget, int *zIndexIndex, int startZIndex, int endZIndex, int *index); @@ -53,12 +52,10 @@ public: inline int getNumZIndices () { return numZIndices; } inline int getNumChildSCWidgets () { return childSCWidgets->size (); } - void drawBottom (View *view, Rectangle *area, - StackingIteratorStack *iteratorStack, - Widget **interruptedWidget, int *zIndexIndex, int *index); - void drawTop (View *view, Rectangle *area, - StackingIteratorStack *iteratorStack, - Widget **interruptedWidget, int *zIndexIndex, int *index); + inline void drawBottom (View *view, Rectangle *area, DrawingContext *context) + { draw (view, area, INT_MIN, -1, context); } + void drawTop (View *view, Rectangle *area, DrawingContext *context) + { draw (view, area, 0, INT_MAX, context); } Widget *getTopWidgetAtPoint (int x, int y, core::StackingIteratorStack *iteratorStack, |