aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-23 13:17:13 +0100
committerSebastian Geerken <devnull@localhost>2015-01-23 13:17:13 +0100
commit80229b2b5159af52b407fdf2f535d57c669bb667 (patch)
tree1119ca90bc237648a1dea0bd5392dbd759239bca /test
parent101b4e1ddcf164b55ccf06513fc007463bfc0662 (diff)
Simplified interrupted drawing. (Mouse events will follow.)
Diffstat (limited to 'test')
-rw-r--r--test/dw_simple_container.cc7
-rw-r--r--test/dw_simple_container.hh3
2 files changed, 4 insertions, 6 deletions
diff --git a/test/dw_simple_container.cc b/test/dw_simple_container.cc
index c1f22458..2e9ed6ae 100644
--- a/test/dw_simple_container.cc
+++ b/test/dw_simple_container.cc
@@ -209,13 +209,12 @@ void SimpleContainer::sizeAllocateImpl (Allocation *allocation)
}
void SimpleContainer::draw (View *view, Rectangle *area,
- StackingIteratorStack *iteratorStack,
- Widget **interruptedWidget)
+ DrawingContext *context)
{
drawWidgetBox (view, area, false);
Rectangle childArea;
- if (child && child->intersects (area, &childArea))
- child->drawTotal (view, &childArea, iteratorStack, interruptedWidget);
+ if (child && child->intersects (this, area, &childArea))
+ child->draw (view, &childArea, context);
}
Iterator *SimpleContainer::iterator (Content::Type mask, bool atEnd)
diff --git a/test/dw_simple_container.hh b/test/dw_simple_container.hh
index 423b1fab..021f5277 100644
--- a/test/dw_simple_container.hh
+++ b/test/dw_simple_container.hh
@@ -45,8 +45,7 @@ public:
~SimpleContainer ();
void draw (core::View *view, core::Rectangle *area,
- core::StackingIteratorStack *iteratorStack,
- Widget **interruptedWidget);
+ core::DrawingContext *context);
core::Iterator *iterator (core::Content::Type mask, bool atEnd);
void removeChild (Widget *child);