aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/base.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-22 01:09:24 +0800
committercrupest <crupest@outlook.com>2020-06-22 01:09:24 +0800
commit4f0a2f32c273780c32cc3937615c2a8bbd993aab (patch)
tree6e1f45447854a40fe2d16ef9bec79f3c0fef030a /include/cru/ui/base.hpp
parentd86a71f79afe0e4dac768f61d6bff690567aca5b (diff)
downloadcru-4f0a2f32c273780c32cc3937615c2a8bbd993aab.tar.gz
cru-4f0a2f32c273780c32cc3937615c2a8bbd993aab.tar.bz2
cru-4f0a2f32c273780c32cc3937615c2a8bbd993aab.zip
...
Diffstat (limited to 'include/cru/ui/base.hpp')
-rw-r--r--include/cru/ui/base.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/cru/ui/base.hpp b/include/cru/ui/base.hpp
index 97b0dbff..dacf2d6f 100644
--- a/include/cru/ui/base.hpp
+++ b/include/cru/ui/base.hpp
@@ -270,10 +270,8 @@ using FlexMainAlignment = Alignment;
using FlexCrossAlignment = Alignment;
struct FlexChildLayoutData {
- // nullopt stands for looking at my content
- std::optional<float> flex_basis = std::nullopt;
- float flex_grow = 0;
- float flex_shrink = 0;
+ float expand_factor = 0;
+ float shrink_factor = 1;
// nullopt stands for looking at parent's setting
std::optional<FlexCrossAlignment> cross_alignment = std::nullopt;
};