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

Owning precise pointer sample; pixel coordinates are zero based in the text area. More...

#include <input.hpp>

Public Member Functions

bool operator== (const InputPointerPrecision &other) const =default
 Compare the complete sample and its coordinate context.

Public Attributes

std::uint32_t x {}
 Horizontal pixel coordinate.
std::uint32_t y {}
 Vertical pixel coordinate.
std::uint32_t columns {}
 Character width used for this sample.
std::uint32_t rows {}
 Character height used for this sample.
std::uint32_t text_width_px {}
 Positive text-area pixel width.
std::uint32_t text_height_px {}
 Positive text-area pixel height.
std::uint64_t generation {}
 Owning coordinate-context generation.

Detailed Description

Owning precise pointer sample; pixel coordinates are zero based in the text area.

Member Function Documentation

◆ operator==()

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

Compare the complete sample and its coordinate context.

Parameters
otherIndependently owned sample.
Returns
Whether every stored field matches.

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