diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-06 21:37:26 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-06-06 21:37:26 +0200 |
commit | d5ed45c25651f04dc3972047d279c8eeb4ca9e51 (patch) | |
tree | c9a424cfca2af7922a981e5e89bf3d24725aadea /plugingui/widget.cc | |
parent | 195a3d15e490465b64a19d2f09e8a2d8d81e2b2a (diff) |
New TexturedBox class.
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) |