Skip to content

ftxui::Cell ​

cpp
#include <ftxui/screen/cell.hpp>

A Unicode character and its associated style.

Note

This struct was previously named Pixel.

Examples: component/canvas_animated, component/selection, dom/canvas

Summary ​

SymbolDescription
blink
bold
dim
italic
inverted
underlined
underlined_double
strikethrough
automerge
hyperlink
character
background_color
foreground_color
Cell

Public Attributes ​

cpp
bool blink;

Examples: dom/style_blink, dom/style_gallery

bold ​

cpp
bool bold;

Examples: component/button, component/canvas_animated, component/dropdown_custom, component/flexbox_gallery, component/homescreen, component/menu2, component/menu_entries, component/menu_style, component/modal_dialog_custom, component/renderer, dom/hflow, dom/html_like (+7 more)

dim ​

cpp
bool dim;

Examples: component/flexbox_gallery, component/homescreen, component/input_style, component/menu_style, component/print_above, component/terminal_info, dom/hflow, dom/html_like, dom/package_manager, dom/size, dom/style_dim, dom/style_gallery (+1 more)

italic ​

cpp
bool italic;

Examples: dom/style_gallery, dom/style_italic

inverted ​

cpp
bool inverted;

Examples: component/dropdown_custom, component/menu_entries, component/menu_underline_animated_gallery, dom/graph, dom/style_gallery, dom/style_inverted

underlined ​

cpp
bool underlined;

Examples: component/canvas_animated, dom/canvas, dom/html_like, dom/style_gallery, dom/style_underlined

underlined_double ​

cpp
bool underlined_double;

Examples: component/selection

strikethrough ​

cpp
bool strikethrough;

Examples: dom/style_gallery, dom/style_strikethrough

automerge ​

cpp
bool automerge;
cpp
uint8_t hyperlink = 0;

Examples: dom/style_gallery, dom/style_hyperlink

character ​

cpp
std::string character = "";

background_color ​

cpp
Color background_color = Color::Default;

foreground_color ​

cpp
Color foreground_color = Color::Default;

Examples: component/canvas_animated, dom/canvas

Public Member Functions ​

Cell ​

cpp
Cell();

Examples: component/canvas_animated, component/selection, dom/canvas