aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/controls/linear_layout.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-10 00:09:52 +0800
committercrupest <crupest@outlook.com>2018-09-10 00:09:52 +0800
commitaa8ba64f4f580552ba14325dd3e04f38a3c9a1de (patch)
treecde762da1a0bfb24c28a8a3dfa5253ad95a5b809 /CruUI/ui/controls/linear_layout.h
parent74031db4b8c366531db5be8fa8d765483ab377b0 (diff)
downloadcru-aa8ba64f4f580552ba14325dd3e04f38a3c9a1de.tar.gz
cru-aa8ba64f4f580552ba14325dd3e04f38a3c9a1de.tar.bz2
cru-aa8ba64f4f580552ba14325dd3e04f38a3c9a1de.zip
...
Diffstat (limited to 'CruUI/ui/controls/linear_layout.h')
-rw-r--r--CruUI/ui/controls/linear_layout.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/CruUI/ui/controls/linear_layout.h b/CruUI/ui/controls/linear_layout.h
index b8722b6f..74c504cb 100644
--- a/CruUI/ui/controls/linear_layout.h
+++ b/CruUI/ui/controls/linear_layout.h
@@ -13,6 +13,12 @@ namespace cru::ui::controls
Vertical
};
+ static LinearLayout* Create(const Orientation orientation = Orientation::Vertical)
+ {
+ return new LinearLayout(orientation);
+ }
+
+ private:
explicit LinearLayout(Orientation orientation = Orientation::Vertical);
protected: