aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/object.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/object.h b/gui/object.h
index 219bf77f69..776c941356 100644
--- a/gui/object.h
+++ b/gui/object.h
@@ -91,6 +91,10 @@ public:
virtual void removeWidget(Widget *widget);
+ virtual bool isPointIn(int x, int y) {
+ return (x >= _x && x < (_x + _w) && (y >= _y) && (y < _y + _h));
+ }
+
protected:
virtual void releaseFocus() = 0;
};