summaryrefslogtreecommitdiff
path: root/scene/gui/box_container.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/box_container.h')
-rw-r--r--scene/gui/box_container.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/scene/gui/box_container.h b/scene/gui/box_container.h
index c428ec132c..04b074896b 100644
--- a/scene/gui/box_container.h
+++ b/scene/gui/box_container.h
@@ -33,10 +33,9 @@
class BoxContainer : public Container {
- GDCLASS(BoxContainer,Container);
+ GDCLASS(BoxContainer, Container);
public:
-
enum AlignMode {
ALIGN_BEGIN,
ALIGN_CENTER,
@@ -48,44 +47,42 @@ private:
AlignMode align;
void _resort();
-protected:
+protected:
void _notification(int p_what);
static void _bind_methods();
-public:
- void add_spacer(bool p_begin=false);
+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);
+ BoxContainer(bool p_vertical = false);
};
-
class HBoxContainer : public BoxContainer {
- GDCLASS(HBoxContainer,BoxContainer);
+ GDCLASS(HBoxContainer, BoxContainer);
public:
-
- HBoxContainer() : BoxContainer(false) {}
+ HBoxContainer()
+ : BoxContainer(false) {}
};
-
class MarginContainer;
class VBoxContainer : public BoxContainer {
- GDCLASS(VBoxContainer,BoxContainer);
+ GDCLASS(VBoxContainer, BoxContainer);
public:
+ MarginContainer *add_margin_child(const String &p_label, Control *p_control, bool p_expand = false);
- MarginContainer* add_margin_child(const String& p_label,Control *p_control,bool p_expand=false);
-
- VBoxContainer() : BoxContainer(true) {}
+ VBoxContainer()
+ : BoxContainer(true) {}
};
VARIANT_ENUM_CAST(BoxContainer::AlignMode);