|
HikoGUI
A low latency retained GUI
|
#include <hikogui/geometry/margins.hpp>
Public Types | |
| using | value_type = T |
| using | array_type = simd<T, 4> |
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 (value_type margin) noexcept |
| constexpr | margins (value_type left, value_type bottom, value_type right, value_type top) noexcept |
| constexpr | margins (array_type v) noexcept |
| constexpr | operator array_type () const noexcept |
| constexpr value_type | left () const noexcept |
| constexpr value_type & | left () noexcept |
| constexpr value_type | bottom () const noexcept |
| constexpr value_type & | bottom () noexcept |
| constexpr value_type | right () const noexcept |
| constexpr value_type & | right () noexcept |
| constexpr value_type | top () const noexcept |
| constexpr value_type & | top () noexcept |
| constexpr value_type | operator[] (std::size_t i) const noexcept |
| constexpr margins & | operator+= (margins const &rhs) noexcept |
Friends | |
| template<int I> | |
| constexpr friend value_type | 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.