2D size specified by a pair of width/height dimensions. More...
#include <size.hpp>
Public Member Functions | |
| constexpr | size ()=default |
| Default Constructor. Creates a default tc::sdk::size instance. | |
| constexpr | size (const size &)=default |
| Copy Constructor. Copy a tc::sdk::size instance into another one. | |
| constexpr | size (size &&)=default |
| Move Constructor. Copy a tc::sdk::size instance into another one. | |
| constexpr | size (T w, T h) noexcept |
| Constructor. Creates tc::sdk::size instance with given width and height dimensions. | |
| size & | operator= (const size &)=default |
| Assignment operator. Assign a tc::sdk::size instance to another one. | |
| size & | operator= (size &&)=default |
| Move assignment operator. Assign a tc::sdk::size instance to another one. | |
| constexpr bool | operator== (const size &other) const noexcept |
| Equality operator. | |
| constexpr bool | operator!= (const size &other) const noexcept |
| Inequality operator. | |
| constexpr bool | is_null () const noexcept |
| Check if the size is the null. | |
| constexpr T | width () const noexcept |
| Width dimension getter. | |
| constexpr T | height () const noexcept |
| Height dimension getter. | |
| void | set_width (T width) noexcept |
| Width coordinate setter. Set the width dimension of the size. | |
| void | set_height (T height) noexcept |
| Height coordinate setter. Set the height dimension of the size. | |
| constexpr std::string | to_string () const |
| Get the size string representation. | |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const size &s) |
| Output stream operator. | |
2D size specified by a pair of width/height dimensions.
| T | Dimensions type |
|
inlineexplicitconstexprnoexcept |
Constructor. Creates tc::sdk::size instance with given width and height dimensions.
| w | the width of the size. |
| h | the height of the size. |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineconstexpr |