aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/controls/linear_layout.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-21 23:20:44 +0800
committercrupest <crupest@outlook.com>2018-09-21 23:20:44 +0800
commitf9d3795e6dbb33fa5ffc0cb6e990462c4dd4974c (patch)
treed7c7deb89c10944ccbdeafb4dd89ca492e4608b6 /CruUI/ui/controls/linear_layout.h
parent82a45e611a2638cff7e3fffc09ba4569ca53a274 (diff)
downloadcru-f9d3795e6dbb33fa5ffc0cb6e990462c4dd4974c.tar.gz
cru-f9d3795e6dbb33fa5ffc0cb6e990462c4dd4974c.tar.bz2
cru-f9d3795e6dbb33fa5ffc0cb6e990462c4dd4974c.zip
Move alignment property into layout params.
Diffstat (limited to 'CruUI/ui/controls/linear_layout.h')
-rw-r--r--CruUI/ui/controls/linear_layout.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/CruUI/ui/controls/linear_layout.h b/CruUI/ui/controls/linear_layout.h
index 7c1fb2a8..ead56081 100644
--- a/CruUI/ui/controls/linear_layout.h
+++ b/CruUI/ui/controls/linear_layout.h
@@ -6,20 +6,7 @@ namespace cru::ui::controls
{
class LinearLayout : public Control
{
- private:
- constexpr static auto alignment_key = L"linear_layout_alignment";
-
public:
- static Alignment GetAlignment(Control* control)
- {
- return control->GetAdditionalProperty<Alignment>(alignment_key).value_or(Alignment::Center);
- }
-
- static void SetAlignment(Control* control, Alignment alignment)
- {
- control->SetAdditionalProperty(alignment_key, alignment);
- }
-
enum class Orientation
{
Horizontal,