1.10 |
Simple width and height. More...
#include <geometry.h>
Public Types | |
using | DimType = Dim |
Helper to reference the dimension type. | |
Public Member Functions | |
constexpr | SizeType () noexcept=default |
template<class Dim2 > | |
constexpr | SizeType (const SizeType< Dim2 > &s) |
constexpr | SizeType (Dim width, Dim height) noexcept |
constexpr void | clear () noexcept |
Clear the size. | |
EGT_NODISCARD constexpr bool | empty () const noexcept |
Returns true if the size has no width or height. | |
EGT_NODISCARD constexpr Dim | height () const noexcept |
Get the height value. | |
constexpr void | height (Dim height) noexcept |
Set the height value. | |
constexpr SizeType & | operator*= (const SizeType &rhs) noexcept |
SizeType operator. | |
template<class T > | |
constexpr SizeType & | operator*= (const T &rhs) noexcept |
SizeType operator. | |
constexpr SizeType & | operator+= (const SizeType &rhs) noexcept |
SizeType operator. | |
template<class T > | |
constexpr SizeType & | operator+= (const T &rhs) noexcept |
SizeType operator. | |
constexpr SizeType & | operator-= (const SizeType &rhs) noexcept |
SizeType operator. | |
template<class T > | |
constexpr SizeType & | operator-= (const T &rhs) noexcept |
SizeType operator. | |
constexpr SizeType & | operator/= (const SizeType &rhs) noexcept |
SizeType operator. | |
template<class T > | |
constexpr SizeType & | operator/= (const T &rhs) noexcept |
SizeType operator. | |
EGT_NODISCARD constexpr Dim | width () const noexcept |
Get the width value. | |
constexpr void | width (Dim width) noexcept |
Set the width value. | |
Protected Attributes | |
Dim | m_height {0} |
Height. | |
Dim | m_width {0} |
Width. | |
Simple width and height.
using DimType = Dim |
Helper to reference the dimension type.
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
width | Width |
height | Height |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
Clear the size.
This means to set the width and height to zero.
|
inlineconstexprnoexcept |
Returns true if the size has no width or height.
This is a special case, and is the default state of a SizeType. This can be used to determine if a size has not been set in many cases.
|
inlineconstexprnoexcept |
Get the height value.
|
inlineconstexprnoexcept |
Set the height value.
|
inlineconstexprnoexcept |
SizeType operator.
|
inlineconstexprnoexcept |
SizeType operator.
|
inlineconstexprnoexcept |
SizeType operator.
|
inlineconstexprnoexcept |
SizeType operator.
|
inlineconstexprnoexcept |
SizeType operator.
|
inlineconstexprnoexcept |
SizeType operator.
|
inlineconstexprnoexcept |
SizeType operator.
|
inlineconstexprnoexcept |
SizeType operator.
|
inlineconstexprnoexcept |
Get the width value.
|
inlineconstexprnoexcept |
Set the width value.
|
protected |
Height.
|
protected |
Width.