FTXUI
0.8.1
C++ functional terminal UI.
|
Go to the documentation of this file. 1 #ifndef FTXUI_DOM_ELEMENTS_HPP
2 #define FTXUI_DOM_ELEMENTS_HPP
107 namespace Dimension {
114 #include "ftxui/dom/take_any_args.hpp"
Element clear_under(Element element)
Before drawing |child|, clear the pixels below. This is useful in.
Elements paragraph(std::wstring text)
Return a vector of ftxui::text for every word of the string. This is useful combined with ftxui::hflo...
Element border(Element)
Draw a border around the element.
Element flex_grow(Element)
Expand if possible.
Element xflex(Element)
Expand/Minimize if possible/needed on the X axis.
Element center(Element)
Center an element horizontally and vertically.
Element yflex_shrink(Element)
Minimize if needed on the Y axis.
Element window(Element title, Element content)
Draw window with a title and a border around the element.
Element align_right(Element)
Align an element on the right side.
Element frame(Element)
Allow an element to be displayed inside a 'virtual' area. It size can be larger than its container....
Element yflex(Element)
Expand/Minimize if possible/needed on the Y axis.
Element vtext(std::wstring text)
Display a piece unicode text vertically.
Element nothing(Element element)
A decoration doing absolutely nothing.
Element inverted(Element)
Add a filter that will invert the foreground and the background colors.
Element vcenter(Element)
Center an element vertically.
Decorator color(Color)
Decorate using a foreground color.
Decorator reflect(Box &box)
Element bold(Element)
Use a bold font, for elements with more emphasis.
std::function< std::vector< int >(int, int)> GraphFunction
Element filler()
An element that will take expand proportionnally to the space left in a container.
Element hbox(Elements)
A container displaying elements horizontally one by one.
Element flex_shrink(Element)
Minimize if needed.
Element flex(Element)
Make a child element to expand proportionnally to the space left in a container.
std::vector< Element > Elements
Element underlined(Element)
Make the underlined element to be underlined.
Element gauge(float ratio)
Draw a high definition progress bar.
Element operator|(Element, Decorator)
From an element, apply a decorator.
Element xflex_shrink(Element)
Minimize if needed on the X axis.
Element graph(GraphFunction)
Draw a graph using a GraphFunction.
Dimensions Fit(Element &)
std::shared_ptr< Node > Element
Element xflex_grow(Element)
Expand if possible on the X axis.
Decorator bgcolor(Color)
Decorate using a background color.
Element blink(Element)
The text drawn alternates in between visible and hidden.
Element vbox(Elements)
A container displaying elements vertically one by one.
Decorator size(Direction, Constraint, int value)
Apply a constraint on the size of an element.
Decorator borderWith(Pixel)
Same as border but with a constant Pixel around the element.
Element dbox(Elements)
Stack several element on top of each other.
Element notflex(Element)
Make the element not flexible.
Element hcenter(Element)
Center an element horizontally.
Element dim(Element)
Use a light font, for elements with less emphasis.
std::function< Element(Element)> Decorator
Element gridbox(std::vector< Elements > lines)
A container displaying a grid of elements.
Element hflow(Elements)
A container displaying elements horizontally one by one.
Element spinner(int charset_index, size_t image_index)
Useful to represent the effect of time and/or events. This display an ASCII art "video".
A unicode character and its associated style.
A class representing terminal colors.
Element text(std::wstring text)
Display a piece of unicode text.
Element yflex_grow(Element)
Expand if possible on the Y axis.