An owning available extent in terminal columns/rows.
More...
#include <geometry.hpp>
|
| CellSize | normalized () const noexcept |
| | Return an owning nonnegative extent; no errors or invalidation.
|
| bool | operator== (const CellSize &other) const noexcept=default |
| | Compare stored components; no normalization, errors or invalidation.
|
|
|
std::int32_t | width {} |
| | Available number of columns, possibly negative before normalization.
|
|
std::int32_t | height {} |
| | Available number of rows, possibly negative before normalization.
|
An owning available extent in terminal columns/rows.
Signed inputs may be negative; normalized() clamps each negative component to zero. No implicit Canvas/GUI conversion exists. Values have independent lifetime, no thread affinity and no invalidation. Shared mutation requires synchronization.
◆ normalized()
| CellSize portals::CellSize::normalized |
( |
| ) |
const |
|
nodiscardnoexcept |
Return an owning nonnegative extent; no errors or invalidation.
- Returns
- A copy with each negative extent replaced by zero.
◆ operator==()
| bool portals::CellSize::operator== |
( |
const CellSize & | other | ) |
const |
|
defaultnoexcept |
Compare stored components; no normalization, errors or invalidation.
- Parameters
-
| other | Value whose corresponding fields are compared. |
- Returns
- True when every compared field is equal; false otherwise.
The documentation for this struct was generated from the following file: