Represents the current cursor position of the terminal.
More...
#include <ttx/terminal/cursor.h>
|
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.
|
|
|
constexpr friend auto | tag_invoke (di::Tag< di::reflect >, di::InPlaceType< Cursor >) |
|
Represents the current cursor position of the terminal.
◆ operator<=>()
auto ttx::terminal::Cursor::operator<=> |
( |
Cursor const & | | ) |
const |
|
default |
◆ operator==()
auto ttx::terminal::Cursor::operator== |
( |
Cursor const & | | ) |
const -> bool=default |
|
default |
◆ tag_invoke
friend auto tag_invoke |
( |
di::Tag< di::reflect > | , |
|
|
di::InPlaceType< Cursor > | ) |
|
friend |
◆ col
u32 ttx::terminal::Cursor::col { 0 } |
◆ 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 } |
◆ 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: