HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends
hi::v1::margins Class Reference

#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 marginsoperator= (margins const &) noexcept=default
 
constexpr marginsoperator= (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 marginsoperator+= (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
 

Detailed Description

The left, bottom, right and top margins.


The documentation for this class was generated from the following file: