aboutsummaryrefslogtreecommitdiff
path: root/gui/object.h
diff options
context:
space:
mode:
authorBastien Bouclet2018-01-27 08:59:53 +0100
committerBastien Bouclet2018-04-19 19:18:39 +0200
commit4d29ce21d01176f523d6f3b05aefa1b011fc756c (patch)
treeb5133d25662475c460df806f633f4427c0188fea /gui/object.h
parentdcfac42bb3ebec723a8762d3b2b72ff4113bf900 (diff)
downloadscummvm-rg350-4d29ce21d01176f523d6f3b05aefa1b011fc756c.tar.gz
scummvm-rg350-4d29ce21d01176f523d6f3b05aefa1b011fc756c.tar.bz2
scummvm-rg350-4d29ce21d01176f523d6f3b05aefa1b011fc756c.zip
GUI: Unify clip and non-clip draw calls
Diffstat (limited to 'gui/object.h')
-rw-r--r--gui/object.h5
1 files changed, 5 insertions, 0 deletions
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;
};