aboutsummaryrefslogtreecommitdiff
path: root/gui/object.h
diff options
context:
space:
mode:
authorBastien Bouclet2018-04-19 19:42:13 +0200
committerGitHub2018-04-19 19:42:13 +0200
commit41ba608c6c7a6fe2defe29677781c2bb598e2c43 (patch)
treecf38e3fb2bfcac701364f0bde8848e7fd7692d8d /gui/object.h
parent9bee9e1ba66db0ca27f13a7a09f839521c1e8b3f (diff)
parent4d29ce21d01176f523d6f3b05aefa1b011fc756c (diff)
downloadscummvm-rg350-41ba608c6c7a6fe2defe29677781c2bb598e2c43.tar.gz
scummvm-rg350-41ba608c6c7a6fe2defe29677781c2bb598e2c43.tar.bz2
scummvm-rg350-41ba608c6c7a6fe2defe29677781c2bb598e2c43.zip
Merge pull request #1156 from bgK/gui-simplify-text
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;
};