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)
#include <nxt/tui_terminal.hpp>
std:: string nxt:: tui:: detail:: cell_text(const nxt:: vterm:: Cell& cell)
#include <nxt/tui_terminal.hpp>
Rgba8 nxt:: tui:: detail:: color_from_vterm(const nxt:: vterm:: Color& color)
#include <nxt/tui_terminal.hpp>
Rgba8 nxt:: tui:: detail:: cursor_color_or(Rgba8 color,
Rgba8 fallback)
#include <nxt/tui_terminal.hpp>
Emphasis nxt:: tui:: detail:: emphasis_from_cell(const nxt:: vterm:: Cell& cell)
#include <nxt/tui_terminal.hpp>
void nxt:: tui:: detail:: render_cursor(RasterView& raster,
Size size,
const nxt:: vterm:: Cursor& cursor,
Style clear_style)
#include <nxt/tui_terminal.hpp>
width_ t nxt:: tui:: detail:: scroll_for_cursor(width_ t cursor_cell,
width_ t field_w) noexcept
#include <nxt/text_field.hpp>
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.