9#include "../macros.hpp"
14hi_export_module(hikogui.geometry : translate2);
16hi_export
namespace hi {
inline namespace v1 {
21 using value_type = array_type::value_type;
30 [[
nodiscard]]
constexpr explicit operator array_type()
const noexcept
37 hi_axiom(holds_invariant());
57 [[
nodiscard]]
constexpr float x()
const noexcept
62 [[
nodiscard]]
constexpr float y()
const noexcept
67 [[
nodiscard]]
constexpr float& x()
noexcept
72 [[
nodiscard]]
constexpr float& y()
noexcept
119 return equal(lhs._v, rhs._v);
129 return _v.z() == 0.0f
and _v.w() == 0.0f;
132 [[
nodiscard]]
friend constexpr translate2 round(translate2
const& rhs)
noexcept
134 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_misc.hpp:20
The HikoGUI namespace.
Definition recursive_iterator.hpp:15
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378
Class which represents an axis-aligned rectangle.
Definition aarectangle.hpp:33
Horizontal/Vertical alignment combination.
Definition alignment.hpp:244
Definition translate2.hpp:18
static constexpr translate2 align(aarectangle src_rectangle, aarectangle dst_rectangle, alignment alignment) noexcept
Align a rectangle within another rectangle.
Definition translate2.hpp:84
A high-level geometric vector Part of the high-level vector, point, mat and color types.
Definition vector2.hpp:26
Definition simd_intf.hpp:18