34 constexpr size() =
default;
74 return _width ==
other._width && _height ==
other._height;
93 return _width == 0 && _height == 0;
136 return std::string(
"(" + std::to_string(_width) +
"x" + std::to_string(_height) +
")");
147 return stream <<
s.to_string();
Thread safe, blocking queue.
2D size specified by a pair of width/height dimensions.
constexpr size(T w, T h) noexcept
Constructor. Creates tc::sdk::size instance with given width and height dimensions.
constexpr size(const size &)=default
Copy Constructor. Copy a tc::sdk::size instance into another one.
constexpr T width() const noexcept
Width 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 bool is_null() const noexcept
Check if the size is the null.
size & operator=(const size &)=default
Assignment operator. Assign a tc::sdk::size instance to another one.
constexpr size()=default
Default Constructor. Creates a default tc::sdk::size instance.
friend std::ostream & operator<<(std::ostream &stream, const size &s)
Output stream operator.
constexpr bool operator==(const size &other) const noexcept
Equality operator.
size & operator=(size &&)=default
Move assignment operator. Assign a tc::sdk::size instance to another one.
constexpr std::string to_string() const
Get the size string representation.
constexpr T height() const noexcept
Height dimension getter.
constexpr bool operator!=(const size &other) const noexcept
Inequality operator.
constexpr size(size &&)=default
Move Constructor. Copy a tc::sdk::size instance into another one.