diff options
Diffstat (limited to 'src/ui/render/flex_layout_render_object.hpp')
-rw-r--r-- | src/ui/render/flex_layout_render_object.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
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<FlexChildLayoutData> child_layout_data_{}; }; } // namespace cru::ui::render |