Skip to content
You are viewing documentation for v4.0.0. Switch to latest (main).

ftxui::Pixel ​

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

A unicode character and its associated style.

Examples: component/canvas_animated, dom/canvas

Summary ​

SymbolDescription
character
background_color
foreground_color
blink
bold
dim
inverted
underlined
underlined_double
strikethrough
automerge
operator==
Pixel

Public Attributes ​

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

cpp
bool blink;

Examples: dom/style_blink, dom/style_gallery

bold ​

cpp
bool bold;

Examples: component/canvas_animated, component/flexbox_gallery, component/homescreen, component/menu2, component/menu_entries, component/menu_style, component/modal_dialog_custom, component/renderer, dom/hflow, dom/html_like, dom/package_manager, dom/size (+5 more)

dim ​

cpp
bool dim;

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

inverted ​

cpp
bool inverted;

Examples: 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;

strikethrough ​

cpp
bool strikethrough;

Examples: dom/style_gallery, dom/style_strikethrough

automerge ​

cpp
bool automerge;

Public Member Functions ​

operator== ​

cpp
bool operator==(const Pixel & other) const;

Pixel ​

cpp
Pixel();

Examples: component/canvas_animated, dom/canvas