3#include "di/reflect/prelude.h"
4#include "di/types/prelude.h"
17 constexpr friend auto tag_invoke(di::Tag<di::reflect>, di::InPlaceType<Cursor>) {
Definition capability.h:8
Represents the current cursor position of the terminal.
Definition cursor.h:8
auto operator<=>(Cursor const &) const =default
bool overflow_pending
Signals that the previous text outputted reached the end of a row.
Definition cursor.h:12
constexpr friend auto tag_invoke(di::Tag< di::reflect >, di::InPlaceType< Cursor >)
Definition cursor.h:17
u32 col
Column (x coordinate)
Definition cursor.h:10
usize text_offset
Cached text offset of the cell pointed to by the cursor.
Definition cursor.h:11
auto operator==(Cursor const &) const -> bool=default
u32 row
Row (y coordinate)
Definition cursor.h:9