summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/window.h')
-rw-r--r--src/gui/window.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/window.h b/src/gui/window.h
index 3fa3f58f..92fe0313 100644
--- a/src/gui/window.h
+++ b/src/gui/window.h
@@ -49,7 +49,7 @@ class Window : public gcn::Container, public gcn::MouseListener
BITMAP *dRight; /**< Right side of title bar */
public:
- Window(gcn::Container *parent, std::string text = "Window");
+ Window(gcn::Container *parent, const std::string& text = "Window");
~Window();
/**
@@ -68,6 +68,11 @@ class Window : public gcn::Container, public gcn::MouseListener
void add(gcn::Widget *w, int x, int y);
/**
+ * Sets the title of the window.
+ */
+ void setTitle(const std::string& text);
+
+ /**
* Sets the dimension of the window contents.
*/
void setDimension(const gcn::Rectangle& dimension);