|
| | Size () |
| | Default constructor (zero position, identity orientation).
|
| |
| | Size (SizeComponentType width, SizeComponentType height, SizeComponentType depth=SizeComponentType { 0 }) |
| | Construct a size from width and height.
|
| |
| | Size (const Size &other)=default |
| | Copy constructor.
|
| |
| | Size (Size &&other) noexcept=default |
| | Move constructor.
|
| |
| Size & | operator= (const Size &other)=default |
| | Copy assignment operator.
|
| |
| Size & | operator= (Size &&other) noexcept=default |
| | Move assignment operator.
|
| |
|
| ~Size (void)=default |
| | Default destructor for Size.
|
| |
| Size & | setWidth (SizeComponentType width) noexcept |
| | Set the width component.
|
| |
| const SizeComponentType & | getWidth (void) const noexcept |
| | Get the position component.
|
| |
| Size & | setHeight (SizeComponentType height) noexcept |
| | Set the height component.
|
| |
| const SizeComponentType & | getHeight (void) const noexcept |
| | Get the height component.
|
| |
| Size & | setDepth (SizeComponentType depth) noexcept |
| | Set the depth component.
|
| |
| const SizeComponentType & | getDepth (void) const noexcept |
| | Get the depth component.
|
| |
| bool | operator== (const Size &other) const noexcept |
| | Equality comparison.
|
| |
| bool | operator!= (const Size &other) const noexcept |
| | Inequality comparison.
|
| |
| bool | operator< (const Size &other) const noexcept |
| | Less-than comparison for ordering.
|
| |
template<CanBeSizeComponent SizeComponentType>
class utility::graphic::Size< SizeComponentType >
Template class representing a size (width, height).
A size encodes both the spatial width and the height of an object in 2D space.
- Template Parameters
-
| SizeComponentType | Floating-point or integral type for size components. |
Definition at line 48 of file size.hpp.