3#include "di/container/string/string_view.h"
4#include "di/io/vector_writer.h"
5#include "dius/sync_file.h"
20 void start(dius::tty::WindowSize size);
28 void set_bound(u32 row, u32 col, u32 width, u32 height);
31 di::VectorWriter<> m_buffer;
32 dius::tty::WindowSize m_size;
35 u32 m_last_cursor_row { 0 };
36 u32 m_last_cursor_col { 0 };
38 u32 m_row_offset { 0 };
39 u32 m_col_offset { 0 };
40 u32 m_bound_width { 0 };
41 u32 m_bound_height { 0 };
auto finish(dius::SyncFile &output, RenderedCursor const &cursor) -> di::Result<>
Definition renderer.cpp:29
void set_bound(u32 row, u32 col, u32 width, u32 height)
Definition renderer.cpp:94
void put_text(di::StringView text, u32 row, u32 col, GraphicsRendition const &graphics_rendition={})
Definition renderer.cpp:44
void clear_row(u32 row, GraphicsRendition const &graphics_rendition={})
Definition renderer.cpp:84
void start(dius::tty::WindowSize size)
Definition renderer.cpp:11
Definition test_graphics_rendition.cpp:7
Definition cursor_style.h:5
CursorStyle
Definition cursor_style.h:6
@ SteadyBlock
Definition cursor_style.h:8
Definition graphics_rendition.h:103
CursorStyle style
Definition renderer.h:14
bool hidden
Definition renderer.h:15
u32 cursor_row
Definition renderer.h:12
u32 cursor_col
Definition renderer.h:13