diff options
Diffstat (limited to 'plugingui/widget.cc')
-rw-r--r-- | plugingui/widget.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugingui/widget.cc b/plugingui/widget.cc index 9bac566..5cd013d 100644 --- a/plugingui/widget.cc +++ b/plugingui/widget.cc @@ -26,11 +26,11 @@ */ #include "widget.h" +#include <cassert> + #include "painter.h" #include "window.h" -#include <stdio.h> - namespace GUI { Widget::Widget(Widget* parent) @@ -155,6 +155,12 @@ size_t Widget::windowY() return window_y; } +ImageCache& Widget::getImageCache() +{ + assert(parent); + return parent->getImageCache(); +} + Widget* Widget::find(int x, int y) { for(auto i = children.rbegin(); i != children.rend(); ++i) |