summaryrefslogtreecommitdiff
path: root/src/gui/windowcontainer.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-11 18:06:30 -0600
committerIra Rice <irarice@gmail.com>2009-03-11 18:06:30 -0600
commitc2ae6d9cea9fc3d861e73d4cf7eca5284519758e (patch)
treee52abe836ff96446ec3109cf7c273dd7ee35c1e8 /src/gui/windowcontainer.h
parent6b538196a799525d8ad4bf5cb5affe87745d4242 (diff)
downloadMana-c2ae6d9cea9fc3d861e73d4cf7eca5284519758e.tar.gz
Mana-c2ae6d9cea9fc3d861e73d4cf7eca5284519758e.tar.bz2
Mana-c2ae6d9cea9fc3d861e73d4cf7eca5284519758e.tar.xz
Mana-c2ae6d9cea9fc3d861e73d4cf7eca5284519758e.zip
Added a new Popup class, which overall is functionally similar to the
Window class, but stripped down to the bare essential functionality to just draw and position them. This means no resizing, no close buttons, no ability to move them, etc. This should help reduce the overhead in drawing speech bubbles, as well as other popup type dialogs, but is also not a drop in replacement for the Window class as well. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/windowcontainer.h')
-rw-r--r--src/gui/windowcontainer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/windowcontainer.h b/src/gui/windowcontainer.h
index 09f34cf5..23b221cf 100644
--- a/src/gui/windowcontainer.h
+++ b/src/gui/windowcontainer.h
@@ -46,6 +46,11 @@ class WindowContainer : public gcn::Container
*/
void scheduleDelete(gcn::Widget *widget);
+ /**
+ * Get the number of widget instances
+ */
+ int getNumberOfInstances() { return mDeathList.size(); }
+
private:
/**
* List of widgets that are scheduled to be deleted.
@@ -55,4 +60,6 @@ class WindowContainer : public gcn::Container
Widgets mDeathList;
};
+extern WindowContainer* windowContainer;
+
#endif