From d518396a7fcdb2add413a9a37bb34515ff4f4cc4 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 20 Mar 2019 18:47:05 +0800 Subject: ... --- src/ui/render/flex_layout_render_object.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ui/render/flex_layout_render_object.hpp') diff --git a/src/ui/render/flex_layout_render_object.hpp b/src/ui/render/flex_layout_render_object.hpp index 7172f0c0..b12362e8 100644 --- a/src/ui/render/flex_layout_render_object.hpp +++ b/src/ui/render/flex_layout_render_object.hpp @@ -35,6 +35,13 @@ class FlexLayoutRenderObject : public RenderObject { FlexDirection GetFlexDirection() const { return direction_; } void SetFlexDirection(FlexDirection direction) { direction_ = direction; } + Alignment GetContentMainAlign() const { + return content_main_align_; + } + void SetContentMainAlign(Alignment align) { + content_main_align_ = align; + } + FlexChildLayoutData* GetChildLayoutData(int position); void Draw(ID2D1RenderTarget* render_target) override; @@ -50,6 +57,7 @@ class FlexLayoutRenderObject : public RenderObject { private: FlexDirection direction_ = FlexDirection::Horizontal; + Alignment content_main_align_ = Alignment::Start; std::vector child_layout_data_{}; }; } // namespace cru::ui::render -- cgit v1.2.3