diff options
author | crupest <crupest@outlook.com> | 2019-03-20 18:47:05 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-20 18:47:05 +0800 |
commit | d518396a7fcdb2add413a9a37bb34515ff4f4cc4 (patch) | |
tree | a06d8088bc4646313b9fab22f382d5e5febc3630 /src/ui/render/flex_layout_render_object.hpp | |
parent | 7f1acd3ab4bddf6c61551ebc867667fbdd3ad7b8 (diff) | |
download | cru-d518396a7fcdb2add413a9a37bb34515ff4f4cc4.tar.gz cru-d518396a7fcdb2add413a9a37bb34515ff4f4cc4.tar.bz2 cru-d518396a7fcdb2add413a9a37bb34515ff4f4cc4.zip |
...
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 |