diff options
author | crupest <crupest@outlook.com> | 2019-03-23 00:15:18 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-23 00:15:18 +0800 |
commit | 39d2c8b3d957e75c3a2a1c738c1628e3eb5c0173 (patch) | |
tree | 72fff34573ffc7e788051bd7911032283340588d /src/ui/render/flex_layout_render_object.hpp | |
parent | 63a5d619ac81ba3f48e95c890d96fa7d9047bb26 (diff) | |
download | cru-39d2c8b3d957e75c3a2a1c738c1628e3eb5c0173.tar.gz cru-39d2c8b3d957e75c3a2a1c738c1628e3eb5c0173.tar.bz2 cru-39d2c8b3d957e75c3a2a1c738c1628e3eb5c0173.zip |
...
Diffstat (limited to 'src/ui/render/flex_layout_render_object.hpp')
-rw-r--r-- | src/ui/render/flex_layout_render_object.hpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/ui/render/flex_layout_render_object.hpp b/src/ui/render/flex_layout_render_object.hpp index b12362e8..ac4c2c0f 100644 --- a/src/ui/render/flex_layout_render_object.hpp +++ b/src/ui/render/flex_layout_render_object.hpp @@ -16,7 +16,7 @@ enum class FlexDirection { enum class Alignment { Start, End, Center }; struct FlexChildLayoutData { - std::optional<float> flex_basis; + std::optional<float> flex_basis; // nullopt stands for content float flex_grow = 0; float flex_shrink = 0; Alignment alignment = Alignment::Center; @@ -35,12 +35,8 @@ 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; - } + Alignment GetContentMainAlign() const { return content_main_align_; } + void SetContentMainAlign(Alignment align) { content_main_align_ = align; } FlexChildLayoutData* GetChildLayoutData(int position); |