diff options
author | crupest <crupest@outlook.com> | 2020-03-01 22:08:15 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-03-01 22:08:15 +0800 |
commit | 6e0e0e18cbeff6487160c84d71997575f6cccebd (patch) | |
tree | 9b4c552234dfc4f9b5129dd96b25dba3518e4581 /include/cru/ui/base.hpp | |
parent | 8fc4e33b97372d93b1bcc4b598e5c8e2f15652d8 (diff) | |
download | cru-6e0e0e18cbeff6487160c84d71997575f6cccebd.tar.gz cru-6e0e0e18cbeff6487160c84d71997575f6cccebd.tar.bz2 cru-6e0e0e18cbeff6487160c84d71997575f6cccebd.zip |
Add stack layout.
Diffstat (limited to 'include/cru/ui/base.hpp')
-rw-r--r-- | include/cru/ui/base.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/cru/ui/base.hpp b/include/cru/ui/base.hpp index 90a3f746..703d61fc 100644 --- a/include/cru/ui/base.hpp +++ b/include/cru/ui/base.hpp @@ -27,4 +27,18 @@ using cru::platform::colors::black; using cru::platform::colors::skyblue; using cru::platform::colors::white; } // namespace colors + +namespace internal { +constexpr int align_start = 0; +constexpr int align_end = align_start + 1; +constexpr int align_center = align_end + 1; +constexpr int align_stretch = align_center + 1; +} // namespace internal + +enum class Alignment { + Start = internal::align_start, + End = internal::align_end, + Center = internal::align_center, + Stretch = internal::align_stretch +}; } // namespace cru::ui |