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

Byte-boundary selection owned by the document session, independent of a view. More...

#include <text_document.hpp>

Public Member Functions

bool operator== (const TextSelection &other) const noexcept=default

Public Attributes

std::size_t cursor {}
 Active byte-boundary end.
std::size_t anchor {}
 Fixed byte-boundary end.

Detailed Description

Byte-boundary selection owned by the document session, independent of a view.

Member Function Documentation

◆ operator==()

bool portals::TextSelection::operator== ( const TextSelection & other) const
defaultnoexcept
Parameters
otherSelection to compare.
Returns
Equality of both byte offsets.

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