ttx 0.1.0
Loading...
Searching...
No Matches
ttx::Renderer Class Reference

#include <ttx/renderer.h>

Public Member Functions

 Renderer ()
 
auto setup (dius::SyncFile &output, Feature features) -> di::Result<>
 
auto cleanup (dius::SyncFile &output) -> di::Result<>
 
void start (Size const &size)
 
auto finish (dius::SyncFile &output, RenderedCursor const &cursor) -> di::Result<>
 
void put_text (di::StringView text, u32 row, u32 col, GraphicsRendition const &rendition={}, di::Optional< terminal::Hyperlink const & > hyperlink={})
 
void put_text (c32 text, u32 row, u32 col, GraphicsRendition const &rendition={}, di::Optional< terminal::Hyperlink const & > hyperlink={})
 
void put_cell (di::StringView text, u32 row, u32 col, GraphicsRendition const &rendition, di::Optional< terminal::Hyperlink const & > hyperlink, terminal::MultiCellInfo const &multi_cell_info, bool explicitly_sized, bool complex_grapheme_cluster)
 
void clear_row (u32 row, GraphicsRendition const &graphics_rendition={}, di::Optional< terminal::Hyperlink const & > hyperlink={})
 
void set_bound (u32 row, u32 col, u32 width, u32 height)
 

Constructor & Destructor Documentation

◆ Renderer()

ttx::Renderer::Renderer ( )
inline

Member Function Documentation

◆ cleanup()

auto ttx::Renderer::cleanup ( dius::SyncFile & output) -> di::Result<>

◆ clear_row()

void ttx::Renderer::clear_row ( u32 row,
GraphicsRendition const & graphics_rendition = {},
di::Optional< terminal::Hyperlink const & > hyperlink = {} )

◆ finish()

auto ttx::Renderer::finish ( dius::SyncFile & output,
RenderedCursor const & cursor ) -> di::Result<>

◆ put_cell()

void ttx::Renderer::put_cell ( di::StringView text,
u32 row,
u32 col,
GraphicsRendition const & rendition,
di::Optional< terminal::Hyperlink const & > hyperlink,
terminal::MultiCellInfo const & multi_cell_info,
bool explicitly_sized,
bool complex_grapheme_cluster )

◆ put_text() [1/2]

void ttx::Renderer::put_text ( c32 text,
u32 row,
u32 col,
GraphicsRendition const & rendition = {},
di::Optional< terminal::Hyperlink const & > hyperlink = {} )

◆ put_text() [2/2]

void ttx::Renderer::put_text ( di::StringView text,
u32 row,
u32 col,
GraphicsRendition const & rendition = {},
di::Optional< terminal::Hyperlink const & > hyperlink = {} )

◆ set_bound()

void ttx::Renderer::set_bound ( u32 row,
u32 col,
u32 width,
u32 height )

◆ setup()

auto ttx::Renderer::setup ( dius::SyncFile & output,
Feature features ) -> di::Result<>

◆ start()

void ttx::Renderer::start ( Size const & size)

The documentation for this class was generated from the following files: