ttx 0.1.0
Loading...
Searching...
No Matches
ttx::terminal::SelectionPoint Struct Reference

Represents a coordinate of a visual selection. More...

#include <ttx/terminal/selection.h>

Public Member Functions

auto operator== (SelectionPoint const &) const -> bool=default
 
auto operator<=> (SelectionPoint const &) const =default
 

Public Attributes

u64 row { 0 }
 The absolute row referenced by the selection.
 
u32 col { 0 }
 The column referenced by the selection.
 

Friends

constexpr friend auto tag_invoke (di::Tag< di::reflect >, di::InPlaceType< SelectionPoint >)
 

Detailed Description

Represents a coordinate of a visual selection.

The row coordinate if measured in absolute units, and so can refer to rows in the scroll back.

Member Function Documentation

◆ operator<=>()

auto ttx::terminal::SelectionPoint::operator<=> ( SelectionPoint const & ) const
default

◆ operator==()

auto ttx::terminal::SelectionPoint::operator== ( SelectionPoint const & ) const -> bool=default
default

Friends And Related Symbol Documentation

◆ tag_invoke

friend auto tag_invoke ( di::Tag< di::reflect > ,
di::InPlaceType< SelectionPoint >  )
friend

Member Data Documentation

◆ col

u32 ttx::terminal::SelectionPoint::col { 0 }

The column referenced by the selection.

◆ row

u64 ttx::terminal::SelectionPoint::row { 0 }

The absolute row referenced by the selection.


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