nxt::tui::detail namespace

Classes

struct NoResize
struct TextFieldRender

Functions

void append_utf8(std::string& out, std::uint32_t cp)
auto cell_text(const nxt::vterm::Cell& cell) →  std::string
auto color_from_vterm(const nxt::vterm::Color& color) →  Rgba8
auto cursor_color_or(Rgba8 color, Rgba8 fallback) →  Rgba8
auto emphasis_from_cell(const nxt::vterm::Cell& cell) →  Emphasis
void render_cursor(RasterView& raster, Size size, const nxt::vterm::Cursor& cursor, Style clear_style)
auto scroll_for_cursor(width_t cursor_cell, width_t field_w) →  width_t noexcept

Function documentation

void nxt::tui::detail::append_utf8(std::string& out, std::uint32_t cp)

std::string nxt::tui::detail::cell_text(const nxt::vterm::Cell& cell)

Rgba8 nxt::tui::detail::color_from_vterm(const nxt::vterm::Color& color)

Rgba8 nxt::tui::detail::cursor_color_or(Rgba8 color, Rgba8 fallback)

Emphasis nxt::tui::detail::emphasis_from_cell(const nxt::vterm::Cell& cell)

void nxt::tui::detail::render_cursor(RasterView& raster, Size size, const nxt::vterm::Cursor& cursor, Style clear_style)

width_t nxt::tui::detail::scroll_for_cursor(width_t cursor_cell, width_t field_w) noexcept

First visible display column that keeps cursor_cell on screen, given a viewport of field_w cells. Cursor stays within the window; when it reaches the right edge we scroll one cell at a time.