|
HikoGUI
A low latency retained GUI
|
#include <hikogui/widgets/widget_baseline.hpp>
Public Member Functions | |
| constexpr | widget_baseline (widget_baseline const &) noexcept=default |
| constexpr | widget_baseline (widget_baseline &&) noexcept=default |
| constexpr widget_baseline & | operator= (widget_baseline const &) noexcept=default |
| constexpr widget_baseline & | operator= (widget_baseline &&) noexcept=default |
| constexpr | widget_baseline (float priority, vertical_alignment alignment, float cap_height, float graphic_height=0.0f) noexcept |
| Construct a widget base-line. | |
| constexpr | widget_baseline (float priority, float gain, float bias) noexcept |
| Construct a widget base-line. | |
| constexpr auto friend | operator<=> (widget_baseline const &lhs, widget_baseline const &rhs) noexcept |
| constexpr bool | empty () const noexcept |
| operator bool () const noexcept | |
| constexpr float | absolute (float height) const noexcept |
| Calculate the absolute base-line. | |
Friends | |
| constexpr friend bool | operator== (widget_baseline const &, widget_baseline const &) noexcept=default |
The base-line of a widget on which to set the text and graphics.
|
inlineconstexprnoexcept |
Construct a widget base-line.
| priority | The priority of the widget for dictating the baseline. |
| alignment | The alignment of the widget. |
| cap_height | The capital height of the default label font. |
| graphic_height | The height of the graphics of the widget where the text is beside or inside. |
|
inlineconstexprnoexcept |
Construct a widget base-line.
| priority | How sure a widget is that its base-line should be used. 0.0: bad, 0.1: text label, 0.5 small widget, 1.0 large widget. |
| gain | The relative position of the base-line compared to the height of the widget. |
| bias | The absolute offset of the base-line. |
|
inlineconstexprnoexcept |
Calculate the absolute base-line.
| height | The height of the widget. |