diff options
author | Eugene Sandulenko | 2014-06-01 14:01:15 +0300 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 8c7a8116be3f54e03644876c8d41daf1bf2e835a (patch) | |
tree | dd43f3113d23591d1dd1856bb24887f07b81ee7a | |
parent | 30f7556beed2de07caa338650a89f18b0b71cae5 (diff) | |
download | scummvm-rg350-8c7a8116be3f54e03644876c8d41daf1bf2e835a.tar.gz scummvm-rg350-8c7a8116be3f54e03644876c8d41daf1bf2e835a.tar.bz2 scummvm-rg350-8c7a8116be3f54e03644876c8d41daf1bf2e835a.zip |
GUI: Implemented test point method to GuiObject
-rw-r--r-- | gui/object.h | 4 |
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; }; |