summaryrefslogtreecommitdiff
path: root/scene/gui/box_container.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-09-24 18:07:13 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-09-24 18:07:13 -0300
commit9962518ffdcbd6936e3565311152799d7a71c9c3 (patch)
treec2706fc63d28b588daebb94a940d94f32b402b65 /scene/gui/box_container.h
parent82a3304458738b410a5aff8994ce587413aeb464 (diff)
parentf6957eb1542fd0fd476140b1abec1f09a250fce4 (diff)
Merge branch 'master' of https://github.com/okamstudio/godot
Diffstat (limited to 'scene/gui/box_container.h')
-rw-r--r--scene/gui/box_container.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/scene/gui/box_container.h b/scene/gui/box_container.h
index d461b4aebe..c357814baf 100644
--- a/scene/gui/box_container.h
+++ b/scene/gui/box_container.h
@@ -35,16 +35,31 @@ class BoxContainer : public Container {
OBJ_TYPE(BoxContainer,Container);
+public:
+
+ enum AlignMode {
+ ALIGN_BEGIN,
+ ALIGN_CENTER,
+ ALIGN_END
+ };
+
+private:
bool vertical;
+ AlignMode align;
void _resort();
protected:
void _notification(int p_what);
+
+ static void _bind_methods();
public:
void add_spacer(bool p_begin=false);
+ void set_alignment(AlignMode p_align);
+ AlignMode get_alignment() const;
+
virtual Size2 get_minimum_size() const;
BoxContainer(bool p_vertical=false);
@@ -73,4 +88,6 @@ public:
VBoxContainer() : BoxContainer(true) {}
};
+VARIANT_ENUM_CAST(BoxContainer::AlignMode);
+
#endif // BOX_CONTAINER_H