aboutsummaryrefslogtreecommitdiff
path: root/gui/theme.h
diff options
context:
space:
mode:
authorVicent Marti2008-07-17 21:58:43 +0000
committerVicent Marti2008-07-17 21:58:43 +0000
commit4645e706a8c62fb291efb987dca9fa82394139ee (patch)
tree8155832408c5b2297f3459a617c9460c27eac248 /gui/theme.h
parent6214815e6eff5b91887e5e1dd4d6463c2000f024 (diff)
downloadscummvm-rg350-4645e706a8c62fb291efb987dca9fa82394139ee.tar.gz
scummvm-rg350-4645e706a8c62fb291efb987dca9fa82394139ee.tar.bz2
scummvm-rg350-4645e706a8c62fb291efb987dca9fa82394139ee.zip
Rendering pipeline (almost) fixed. This time for real.
svn-id: r33092
Diffstat (limited to 'gui/theme.h')
-rw-r--r--gui/theme.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gui/theme.h b/gui/theme.h
index e9ce8bb01d..91f59d961c 100644
--- a/gui/theme.h
+++ b/gui/theme.h
@@ -239,6 +239,20 @@ public:
virtual void closeAllDialogs() = 0;
/**
+ * Closes the topmost dialog, and redraws the screen
+ * accordingly.
+ *
+ * TODO: Make this purely virtual by making ThemeClassic
+ * and ThemeModern implement it too.
+ *
+ * @returns True if the dialog was sucessfully closed.
+ * If we weren't able to restore the screen after closing
+ * the dialog, we return false, which means we need to redraw
+ * the dialog stack from scratch.
+ */
+ virtual bool closeDialog() { return false; }
+
+ /**
* Clear the complete GUI screen.
*/
virtual void clearAll() = 0;