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

Owning decoder context; validity changes are ordered by the caller. More...

#include <input.hpp>

Public Member Functions

bool operator== (const InputPointerContext &other) const =default
 Compare the complete coordinate interpretation.

Public Attributes

InputCoordinateMode mode {InputCoordinateMode::CELL}
 Wire coordinate units.
std::uint32_t columns {}
 Positive character width, or zero if unavailable.
std::uint32_t rows {}
 Positive character height, or zero if unavailable.
std::uint32_t text_width_px {}
 Positive text-area pixel width, or zero if unavailable.
std::uint32_t text_height_px {}
 Positive text-area pixel height, or zero if unavailable.
std::uint64_t generation {}
 Caller-owned generation, independent of probe windows.

Detailed Description

Owning decoder context; validity changes are ordered by the caller.

Member Function Documentation

◆ operator==()

bool portals::InputPointerContext::operator== ( const InputPointerContext & other) const
default

Compare the complete coordinate interpretation.

Parameters
otherIndependently owned context.
Returns
Whether all fields match.

The documentation for this struct was generated from the following file: