summaryrefslogtreecommitdiff
path: root/src/gui/widgets/container.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-31 20:05:33 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-01 23:05:45 +0200
commita61c57070aa618ac749e4a90a2b83c0e3a15e5fd (patch)
tree797bf52349e73aaeb2d46e421e8a798478deecb7 /src/gui/widgets/container.h
parent9dd1d4339fd186927b35b64024ee88ba615f2a25 (diff)
downloadmana-a61c57070aa618ac749e4a90a2b83c0e3a15e5fd.tar.gz
mana-a61c57070aa618ac749e4a90a2b83c0e3a15e5fd.tar.bz2
mana-a61c57070aa618ac749e4a90a2b83c0e3a15e5fd.tar.xz
mana-a61c57070aa618ac749e4a90a2b83c0e3a15e5fd.zip
Some positioning changes in the game UI
Moved player status bars to the top-right, next to the window menu. Used the layout for dynamic adjustments to screen resolution.
Diffstat (limited to 'src/gui/widgets/container.h')
-rw-r--r--src/gui/widgets/container.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/widgets/container.h b/src/gui/widgets/container.h
index 46b719a1..2b8039f4 100644
--- a/src/gui/widgets/container.h
+++ b/src/gui/widgets/container.h
@@ -44,7 +44,6 @@ class Container : public gcn::Container
Container();
~Container();
- protected:
/**
* Gets the layout handler for this container.
*/
@@ -60,6 +59,12 @@ class Container : public gcn::Container
*/
ContainerPlacer getPlacer(int x, int y);
+ /**
+ * Updates the layout to match the available size in the container
+ * (happens automatically on resizes).
+ */
+ void updateLayout();
+
private:
LayoutHelper *mLayoutHelper;
};