aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/windows.h
diff options
context:
space:
mode:
authorPaul Gilbert2019-01-02 14:21:49 -0800
committerPaul Gilbert2019-01-02 14:23:40 -0800
commit3ed48e3de223259dd58f0c613c2d68d69848e5a2 (patch)
tree842ff37835be0081400a24e877b555b1d1a4037f /engines/glk/windows.h
parentf1fdb0cd26b2645b7b012f5177f50bdaffcd10f9 (diff)
downloadscummvm-rg350-3ed48e3de223259dd58f0c613c2d68d69848e5a2.tar.gz
scummvm-rg350-3ed48e3de223259dd58f0c613c2d68d69848e5a2.tar.bz2
scummvm-rg350-3ed48e3de223259dd58f0c613c2d68d69848e5a2.zip
GLK: FROTZ: Setting window positon & size, some property reading
Diffstat (limited to 'engines/glk/windows.h')
-rw-r--r--engines/glk/windows.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/glk/windows.h b/engines/glk/windows.h
index 703fc5589a..dab521901e 100644
--- a/engines/glk/windows.h
+++ b/engines/glk/windows.h
@@ -427,6 +427,21 @@ public:
}
/**
+ * Set the size of a window
+ */
+ virtual void setSize(const Point &newSize) {
+ _bbox.setWidth(newSize.x);
+ _bbox.setHeight(newSize.y);
+ }
+
+ /**
+ * Sets the position of a window
+ */
+ virtual void setPosition(const Point &newPos) {
+ _bbox.moveTo(newPos);
+ }
+
+ /**
* Get window split size within parent pair window
*/
virtual uint getSplit(uint size, bool vertical) const {