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

Represents the current cursor position of the terminal. More...

#include <ttx/terminal/cursor.h>

Public Member Functions

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

Public Attributes

u32 row { 0 }
 Row (y coordinate)
 
u32 col { 0 }
 Column (x coordinate)
 
usize text_offset { 0 }
 Cached text offset of the cell pointed to by the cursor.
 
bool overflow_pending { false }
 Signals that the previous text outputted reached the end of a row.
 

Friends

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

Detailed Description

Represents the current cursor position of the terminal.

Member Function Documentation

◆ operator<=>()

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

◆ operator==()

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

Friends And Related Symbol Documentation

◆ tag_invoke

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

Member Data Documentation

◆ col

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

Column (x coordinate)

◆ overflow_pending

bool ttx::terminal::Cursor::overflow_pending { false }

Signals that the previous text outputted reached the end of a row.

◆ row

u32 ttx::terminal::Cursor::row { 0 }

Row (y coordinate)

◆ text_offset

usize ttx::terminal::Cursor::text_offset { 0 }

Cached text offset of the cell pointed to by the cursor.


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