|
FTXUI 6.1.9
C++ functional terminal UI.
|
Please check the tutorial of the ftxui/dom module.
Functions | |
| Element | automerge (Element child) |
| Enable character to be automatically merged with others nearby. | |
| Element | blink (Element child) |
| The text drawn alternates in between visible and hidden. | |
| Element | bold (Element child) |
| Use a bold font, for elements with more emphasis. | |
| Element | border (Element child) |
| Draw a border around the element. | |
| Decorator | borderWith (const Pixel &pixel) |
| Same as border but with a constant Pixel around the element. | |
| Decorator | borderStyled (BorderStyle style) |
| Same as border but with different styles. | |
| Decorator | borderStyled (Color foreground_color) |
| Same as border but with a foreground color. | |
| Decorator | borderStyled (BorderStyle style, Color foreground_color) |
| Same as border but with a foreground color and a different style. | |
| Element | borderDashed (Element child) |
| Draw a dashed border around the element. | |
| Element | borderLight (Element child) |
| Draw a light border around the element. | |
| Element | borderHeavy (Element child) |
| Draw a heavy border around the element. | |
| Element | borderDouble (Element child) |
| Draw a double border around the element. | |
| Element | borderRounded (Element child) |
| Draw a rounded border around the element. | |
| Element | borderEmpty (Element child) |
| Draw an empty border around the element. | |
| Element | window (Element title, Element content, BorderStyle border) |
| Draw window with a title and a border around the element. | |
| Element | clear_under (Element element) |
| Before drawing |child|, clear the pixels below. This is useful in combination with dbox. | |
| Element | color (Color color, Element child) |
| Set the foreground color of an element. | |
| Element | bgcolor (Color color, Element child) |
| Set the background color of an element. | |
| Decorator | color (Color c) |
| Decorate using a foreground color. | |
| Decorator | bgcolor (Color color) |
| Decorate using a background color. | |
| Element | hcenter (Element child) |
| Center an element horizontally. | |
| Element | vcenter (Element child) |
| Center an element vertically. | |
| Element | center (Element child) |
| Center an element horizontally and vertically. | |
| Element | align_right (Element child) |
| Align an element on the right side. | |
| Element | dbox (Elements children_) |
| Stack several element on top of each other. | |
| Element | dim (Element child) |
| Use a light font, for elements with less emphasis. | |
| Element | filler () |
| An element that will take expand proportionally to the space left in a container. | |
| Element | flex (Element child) |
| Make a child element to expand proportionally to the space left in a container. | |
| Element | xflex (Element child) |
| Expand/Minimize if possible/needed on the X axis. | |
| Element | yflex (Element child) |
| Expand/Minimize if possible/needed on the Y axis. | |
| Element | flex_grow (Element child) |
| Expand if possible. | |
| Element | xflex_grow (Element child) |
| Expand if possible on the X axis. | |
| Element | yflex_grow (Element child) |
| Expand if possible on the Y axis. | |
| Element | flex_shrink (Element child) |
| Minimize if needed. | |
| Element | xflex_shrink (Element child) |
| Minimize if needed on the X axis. | |
| Element | yflex_shrink (Element child) |
| Minimize if needed on the Y axis. | |
| Element | notflex (Element child) |
| Make the element not flexible. | |
| Decorator | focusPositionRelative (float x, float y) |
Used inside a frame, this force the view to be scrolled toward a a given position. The position is expressed in proportion of the requested size. | |
| Decorator | focusPosition (int x, int y) |
Used inside a frame, this force the view to be scrolled toward a a given position. The position is expressed in the numbers of cells. | |
| Element | focus (Element child) |
Set the child to be the one focused among its siblings. | |
| Element | focusCursorBlock (Element child) |
Same as focus, but set the cursor shape to be a still block. | |
| Element | focusCursorBlockBlinking (Element child) |
Same as focus, but set the cursor shape to be a blinking block. | |
| Element | focusCursorBar (Element child) |
Same as focus, but set the cursor shape to be a still block. | |
| Element | focusCursorBarBlinking (Element child) |
Same as focus, but set the cursor shape to be a blinking bar. | |
| Element | focusCursorUnderline (Element child) |
Same as focus, but set the cursor shape to be a still underline. | |
| Element | focusCursorUnderlineBlinking (Element child) |
Same as focus, but set the cursor shape to be a blinking underline. | |
| Element | gaugeDirection (float progress, Direction direction) |
| Draw a high definition progress bar progressing in specified direction. | |
| Element | gaugeRight (float progress) |
| Draw a high definition progress bar progressing from left to right. | |
| Element | gaugeLeft (float progress) |
| Draw a high definition progress bar progressing from right to left. | |
| Element | gaugeUp (float progress) |
| Draw a high definition progress bar progressing from bottom to top. | |
| Element | gaugeDown (float progress) |
| Draw a high definition progress bar progressing from top to bottom. | |
| Element | gauge (float progress) |
| Draw a high definition progress bar. | |
| Element | hyperlink (std::string link, Element child) |
| Make the rendered area clickable using a web browser. The link will be opened when the user clicks on it. This is supported only on a limited set of terminal emulators. List: https://github.com/Alhadis/OSC8-Adoption/. | |
| Decorator | hyperlink (std::string link) |
| Decorate using a hyperlink. The link will be opened when the user clicks on it. This is supported only on a limited set of terminal emulators. List: https://github.com/Alhadis/OSC8-Adoption/. | |
| Element | inverted (Element child) |
| Add a filter that will invert the foreground and the background colors. | |
| Element | italic (Element child) |
| Apply a underlinedDouble to text. | |
| Element | color (const LinearGradient &gradient, Element child) |
| Set the foreground color of an element with linear-gradient effect. | |
| Element | bgcolor (const LinearGradient &gradient, Element child) |
| Set the background color of an element with linear-gradient effect. | |
| Decorator | color (const LinearGradient &gradient) |
| Decorate using a linear-gradient effect on the foreground color. | |
| Decorator | bgcolor (const LinearGradient &gradient) |
| Decorate using a linear-gradient effect on the background color. | |
| void | Render (Screen &screen, const Element &element) |
| Display an element on a ftxui::Screen. | |
| void | Render (Screen &screen, Node *node) |
| Display an element on a ftxui::Screen. | |
| Element | paragraph (const std::string &the_text) |
| Return an element drawing the paragraph on multiple lines. | |
| Element | paragraphAlignLeft (const std::string &the_text) |
| Return an element drawing the paragraph on multiple lines, aligned on the left. | |
| Element | paragraphAlignRight (const std::string &the_text) |
| Return an element drawing the paragraph on multiple lines, aligned on the right. | |
| Element | paragraphAlignCenter (const std::string &the_text) |
| Return an element drawing the paragraph on multiple lines, aligned on the center. | |
| Element | paragraphAlignJustify (const std::string &the_text) |
| Return an element drawing the paragraph on multiple lines, aligned using a justified alignment. the center. | |
| Element | vscroll_indicator (Element child) |
| Display a vertical scrollbar on the right. Colors follow the content. | |
| Element | hscroll_indicator (Element child) |
| Display a horizontal scrollbar at the bottom. Colors follow the content. | |
| Element | separator () |
| Draw a vertical or horizontal separation in between two other elements. | |
| Element | separatorStyled (BorderStyle style) |
| Draw a vertical or horizontal separation in between two other elements. | |
| Element | separatorLight () |
| Draw a vertical or horizontal separation in between two other elements, using the LIGHT style. | |
| Element | separatorDashed () |
| Draw a vertical or horizontal separation in between two other elements, using the DASHED style. | |
| Element | separatorHeavy () |
| Draw a vertical or horizontal separation in between two other elements, using the HEAVY style. | |
| Element | separatorDouble () |
| Draw a vertical or horizontal separation in between two other elements, using the DOUBLE style. | |
| Element | separatorEmpty () |
| Draw a vertical or horizontal separation in between two other elements, using the EMPTY style. | |
| Element | separatorCharacter (std::string value) |
| Draw a vertical or horizontal separation in between two other elements. | |
| Element | separator (Pixel pixel) |
| Draw a separator in between two element filled with a given pixel. | |
| Decorator | size (WidthOrHeight direction, Constraint constraint, int value) |
| Apply a constraint on the size of an element. | |
| Element | spinner (int charset_index, size_t image_index) |
| Useful to represent the effect of time and/or events. This displays an ASCII art "video". | |
| Element | strikethrough (Element child) |
| Apply a strikethrough to text. | |
| Element | text (std::string text) |
| Display a piece of UTF8 encoded unicode text. | |
| Element | text (std::wstring text) |
| Display a piece of unicode text. | |
| Element | vtext (std::string text) |
| Display a piece of unicode text vertically. | |
| Element | vtext (std::wstring text) |
| Display a piece unicode text vertically. | |
| Element | underlined (Element child) |
| Underline the given element. | |
| Element | underlinedDouble (Element child) |
| Apply a underlinedDouble to text. | |
| Element | nothing (Element element) |
| A decoration doing absolutely nothing. | |
| Decorator | operator| (Decorator a, Decorator b) |
| Compose two decorator into one. | |
| Elements | operator| (Elements elements, Decorator decorator) |
| From a set of element, apply a decorator to every elements. | |
| Element | operator| (Element element, Decorator decorator) |
| From an element, apply a decorator. | |
| Element & | operator|= (Element &e, Decorator d) |
| Apply a decorator to an element. | |
| Element | emptyElement () |
| Element | vbox (Elements children) |
| A container displaying elements vertically one by one. | |
| void | SetColorSupport (Color color) |
| Override terminal color support in case auto-detection fails. | |
| FlexboxConfig & | Set (FlexboxConfig::Direction) |
| Set the flexbox direction. | |
| FlexboxConfig & | Set (FlexboxConfig::Wrap) |
| Set the flexbox wrap. | |
| FlexboxConfig & | Set (FlexboxConfig::JustifyContent) |
| Set the flexbox justify content. | |
| FlexboxConfig & | Set (FlexboxConfig::AlignItems) |
| Set the flexbox align items. | |
| FlexboxConfig & | Set (FlexboxConfig::AlignContent) |
| Set the flexbox align content. | |
| FlexboxConfig & | SetGap (int gap_x, int gap_y) |
| Set the flexbox flex direction. | |
| LinearGradient () | |
| Build the "empty" gradient. This is often followed by calls to LinearGradient::Angle() and LinearGradient::Stop(). Example: | |
| LinearGradient (Color begin, Color end) | |
| Build a gradient with two colors. | |
| LinearGradient (float angle, Color begin, Color end) | |
| Build a gradient with two colors and an angle. | |
| LinearGradient & | Angle (float angle) |
| Set the angle of the gradient. | |
| LinearGradient & | Stop (Color color) |
| Add a color stop to the gradient. | |
| virtual void | ComputeRequirement () |
| Compute how much space an element needs. | |
| virtual void | SetBox (Box box) |
| Assign a position and a dimension to an element for drawing. | |
| virtual void | Select (Selection &selection) |
| Compute the selection of an element. | |
| virtual void | Render (Screen &screen) |
| Display an element on a ftxui::Screen. | |
| Table () | |
| Create an empty table. | |
| Table (std::vector< std::vector< std::string > >) | |
| Create a table from a vector of vector of string. | |
| Table (std::vector< std::vector< Element > >) | |
| Create a table from a vector of vector of Element. | |
| TableSelection | SelectRow (int row_index) |
| Select a row of the table. | |
| TableSelection | SelectRows (int row_min, int row_max) |
| Select a range of rows of the table. | |
| TableSelection | SelectColumn (int column_index) |
| Select a column of the table. | |
| TableSelection | SelectColumns (int column_min, int column_max) |
| Select a range of columns of the table. | |
| TableSelection | SelectCell (int column, int row) |
| Select a cell of the table. | |
| TableSelection | SelectRectangle (int column_min, int column_max, int row_min, int row_max) |
| Select a rectangle of the table. | |
| TableSelection | SelectAll () |
| Select all the table. | |
| Element | Render () |
| Render the table. | |
| void | Decorate (Decorator) |
Apply the decorator to the selection. This decorate both the cells, the lines and the corners. | |
| void | DecorateCells (Decorator) |
Apply the decorator to the selection. | |
| void | DecorateAlternateColumn (Decorator, int modulo=2, int shift=0) |
Apply the decorator to the selection. This decorate only the lines modulo modulo with a shift of shift. | |
| void | DecorateAlternateRow (Decorator, int modulo=2, int shift=0) |
Apply the decorator to the selection. This decorate only the lines modulo modulo with a shift of shift. | |
| void | DecorateCellsAlternateColumn (Decorator, int modulo=2, int shift=0) |
Apply the decorator to the selection. This decorate only the corners modulo modulo with a shift of shift. | |
| void | DecorateCellsAlternateRow (Decorator, int modulo=2, int shift=0) |
Apply the decorator to the selection. This decorate only the corners modulo modulo with a shift of shift. | |
| void | Border (BorderStyle border=LIGHT) |
Apply a border around the selection. | |
| void | Separator (BorderStyle border=LIGHT) |
| Draw some separator lines in the selection. | |
| void | SeparatorVertical (BorderStyle border=LIGHT) |
| Draw some vertical separator lines in the selection. | |
| void | SeparatorHorizontal (BorderStyle border=LIGHT) |
| Draw some horizontal separator lines in the selection. | |
| void | BorderLeft (BorderStyle border=LIGHT) |
| Draw some separator lines to the left side of the selection. | |
| void | BorderRight (BorderStyle border=LIGHT) |
| Draw some separator lines to the right side of the selection. | |
| void | BorderTop (BorderStyle border=LIGHT) |
| Draw some separator lines to the top side of the selection. | |
| void | BorderBottom (BorderStyle border=LIGHT) |
| Draw some separator lines to the bottom side of the selection. | |
Enable character to be automatically merged with others nearby.
Definition at line 17 of file automerge.cpp.
Draw a border around the element.
Add a border around an element
Definition at line 227 of file src/ftxui/dom/border.cpp.
Same as border but with a constant Pixel around the element.
Definition at line 234 of file src/ftxui/dom/border.cpp.
| Decorator borderStyled | ( | BorderStyle | style | ) |
Same as border but with different styles.
Definition at line 243 of file src/ftxui/dom/border.cpp.
Same as border but with a foreground color.
Definition at line 252 of file src/ftxui/dom/border.cpp.
| Decorator borderStyled | ( | BorderStyle | style, |
| Color | foreground_color ) |
Same as border but with a foreground color and a different style.
Definition at line 262 of file src/ftxui/dom/border.cpp.
Draw a dashed border around the element.
Add a border around an element
Definition at line 300 of file src/ftxui/dom/border.cpp.
Draw a light border around the element.
Add a border around an element
Definition at line 335 of file src/ftxui/dom/border.cpp.
Draw a heavy border around the element.
Add a border around an element
Definition at line 370 of file src/ftxui/dom/border.cpp.
Draw a double border around the element.
Add a border around an element
Definition at line 405 of file src/ftxui/dom/border.cpp.
Draw a rounded border around the element.
Add a border around an element
Definition at line 440 of file src/ftxui/dom/border.cpp.
Draw an empty border around the element.
Add a border around an element
Definition at line 475 of file src/ftxui/dom/border.cpp.
| Element window | ( | Element | title, |
| Element | content, | ||
| BorderStyle | border ) |
Draw window with a title and a border around the element.
| title | The title of the window. |
| content | The element to be wrapped. |
| border | The style of the border. Default is ROUNDED. |
Definition at line 507 of file src/ftxui/dom/border.cpp.
Before drawing |child|, clear the pixels below. This is useful in combination with dbox.
Definition at line 38 of file clear_under.cpp.
Set the foreground color of an element.
| color | The color of the output element. |
| child | The input element. |
Definition at line 81 of file dom/color.cpp.
Set the background color of an element.
| color | The color of the output element. |
| child | The input element. |
Definition at line 96 of file dom/color.cpp.
Decorate using a foreground color.
| c | The foreground color to be applied. |
Definition at line 110 of file dom/color.cpp.
Decorate using a background color.
| color | The background color to be applied. |
Definition at line 124 of file dom/color.cpp.
Center an element horizontally.
| child | The decorated element. |
Definition at line 15 of file composite_decorator.cpp.
Center an element vertically.
| child | The decorated element. |
Definition at line 23 of file composite_decorator.cpp.
Center an element horizontally and vertically.
| child | The decorated element. |
Definition at line 31 of file composite_decorator.cpp.
Align an element on the right side.
| child | The decorated element. |
Definition at line 39 of file composite_decorator.cpp.
Stack several element on top of each other.
| children_ | The input element. |
Definition at line 55 of file src/ftxui/dom/dbox.cpp.
| Element filler | ( | ) |
Make a child element to expand proportionally to the space left in a container.
| Decorator focusPositionRelative | ( | float | x, |
| float | y ) |
Used inside a frame, this force the view to be scrolled toward a a given position. The position is expressed in proportion of the requested size.
For instance:
Definition at line 31 of file src/ftxui/dom/focus.cpp.
| Decorator focusPosition | ( | int | x, |
| int | y ) |
Used inside a frame, this force the view to be scrolled toward a a given position. The position is expressed in the numbers of cells.
Definition at line 69 of file src/ftxui/dom/focus.cpp.
Draw a high definition progress bar progressing in specified direction.
| progress | The proportion of the area to be filled. Belong to [0,1]. |
| direction | Direction of progress bars progression. |
Definition at line 169 of file src/ftxui/dom/gauge.cpp.
| Element gaugeRight | ( | float | progress | ) |
Draw a high definition progress bar progressing from left to right.
| progress | The proportion of the area to be filled. Belong to [0,1]. |
A gauge. It can be used to represent a progress bar.
Definition at line 191 of file src/ftxui/dom/gauge.cpp.
| Element gaugeLeft | ( | float | progress | ) |
Draw a high definition progress bar progressing from right to left.
| progress | The proportion of the area to be filled. Belong to [0,1]. |
A gauge. It can be used to represent a progress bar.
Definition at line 213 of file src/ftxui/dom/gauge.cpp.
| Element gaugeUp | ( | float | progress | ) |
Draw a high definition progress bar progressing from bottom to top.
| progress | The proportion of the area to be filled. Belong to [0,1]. |
A gauge. It can be used to represent a progress bar.
Definition at line 242 of file src/ftxui/dom/gauge.cpp.
| Element gaugeDown | ( | float | progress | ) |
Draw a high definition progress bar progressing from top to bottom.
| progress | The proportion of the area to be filled. Belong to [0,1]. |
A gauge. It can be used to represent a progress bar.
Definition at line 271 of file src/ftxui/dom/gauge.cpp.
| Element gauge | ( | float | progress | ) |
Draw a high definition progress bar.
| progress | The proportion of the area to be filled. Belong to [0,1]. |
A gauge. It can be used to represent a progress bar.
Definition at line 293 of file src/ftxui/dom/gauge.cpp.
Make the rendered area clickable using a web browser. The link will be opened when the user clicks on it. This is supported only on a limited set of terminal emulators. List: https://github.com/Alhadis/OSC8-Adoption/.
| link | The link |
| child | The input element. |
Definition at line 51 of file hyperlink.cpp.
| Decorator hyperlink | ( | std::string | link | ) |
Decorate using a hyperlink. The link will be opened when the user clicks on it. This is supported only on a limited set of terminal emulators. List: https://github.com/Alhadis/OSC8-Adoption/.
| link | The link to redirect the users to. |
Definition at line 70 of file hyperlink.cpp.
Add a filter that will invert the foreground and the background colors.
Definition at line 34 of file inverted.cpp.
Apply a underlinedDouble to text.
Definition at line 17 of file italic.cpp.
| Element color | ( | const LinearGradient & | gradient, |
| Element | child ) |
Set the foreground color of an element with linear-gradient effect.
| gradient | The gradient effect to be applied on the output element. |
| child | The input element. |
Definition at line 251 of file src/ftxui/dom/linear_gradient.cpp.
| Element bgcolor | ( | const LinearGradient & | gradient, |
| Element | child ) |
Set the background color of an element with linear-gradient effect.
| gradient | The gradient effect to be applied on the output element. |
| child | The input element. |
Definition at line 267 of file src/ftxui/dom/linear_gradient.cpp.
| Decorator color | ( | const LinearGradient & | gradient | ) |
Decorate using a linear-gradient effect on the foreground color.
| gradient | The gradient effect to be applied on the output element. |
Definition at line 282 of file src/ftxui/dom/linear_gradient.cpp.
| Decorator bgcolor | ( | const LinearGradient & | gradient | ) |
Decorate using a linear-gradient effect on the background color.
| gradient | The gradient effect to be applied on the output element. |
Definition at line 297 of file src/ftxui/dom/linear_gradient.cpp.
Display an element on a ftxui::Screen.
Display an element on a ftxui::Screen.
| Element paragraph | ( | const std::string & | the_text | ) |
Return an element drawing the paragraph on multiple lines.
Definition at line 41 of file src/ftxui/dom/paragraph.cpp.
| Element paragraphAlignLeft | ( | const std::string & | the_text | ) |
Return an element drawing the paragraph on multiple lines, aligned on the left.
Definition at line 49 of file src/ftxui/dom/paragraph.cpp.
| Element paragraphAlignRight | ( | const std::string & | the_text | ) |
Return an element drawing the paragraph on multiple lines, aligned on the right.
Definition at line 60 of file src/ftxui/dom/paragraph.cpp.
| Element paragraphAlignCenter | ( | const std::string & | the_text | ) |
Return an element drawing the paragraph on multiple lines, aligned on the center.
Definition at line 72 of file src/ftxui/dom/paragraph.cpp.
| Element paragraphAlignJustify | ( | const std::string & | the_text | ) |
Return an element drawing the paragraph on multiple lines, aligned using a justified alignment. the center.
Definition at line 85 of file src/ftxui/dom/paragraph.cpp.
Display a vertical scrollbar on the right. Colors follow the content.
Definition at line 21 of file scroll_indicator.cpp.
Display a horizontal scrollbar at the bottom. Colors follow the content.
Definition at line 76 of file scroll_indicator.cpp.
| Element separator | ( | ) |
Draw a vertical or horizontal separation in between two other elements.
Add a visual separation in between two elements.
Definition at line 134 of file src/ftxui/dom/separator.cpp.
| Element separatorStyled | ( | BorderStyle | style | ) |
Draw a vertical or horizontal separation in between two other elements.
| style | the style of the separator. |
Add a visual separation in between two elements.
Definition at line 172 of file src/ftxui/dom/separator.cpp.
| Element separatorLight | ( | ) |
Draw a vertical or horizontal separation in between two other elements, using the LIGHT style.
Add a visual separation in between two elements.
Definition at line 209 of file src/ftxui/dom/separator.cpp.
| Element separatorDashed | ( | ) |
Draw a vertical or horizontal separation in between two other elements, using the DASHED style.
Add a visual separation in between two elements.
Definition at line 246 of file src/ftxui/dom/separator.cpp.
| Element separatorHeavy | ( | ) |
Draw a vertical or horizontal separation in between two other elements, using the HEAVY style.
Add a visual separation in between two elements.
Definition at line 283 of file src/ftxui/dom/separator.cpp.
| Element separatorDouble | ( | ) |
Draw a vertical or horizontal separation in between two other elements, using the DOUBLE style.
Add a visual separation in between two elements.
Definition at line 320 of file src/ftxui/dom/separator.cpp.
| Element separatorEmpty | ( | ) |
Draw a vertical or horizontal separation in between two other elements, using the EMPTY style.
Add a visual separation in between two elements.
Definition at line 357 of file src/ftxui/dom/separator.cpp.
| Element separatorCharacter | ( | std::string | value | ) |
Draw a vertical or horizontal separation in between two other elements.
| value | the character to fill the separator area. |
Add a visual separation in between two elements.
Definition at line 395 of file src/ftxui/dom/separator.cpp.
Draw a separator in between two element filled with a given pixel.
Definition at line 426 of file src/ftxui/dom/separator.cpp.
| Decorator size | ( | WidthOrHeight | direction, |
| Constraint | constraint, | ||
| int | value ) |
Apply a constraint on the size of an element.
| direction | Whether the WIDTH of the HEIGHT of the element must be constrained. |
| constraint | The type of constaint. |
| value | The value. |
Definition at line 89 of file src/ftxui/dom/size.cpp.
| Element spinner | ( | int | charset_index, |
| size_t | image_index ) |
Useful to represent the effect of time and/or events. This displays an ASCII art "video".
| charset_index | The type of "video". |
| image_index | The "frame" of the video. You need to increase this for every "step". |
Definition at line 282 of file src/ftxui/dom/spinner.cpp.
Apply a strikethrough to text.
Definition at line 17 of file strikethrough.cpp.
| Element text | ( | std::string | text | ) |
| Element text | ( | std::wstring | text | ) |
| Element vtext | ( | std::string | text | ) |
Display a piece of unicode text vertically.
| Element vtext | ( | std::wstring | text | ) |
Underline the given element.
Definition at line 33 of file underlined.cpp.
Apply a underlinedDouble to text.
Definition at line 17 of file underlined_double.cpp.
A decoration doing absolutely nothing.
Definition at line 28 of file dom/util.cpp.
Compose two decorator into one.
Definition at line 40 of file dom/util.cpp.
From a set of element, apply a decorator to every elements.
Definition at line 48 of file dom/util.cpp.
From an element, apply a decorator.
Both of these are equivalent:
Definition at line 70 of file dom/util.cpp.
Apply a decorator to an element.
Both of these are equivalent:
Definition at line 85 of file dom/util.cpp.
| Element emptyElement | ( | ) |
An element of size 0x0 drawing nothing.
Definition at line 140 of file dom/util.cpp.
| void SetColorSupport | ( | Color | color | ) |
Override terminal color support in case auto-detection fails.
Definition at line 140 of file terminal.cpp.
| FlexboxConfig & Set | ( | FlexboxConfig::Direction | d | ) |
Set the flexbox direction.
Definition at line 10 of file flexbox_config.cpp.
| FlexboxConfig & Set | ( | FlexboxConfig::Wrap | w | ) |
Set the flexbox wrap.
Definition at line 17 of file flexbox_config.cpp.
| FlexboxConfig & Set | ( | FlexboxConfig::JustifyContent | j | ) |
Set the flexbox justify content.
Definition at line 24 of file flexbox_config.cpp.
| FlexboxConfig & Set | ( | FlexboxConfig::AlignItems | a | ) |
Set the flexbox align items.
Definition at line 31 of file flexbox_config.cpp.
| FlexboxConfig & Set | ( | FlexboxConfig::AlignContent | a | ) |
Set the flexbox align content.
Definition at line 38 of file flexbox_config.cpp.
| FlexboxConfig & SetGap | ( | int | gap_x, |
| int | gap_y ) |
Set the flexbox flex direction.
Definition at line 45 of file flexbox_config.cpp.
|
default |
Build the "empty" gradient. This is often followed by calls to LinearGradient::Angle() and LinearGradient::Stop(). Example:
| LinearGradient | ( | Color | begin, |
| Color | end ) |
Build a gradient with two colors.
| begin | The color at the beginning of the gradient. |
| end | The color at the end of the gradient. |
Definition at line 199 of file src/ftxui/dom/linear_gradient.cpp.
| LinearGradient | ( | float | a, |
| Color | begin, | ||
| Color | end ) |
Build a gradient with two colors and an angle.
| a | The angle of the gradient. |
| begin | The color at the beginning of the gradient. |
| end | The color at the end of the gradient. |
Definition at line 207 of file src/ftxui/dom/linear_gradient.cpp.
| LinearGradient & Angle | ( | float | a | ) |
Set the angle of the gradient.
| a | The angle of the gradient. |
Definition at line 216 of file src/ftxui/dom/linear_gradient.cpp.
| LinearGradient & Stop | ( | Color | c | ) |
Add a color stop to the gradient.
| c | The color of the stop. |
Definition at line 235 of file src/ftxui/dom/linear_gradient.cpp.
|
virtual |
Compute how much space an element needs.
Reimplemented in NodeDecorator.
|
virtual |
Assign a position and a dimension to an element for drawing.
Reimplemented in NodeDecorator.
|
virtual |
|
virtual |
Display an element on a ftxui::Screen.
| Table | ( | ) |
Create an empty table.
Definition at line 48 of file src/ftxui/dom/table.cpp.
|
explicit |
Create a table from a vector of vector of string.
| input | The input data. |
Definition at line 55 of file src/ftxui/dom/table.cpp.
Create a table from a vector of vector of Element.
| input | The input elements. |
Definition at line 72 of file src/ftxui/dom/table.cpp.
| TableSelection SelectRow | ( | int | index | ) |
Select a row of the table.
| index | The index of the row to select. |
Definition at line 143 of file src/ftxui/dom/table.cpp.
| TableSelection SelectRows | ( | int | row_min, |
| int | row_max ) |
Select a range of rows of the table.
| row_min | The first row to select. |
| row_max | The last row to select. |
Definition at line 152 of file src/ftxui/dom/table.cpp.
| TableSelection SelectColumn | ( | int | index | ) |
Select a column of the table.
| index | The index of the column to select. |
Definition at line 160 of file src/ftxui/dom/table.cpp.
| TableSelection SelectColumns | ( | int | column_min, |
| int | column_max ) |
Select a range of columns of the table.
| column_min | The first column to select. |
| column_max | The last column to select. |
Definition at line 169 of file src/ftxui/dom/table.cpp.
| TableSelection SelectCell | ( | int | column, |
| int | row ) |
Select a cell of the table.
| column | The column of the cell to select. |
| row | The row of the cell to select. |
Definition at line 178 of file src/ftxui/dom/table.cpp.
| TableSelection SelectRectangle | ( | int | column_min, |
| int | column_max, | ||
| int | row_min, | ||
| int | row_max ) |
Select a rectangle of the table.
| column_min | The first column to select. |
| column_max | The last column to select. |
| row_min | The first row to select. |
| row_max | The last row to select. |
Definition at line 189 of file src/ftxui/dom/table.cpp.
| TableSelection SelectAll | ( | ) |
Select all the table.
Definition at line 211 of file src/ftxui/dom/table.cpp.
| Element Render | ( | ) |
Render the table.
Definition at line 224 of file src/ftxui/dom/table.cpp.
| void Decorate | ( | Decorator | decorator | ) |
Apply the decorator to the selection. This decorate both the cells, the lines and the corners.
| decorator | The decorator to apply. |
Definition at line 255 of file src/ftxui/dom/table.cpp.
| void DecorateCells | ( | Decorator | decorator | ) |
Apply the decorator to the selection.
| decorator | The decorator to apply. This decorate only the cells. |
Definition at line 269 of file src/ftxui/dom/table.cpp.
| void DecorateAlternateColumn | ( | Decorator | decorator, |
| int | modulo = 2, | ||
| int | shift = 0 ) |
Apply the decorator to the selection. This decorate only the lines modulo modulo with a shift of shift.
| decorator | The decorator to apply. |
| modulo | The modulo of the lines to decorate. |
| shift | The shift of the lines to decorate. |
Definition at line 287 of file src/ftxui/dom/table.cpp.
| void DecorateAlternateRow | ( | Decorator | decorator, |
| int | modulo = 2, | ||
| int | shift = 0 ) |
Apply the decorator to the selection. This decorate only the lines modulo modulo with a shift of shift.
| decorator | The decorator to apply. |
| modulo | The modulo of the lines to decorate. |
| shift | The shift of the lines to decorate. |
Definition at line 307 of file src/ftxui/dom/table.cpp.
| void DecorateCellsAlternateColumn | ( | Decorator | decorator, |
| int | modulo = 2, | ||
| int | shift = 0 ) |
Apply the decorator to the selection. This decorate only the corners modulo modulo with a shift of shift.
| decorator | The decorator to apply. |
| modulo | The modulo of the corners to decorate. |
| shift | The shift of the corners to decorate. |
Definition at line 327 of file src/ftxui/dom/table.cpp.
| void DecorateCellsAlternateRow | ( | Decorator | decorator, |
| int | modulo = 2, | ||
| int | shift = 0 ) |
Apply the decorator to the selection. This decorate only the corners modulo modulo with a shift of shift.
| decorator | The decorator to apply. |
| modulo | The modulo of the corners to decorate. |
| shift | The shift of the corners to decorate. |
Definition at line 347 of file src/ftxui/dom/table.cpp.
| void Border | ( | BorderStyle | border = LIGHT | ) |
Apply a border around the selection.
| border | The border style to apply. |
Definition at line 363 of file src/ftxui/dom/table.cpp.
| void Separator | ( | BorderStyle | border = LIGHT | ) |
Draw some separator lines in the selection.
| border | The border style to apply. |
Definition at line 382 of file src/ftxui/dom/table.cpp.
| void SeparatorVertical | ( | BorderStyle | border = LIGHT | ) |
Draw some vertical separator lines in the selection.
| border | The border style to apply. |
Definition at line 398 of file src/ftxui/dom/table.cpp.
| void SeparatorHorizontal | ( | BorderStyle | border = LIGHT | ) |
Draw some horizontal separator lines in the selection.
| border | The border style to apply. |
Definition at line 412 of file src/ftxui/dom/table.cpp.
| void BorderLeft | ( | BorderStyle | border = LIGHT | ) |
Draw some separator lines to the left side of the selection.
| border | The border style to apply. |
Definition at line 426 of file src/ftxui/dom/table.cpp.
| void BorderRight | ( | BorderStyle | border = LIGHT | ) |
Draw some separator lines to the right side of the selection.
| border | The border style to apply. |
Definition at line 436 of file src/ftxui/dom/table.cpp.
| void BorderTop | ( | BorderStyle | border = LIGHT | ) |
Draw some separator lines to the top side of the selection.
| border | The border style to apply. |
Definition at line 446 of file src/ftxui/dom/table.cpp.
| void BorderBottom | ( | BorderStyle | border = LIGHT | ) |
Draw some separator lines to the bottom side of the selection.
| border | The border style to apply. |
Definition at line 456 of file src/ftxui/dom/table.cpp.