9#include "../macros.hpp"
12namespace hi {
inline namespace v1 {
17 using value_type = array_type::value_type;
26 [[
nodiscard]]
constexpr explicit operator array_type()
const noexcept
33 hi_axiom(holds_invariant());
53 [[
nodiscard]]
constexpr float x()
const noexcept
58 [[
nodiscard]]
constexpr float y()
const noexcept
63 [[
nodiscard]]
constexpr float& x()
noexcept
68 [[
nodiscard]]
constexpr float& y()
noexcept
115 return equal(lhs._v, rhs._v);
125 return _v.z() == 0.0f
and _v.w() == 0.0f;
128 [[
nodiscard]]
friend constexpr translate2 round(translate2
const& rhs)
noexcept
130 return translate2{round(rhs._v)};
@ middle
Align to the vertical-middle.
@ bottom
Align to the bottom.
@ right
Align the text to the right side.
@ left
Align the text to the left side.
@ center
Align the text in the center.
@ other
The gui_event does not have associated data.
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
Horizontal/Vertical alignment combination.
Definition alignment.hpp:242
Definition translate2.hpp:14
static constexpr translate2 align(aarectangle src_rectangle, aarectangle dst_rectangle, alignment alignment) noexcept
Align a rectangle within another rectangle.
Definition translate2.hpp:80
A high-level geometric vector Part of the high-level vector, point, mat and color types.
Definition vector2.hpp:19