6#ifndef EGT_DETAIL_LAYOUT_H
7#define EGT_DETAIL_LAYOUT_H
9#include <egt/detail/meta.h>
10#include <egt/geometry.h>
11#include <egt/widgetflags.h>
42 uint32_t bm = 0) noexcept
66 uint32_t bm = 0) noexcept
96 std::vector<LayoutRect>& children,
105 std::vector<LayoutRect>& children,
Alignment flags.
Definition widgetflags.h:379
EGT_API void flex_layout(const Rect &parent, std::vector< LayoutRect > &children, Justification justify, Orientation orient)
Perform a manual flex layout given a parent rect and children rects.
EGT_API uint32_t align_to_behave(const AlignFlags &align)
Compute lib lay behave from @align flags.
EGT_API uint32_t justify_to_contains(Justification justify, Orientation orient)
Compute lib lay contains from @justify and @orient parameters.
Justification
Generic justification of children flags.
Definition widgetflags.h:667
T & align(T &widget, const AlignFlags &a)
Helper to set alignment of a widget.
Definition widgetflags.h:624
Orientation
Generic orientation flags.
Definition widgetflags.h:652
EGT framework namespace.
Definition animation.h:24
Wrapper around properties for managing a rect by flex_layout().
Definition layout.h:28
LayoutRect(uint32_t b, const Rect &r, std::string s, uint32_t lm=0, uint32_t tm=0, uint32_t rm=0, uint32_t bm=0) noexcept
Definition layout.h:60
Rect rect
Rectangle if the object.
Definition layout.h:79
std::string str
String content of the object.
Definition layout.h:77
LayoutRect(uint32_t b, const Rect &r, uint32_t lm=0, uint32_t tm=0, uint32_t rm=0, uint32_t bm=0) noexcept
Definition layout.h:37