Loading [MathJax]/extensions/tex2jax.js
ttx 0.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
row.h
Go to the documentation of this file.
1#pragma once
2
3#include "di/container/string/prelude.h"
4#include "di/container/vector/prelude.h"
5#include "ttx/terminal/cell.h"
6
7namespace ttx::terminal {
9struct Row {
10 di::Vector<Cell> cells;
11 di::String text;
12 bool overflow { false };
13 mutable bool stale { false };
14};
15}
Definition capability.h:8
Represents a on-screen terminal row of cells.
Definition row.h:9
di::Vector< Cell > cells
Fixed size vector of terminal cells for this row.
Definition row.h:10
bool stale
Dirty bit for damage tracking. 1 indicates the cell isn't dirty.
Definition row.h:13
di::String text
Text associated with the row.
Definition row.h:11
bool overflow
Use for rewrapping on resize. Set if the cursor overflowed when at this row.
Definition row.h:12