From 4d29ce21d01176f523d6f3b05aefa1b011fc756c Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 27 Jan 2018 08:59:53 +0100 Subject: GUI: Unify clip and non-clip draw calls --- gui/object.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gui/object.h') diff --git a/gui/object.h b/gui/object.h index 40ea2da636..33d6ec3c8f 100644 --- a/gui/object.h +++ b/gui/object.h @@ -95,6 +95,11 @@ public: return (x >= _x && x < (_x + _w) && (y >= _y) && (y < _y + _h)); } + /** + * Returns the clipping rect to be used when drawing the children widgets of this object + */ + virtual Common::Rect getClipRect() const; + protected: virtual void releaseFocus() = 0; }; -- cgit v1.2.3