7#include "box_constraints.hpp"
8#include "../geometry/module.hpp"
9#include "../utility/utility.hpp"
10#include "../macros.hpp"
16namespace hi {
inline namespace v1 {
20 std::optional<float> baseline = {};
21 std::optional<float> centerline = {};
36 float baseline_adjustment)
noexcept :
39 constraints.alignment.vertical(),
42 constraints.padding.bottom(),
43 constraints.padding.top(),
44 baseline_adjustment)),
46 constraints.alignment.horizontal(),
49 constraints.padding.left(),
50 constraints.padding.right()))
60 [[
nodiscard]]
constexpr float x()
const noexcept
65 [[
nodiscard]]
constexpr float y()
const noexcept
75 [[
nodiscard]]
constexpr float width()
const noexcept
80 [[
nodiscard]]
constexpr float height()
const noexcept
constexpr std::optional< float > make_guideline(vertical_alignment alignment, float bottom, float top, float padding_bottom, float padding_top, float guideline_width)
Create a guideline between two points.
Definition alignment.hpp:60
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
Class which represents an axis-aligned rectangle.
Definition aarectangle.hpp:29
A high-level geometric extent.
Definition extent2.hpp:29
A rectangle / parallelogram in 3D space.
Definition rectangle.hpp:21
float height() const noexcept
The height, or length of the up vector.
Definition rectangle.hpp:148
float width() const noexcept
The width, or length of the right vector.
Definition rectangle.hpp:141
constexpr extent2 size() const noexcept
The size, or length of the right and up vectors.
Definition rectangle.hpp:155
2D constraints.
Definition box_constraints.hpp:25
Definition box_shape.hpp:18
Tag used for special functions or constructions to do a override compared to another function of the ...
Definition misc.hpp:79