Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::CellPoint Struct Reference

An owning value in terminal columns/rows, x right and y down. More...

#include <geometry.hpp>

Public Member Functions

bool operator== (const CellPoint &other) const noexcept=default
 Compare both coordinates; no errors or invalidation.

Public Attributes

std::int32_t x {}
 Horizontal coordinate in terminal columns.
std::int32_t y {}
 Vertical coordinate in terminal rows.

Detailed Description

An owning value in terminal columns/rows, x right and y down.

Negative coordinates are valid. No implicit Canvas/GUI unit conversion exists. Values have independent lifetime, no thread affinity and no invalidation. Concurrent read-only use is safe; shared mutation requires caller synchronization.

Member Function Documentation

◆ operator==()

bool portals::CellPoint::operator== ( const CellPoint & other) const
defaultnoexcept

Compare both coordinates; no errors or invalidation.

Parameters
otherValue 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: