Foundation classes for a basic GUI implementing simple widgets and events. (Fork for custom changes.)
Fork of SimpleGUI by
Diff: Widgets/Widget.cpp
- Revision:
- 16:e9a771ecfdbe
- Parent:
- 15:e69fd74d42e4
- Child:
- 17:5184762fda6c
--- a/Widgets/Widget.cpp Sat May 21 18:02:20 2016 +0000 +++ b/Widgets/Widget.cpp Sun May 22 14:40:29 2016 +0000 @@ -21,6 +21,10 @@ } } +Widget *Widget::getParent() { + return _parent; +} + bool Widget::isEventTarget(Event e) { return !_hidden @@ -183,7 +187,6 @@ void Widget::setEventHandler(EventHandler* handler) { EventListener::setEventHandler(handler); - _context->eventDispatcher()->detachListener(this); _context->eventDispatcher()->attachListener(this); }