aboutsummaryrefslogtreecommitdiff
path: root/gui/object.h
diff options
context:
space:
mode:
authorEugene Sandulenko2014-06-01 14:01:15 +0300
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit8c7a8116be3f54e03644876c8d41daf1bf2e835a (patch)
treedd43f3113d23591d1dd1856bb24887f07b81ee7a /gui/object.h
parent30f7556beed2de07caa338650a89f18b0b71cae5 (diff)
downloadscummvm-rg350-8c7a8116be3f54e03644876c8d41daf1bf2e835a.tar.gz
scummvm-rg350-8c7a8116be3f54e03644876c8d41daf1bf2e835a.tar.bz2
scummvm-rg350-8c7a8116be3f54e03644876c8d41daf1bf2e835a.zip
GUI: Implemented test point method to GuiObject
Diffstat (limited to 'gui/object.h')
-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;
};