|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A widget's size request in both dimensions, and the bounds its extent is clamped into. More...
#include <view.hpp>
Public Member Functions | |
| bool | operator== (LayoutHints const &) const =default |
| Memberwise equality. | |
Public Attributes | |
| Sizing | width {} |
| Along the horizontal axis. | |
| Sizing | height {} |
| Along the vertical axis. | |
| std::optional< int > | minWidth |
| The least width, in backend units; nullopt for none. | |
| std::optional< int > | maxWidth |
| The most width, in backend units; nullopt for none. | |
| std::optional< int > | minHeight |
| The least height, in backend units; nullopt for none. | |
| std::optional< int > | maxHeight |
| The most height, in backend units; nullopt for none. | |
| std::optional< Align > | alignSelf |
| Where the node sits across its row's, column's or grid row's axis; nullopt takes the container's align. | |
A widget's size request in both dimensions, and the bounds its extent is clamped into.
A bound clamps the extent the sizing gives, whatever the sizing: a stretch child's share stops at its maximum and a content or fixed child takes at least its minimum. A negative bound, a minimum above its maximum and a fixed amount outside its bounds are refused at mount (std::logic_error).
|
default |
Memberwise equality.
| Sizing morph::ui::LayoutHints::width {} |
| Sizing morph::ui::LayoutHints::height {} |
| std::optional<int> morph::ui::LayoutHints::minWidth |
| std::optional<int> morph::ui::LayoutHints::maxWidth |
| std::optional<int> morph::ui::LayoutHints::minHeight |
| std::optional<int> morph::ui::LayoutHints::maxHeight |
| std::optional<Align> morph::ui::LayoutHints::alignSelf |