Skip to content
You are viewing documentation for v0.11. Switch to latest (main).

ftxui::Pixel ​

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

A unicode character and its associated style.

Summary ​

SymbolDescription
character
background_color
foreground_color
blink
bold
dim
inverted
underlined
Pixel

Public Attributes ​

character ​

cpp
std::string character = " ";

background_color ​

cpp
Color background_color = Color::Default;

foreground_color ​

cpp
Color foreground_color = Color::Default;
cpp
bool blink;

Examples: dom/style_blink, dom/style_gallery

bold ​

cpp
bool bold;

Examples: component/homescreen, component/menu2, component/menu_entries, component/menu_style, component/modal_dialog, component/renderer, dom/hflow, dom/html_like, dom/package_manager, dom/size, dom/spinner, dom/style_bold (+2 more)

dim ​

cpp
bool dim;

Examples: component/homescreen, component/menu_style, dom/hflow, dom/html_like, dom/package_manager, dom/size, dom/style_dim, dom/style_gallery

inverted ​

cpp
bool inverted;

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

underlined ​

cpp
bool underlined;

Examples: dom/html_like, dom/style_gallery, dom/style_underlined

Public Member Functions ​

Pixel ​

cpp
Pixel();