HikoGUI
A low latency retained GUI
|
#include <hikogui/geometry/margins.hpp>
Public Types | |
using | array_type = simd<float, 4> |
using | value_type = array_type::value_type |
Public Member Functions | |
constexpr | margins (margins const &) noexcept=default |
constexpr | margins (margins &&) noexcept=default |
constexpr margins & | operator= (margins const &) noexcept=default |
constexpr margins & | operator= (margins &&) noexcept=default |
constexpr | margins (float margin) noexcept |
constexpr | margins (float left, float bottom, float right, float top) noexcept |
constexpr | margins (array_type v) noexcept |
constexpr | operator array_type () const noexcept |
constexpr float | left () const noexcept |
constexpr float & | left () noexcept |
constexpr float | bottom () const noexcept |
constexpr float & | bottom () noexcept |
constexpr float | right () const noexcept |
constexpr float & | right () noexcept |
constexpr float | top () const noexcept |
constexpr float & | top () noexcept |
constexpr float | operator[] (std::size_t i) const noexcept |
constexpr margins & | operator+= (margins const &rhs) noexcept |
Friends | |
template<int I> | |
constexpr friend float | get (margins const &rhs) noexcept |
constexpr friend margins | max (margins const &lhs, margins const &rhs) noexcept |
constexpr friend bool | operator== (margins const &lhs, margins const &rhs) noexcept |
The left, bottom, right and top margins.