11#include "../SIMD/SIMD.hpp"
12#include "../utility/utility.hpp"
13#include "../macros.hpp"
18hi_export_module(hikogui.geometry : margins);
20hi_export
namespace hi {
inline namespace v1 {
28 using value_type = array_type::value_type;
38 _v(left, bottom, right, top)
43 [[
nodiscard]]
constexpr explicit operator array_type()
const noexcept
48 [[
nodiscard]]
constexpr float left()
const noexcept
53 [[
nodiscard]]
constexpr float& left()
noexcept
58 [[
nodiscard]]
constexpr float bottom()
const noexcept
63 [[
nodiscard]]
constexpr float& bottom()
noexcept
68 [[
nodiscard]]
constexpr float right()
const noexcept
73 [[
nodiscard]]
constexpr float& right()
noexcept
78 [[
nodiscard]]
constexpr float top()
const noexcept
83 [[
nodiscard]]
constexpr float& top()
noexcept
107 return margins{max(lhs._v, rhs._v)};
112 return equal(lhs._v, rhs._v);
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
The left, bottom, right and top margins.
Definition margins.hpp:25
Definition simd_intf.hpp:18