FTXUI 6.1.9 C++ functional terminal UI. |
The FTXUI ftxui:: namespace.More...
Namespaces | |
namespace | animation |
The FTXUIftxui::animation:: namespace. | |
namespace | box_helper |
namespace | Container |
namespace | Dimension |
Define how theScreen's dimensions should look like. | |
namespace | flexbox_helper |
namespace | literals |
namespace | Terminal |
namespace | util |
Classes | |
struct | AnimatedColorOption |
Option about a potentially animated color.More... | |
struct | AnimatedColorsOption |
class | AnimationTask |
class | AutoReset |
Assign a value to a variable, reset its old value when going out of scope.More... | |
struct | Box |
Box is a structure that represents a rectangular area in a 2D space.More... | |
struct | ButtonOption |
Option for the AnimatedButton component.More... | |
struct | Canvas |
Canvas is a drawable buffer associated with drawing operations.More... | |
class | CapturedMouseInterface |
struct | CheckboxOption |
Option for the Checkbox component.More... | |
class | Color |
Color is a class that represents a color in the terminal user interface.More... | |
struct | ColorInfo |
ColorInfo is a structure that contains information about the terminal color palette.More... | |
class | ComponentBase |
It implement rendering itself asftxui::Element. It implement keyboard navigation by responding toftxui::Event.More... | |
class | ConstRef |
An adapter. Own or reference an immutable object.More... | |
class | ConstStringListRef |
An adapter. Reference a list of strings.More... | |
class | ConstStringRef |
An adapter. Own or reference a constant string. For convenience, this class convert multiple immutable string toward a shared representation.More... | |
struct | Dimensions |
Dimensions is a structure that represents the size of the terminal.More... | |
struct | DropdownOption |
Option for the Dropdown component.A dropdown menu is a checkbox opening/closing a radiobox.More... | |
struct | EntryState |
arguments for transform from |ButtonOption|, |CheckboxOption|, |RadioboxOption|, |MenuEntryOption|, |MenuOption|.More... | |
struct | Event |
Represent an event. It can be key press event, a terminal resize, or more ...More... | |
struct | FlexboxConfig |
FlexboxConfig is a configuration structure that defines the layout properties for a flexbox container.More... | |
class | Image |
A rectangular grid ofPixel.More... | |
struct | InputOption |
Option for the Input component.More... | |
struct | InputState |
Used to define style for the Input component.More... | |
struct | LinearGradient |
A class representing the settings for linear-gradient color effect.More... | |
class | Loop |
Loop is a class that manages the event loop for a component.More... | |
struct | MenuEntryOption |
Option for the MenuEntry component.More... | |
struct | MenuOption |
Option for the Menu component.More... | |
struct | Mouse |
A mouse event. It contains the coordinate of the mouse, the button pressed and the modifier (shift, ctrl, meta).More... | |
class | Node |
Node is the base class for all elements in the DOM tree.More... | |
class | NodeDecorator |
struct | Pixel |
A Unicode character and its associated style.More... | |
struct | RadioboxOption |
Option for the Radiobox component.More... | |
class | ReceiverImpl |
class | Ref |
An adapter. Own or reference an mutable object.More... | |
struct | Requirement |
Requirement is a structure that defines the layout requirements for aNode in the terminal user interface.More... | |
struct | ResizableSplitOption |
class | Screen |
A rectangular grid ofPixel.More... | |
class | ScreenInteractive |
ScreenInteractive is aScreen that can handle events, run a main loop, and manage components.More... | |
class | Selection |
Represents a selection in a terminal user interface.More... | |
class | SenderImpl |
struct | SliderOption |
class | StringRef |
An adapter. Own or reference a constant string. For convenience, this class convert multiple mutable string toward a shared representation.More... | |
class | Table |
Table is a utility to draw tables.More... | |
class | TableSelection |
class | TerminalInputParser |
struct | UnderlineOption |
Option for the underline effect.More... | |
struct | WindowOptions |
struct | WindowRenderState |
State passed to theWindow component's render function.More... | |
Typedefs | |
using | CapturedMouse = std::unique_ptr<CapturedMouseInterface> |
using | ComponentDecorator = std::function<Component(Component)> |
using | ElementDecorator = std::function<Element(Element)> |
using | Component = std::shared_ptr<ComponentBase> |
using | Components = std::vector<Component> |
template<class T > | |
using | Sender = std::unique_ptr<SenderImpl<T>> |
template<class T > | |
using | Receiver = std::unique_ptr<ReceiverImpl<T>> |
using | Closure = std::function<void()> |
using | Task = std::variant<Event,Closure,AnimationTask> |
using | Element = std::shared_ptr<Node> |
using | Elements = std::vector<Element> |
using | Decorator = std::function<Element(Element)> |
using | GraphFunction = std::function<std::vector<int>(int, int)> |
Enumerations | |
enum class | Direction { Up = 0, Down = 1, Left = 2, Right = 3 } |
Direction is an enumeration that represents the four cardinal directions.More... | |
enum | BorderStyle { LIGHT, DASHED, HEAVY, DOUBLE, ROUNDED, EMPTY } |
BorderStyle is an enumeration that represents the different styles of borders that can be applied to elements in the terminal UI.More... | |
enum | WidthOrHeight { WIDTH, HEIGHT } |
enum | Constraint { LESS_THAN, EQUAL, GREATER_THAN } |
enum class | WordBreakProperty : int8_t { ALetter, CR, Double_Quote, Extend, ExtendNumLet, Format, Hebrew_Letter, Katakana, LF, MidLetter, MidNum, MidNumLet, Newline, Numeric, Regional_Indicator, Single_Quote, WSegSpace, ZWJ } |
Functions | |
template<class T , class... Args> | |
std::shared_ptr< T > | Make (Args &&... args) |
Component | operator| (Component component,ComponentDecorator decorator) |
Component | operator| (Component component,ElementDecorator decorator) |
Component & | operator|= (Component &component,ComponentDecorator decorator) |
Component & | operator|= (Component &component,ElementDecorator decorator) |
Component | Button (ButtonOption option) |
Draw a button. Execute a function when clicked. | |
Component | Button (ConstStringRef label, std::function< void()> on_click,ButtonOption option) |
Draw a button. Execute a function when clicked. | |
Component | Checkbox (CheckboxOption option) |
Draw checkable element. | |
Component | Checkbox (ConstStringRef label, bool *checked,CheckboxOption option) |
Draw checkable element. | |
Component | Input (InputOption option) |
An input box for editing text. | |
Component | Input (StringRef content,InputOption option) |
An input box for editing text. | |
Component | Input (StringRef content,StringRef placeholder,InputOption option) |
An input box for editing text. | |
Component | Menu (MenuOption option) |
A list of text. The focused element is selected. | |
Component | Menu (ConstStringListRef entries, int *selected,MenuOption option) |
A list of text. The focused element is selected. | |
Component | MenuEntry (MenuEntryOption option) |
A specific menu entry. They can be put into a Container::Vertical to form a menu. | |
Component | MenuEntry (ConstStringRef label,MenuEntryOption option) |
A specific menu entry. They can be put into a Container::Vertical to form a menu. | |
Component | Radiobox (RadioboxOption option) |
A list of element, where only one can be selected. | |
Component | Radiobox (ConstStringListRef entries, int *selected,RadioboxOption option) |
A list of element, where only one can be selected. | |
Component | Dropdown (ConstStringListRef entries, int *selected) |
A dropdown menu. | |
Component | Dropdown (DropdownOption option) |
A dropdown menu. | |
Component | Toggle (ConstStringListRef entries, int *selected) |
An horizontal list of elements. The user can navigate through them. | |
template<typename T > | |
Component | Slider (SliderOption< T > options) |
A slider in any direction. | |
Component | Slider (ConstStringRef label,Ref< int > value,ConstRef< int > min,ConstRef< int > max,ConstRef< int > increment) |
An horizontal slider. | |
Component | Slider (ConstStringRef label,Ref< float > value,ConstRef< float > min=0.f,ConstRef< float > max=100.f,ConstRef< float > increment=5.f) |
Component | Slider (ConstStringRef label,Ref< long > value,ConstRef< long > min=0L,ConstRef< long > max=100L,ConstRef< long > increment=5L) |
Component | ResizableSplit (ResizableSplitOption options) |
A split in between two components. | |
Component | ResizableSplitLeft (Componentmain,Component back, int *main_size) |
An horizontal split in between two components, configurable using the mouse. | |
Component | ResizableSplitRight (Componentmain,Component back, int *main_size) |
An horizontal split in between two components, configurable using the mouse. | |
Component | ResizableSplitTop (Componentmain,Component back, int *main_size) |
An vertical split in between two components, configurable using the mouse. | |
Component | ResizableSplitBottom (Componentmain,Component back, int *main_size) |
An vertical split in between two components, configurable using the mouse. | |
Component | Renderer (Component child, std::function<Element()> render) |
Return a new Component, similar to |child|, but using |render| as the Component::Render() event. | |
Component | Renderer (std::function<Element()> render) |
Return a component, using |render| to render its interface. | |
Component | Renderer (std::function<Element(bool)> render) |
Return a focusable component, using |render| to render its interface. | |
ComponentDecorator | Renderer (ElementDecorator decorator) |
Decorate a component, by decorating what it renders. | |
Component | CatchEvent (Component child, std::function< bool(Event)>) |
ComponentDecorator | CatchEvent (std::function< bool(Event)> on_event) |
Decorate a component, using |on_event| to catch events. This function must returns true when the event has been handled, false otherwise. | |
Component | Maybe (Component child, const bool *show) |
Decorate a component |child|. It is shown only when |show| is true. | |
Component | Maybe (Component child, std::function< bool()> show) |
Decorate a component |child|. It is shown only when |show| returns true. | |
ComponentDecorator | Maybe (const bool *show) |
Decorate a component. It is shown only when |show| is true. | |
ComponentDecorator | Maybe (std::function< bool()> show) |
Decorate a component. It is shown only when the |show| function returns true. | |
Component | Modal (Componentmain,Component modal, const bool *show_modal) |
ComponentDecorator | Modal (Component modal, const bool *show_modal) |
Component | Collapsible (ConstStringRef label,Component child,Ref< bool > show) |
A collapsible component. It displays a checkbox with an arrow. Once activated, the child is displayed. | |
Component | Hoverable (Component component, bool *hover) |
Wrap a component. Gives the ability to know if it is hovered by the mouse. | |
Component | Hoverable (Component component, std::function< void()> on_enter, std::function< void()> on_leave) |
Wrap a component. Uses callbacks. | |
Component | Hoverable (Component component, std::function< void(bool)> on_change) |
Wrap a component. Gives the ability to know if it is hovered by the mouse. | |
ComponentDecorator | Hoverable (bool *hover) |
Wrap a component. Gives the ability to know if it is hovered by the mouse. | |
ComponentDecorator | Hoverable (std::function< void()> on_enter, std::function< void()> on_leave) |
Wrap a component. Gives the ability to know if it is hovered by the mouse. | |
ComponentDecorator | Hoverable (std::function< void(bool)> on_change) |
Wrap a component. Gives the ability to know if it is hovered by the mouse. | |
Component | Window (WindowOptions option) |
A draggeable / resizeable window. To use multiple of them, they must be stacked usingContainer::Stacked({...}) component;. | |
template<class T > | |
Receiver< T > | MakeReceiver () |
Element | text (std::wstring text) |
Display a piece of unicode text. | |
Element | vtext (std::wstring text) |
Display a piece unicode text vertically. | |
Elements | paragraph (std::wstring text) |
Element | operator| (Element element,Decorator decorator) |
From an element, apply a decorator. | |
Element & | operator|= (Element &e,Decorator d) |
Apply a decorator to an element. | |
Elements | operator| (Elements elements,Decorator decorator) |
From a set of element, apply a decorator to every elements. | |
Decorator | operator| (Decorator a,Decorator b) |
Compose two decorator into one. | |
Element | text (std::string text) |
Display a piece of UTF8 encoded unicode text. | |
Element | vtext (std::string text) |
Display a piece of unicode text vertically. | |
Element | separator () |
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 | separatorStyled (BorderStyle style) |
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. | |
Element | separatorCharacter (std::string value) |
Draw a vertical or horizontal separation in between two other elements. | |
Element | separatorHSelector (floatleft, floatright,Color unselected_color,Color selected_color) |
Draw a horizontal bar, with the area in between left/right colored differently. | |
Element | separatorVSelector (float up, floatdown,Color unselected_color,Color selected_color) |
Draw an vertical bar, with the area in between up/downcolored differently. | |
Element | gauge (float progress) |
Draw a high definition progress bar. | |
Element | gaugeLeft (float progress) |
Draw a high definition progress bar progressing from right to left. | |
Element | gaugeRight (float progress) |
Draw a high definition progress bar progressing from left to right. | |
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 | gaugeDirection (float progress,Direction direction) |
Draw a high definition progress bar progressing in specified direction. | |
Element | border (Element child) |
Draw a border around the element. | |
Element | borderLight (Element child) |
Draw a light border around the element. | |
Element | borderDashed (Element child) |
Draw a dashed 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. | |
Decorator | borderStyled (BorderStyle style) |
Same as border but with different styles. | |
Decorator | borderStyled (BorderStyle style,Color foreground_color) |
Same as border but with a foreground color and a different style. | |
Decorator | borderStyled (Color foreground_color) |
Same as border but with a foreground color. | |
Decorator | borderWith (constPixel &pixel) |
Same as border but with a constantPixel around the element. | |
Element | window (Element title,Element content,BorderStyle border) |
Draw window with a title and a border around the 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 | 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 | graph (GraphFunction graph_function) |
Draw a graph using a GraphFunction. | |
Element | emptyElement () |
Element | canvas (ConstRef<Canvas > canvas) |
Produce an element from aCanvas, or a reference to aCanvas. | |
Element | canvas (int width, int height, std::function< void(Canvas &)> fn) |
Produce an element drawing a canvas of requested size. | |
Element | canvas (std::function< void(Canvas &)> fn) |
Produce an element drawing a canvas. | |
Element | bold (Element child) |
Use a bold font, for elements with more emphasis. | |
Element | dim (Element child) |
Use a light font, for elements with less emphasis. | |
Element | italic (Element child) |
Apply a underlinedDouble to text. | |
Element | inverted (Element child) |
Add a filter that will invert the foreground and the background colors. | |
Element | underlined (Element child) |
Underline the given element. | |
Element | underlinedDouble (Element child) |
Apply a underlinedDouble to text. | |
Element | blink (Element child) |
The text drawn alternates in between visible and hidden. | |
Element | strikethrough (Element child) |
Apply a strikethrough to text. | |
Decorator | color (Color c) |
Decorate using a foreground color. | |
Decorator | bgcolor (Color color) |
Decorate using a background color. | |
Decorator | color (constLinearGradient &gradient) |
Decorate using a linear-gradient effect on the foreground color. | |
Decorator | bgcolor (constLinearGradient &gradient) |
Decorate using a linear-gradient effect on the background color. | |
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. | |
Element | color (constLinearGradient &gradient,Element child) |
Set the foreground color of an element with linear-gradient effect. | |
Element | bgcolor (constLinearGradient &gradient,Element child) |
Set the background color of an element with linear-gradient effect. | |
Decorator | focusPosition (int x, int y) |
Used inside aframe , this force the view to be scrolled toward a a given position. The position is expressed in the numbers of cells. | |
Decorator | focusPositionRelative (float x, float y) |
Used inside aframe , this force the view to be scrolled toward a a given position. The position is expressed in proportion of the requested size. | |
Element | automerge (Element child) |
Enable character to be automatically merged with others nearby. | |
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 | 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/. | |
Element | selectionStyleReset (Element child) |
Reset the selection style of an element. | |
Decorator | selectionColor (Color foreground) |
Set the color of an element when selected. | |
Decorator | selectionBackgroundColor (Color foreground) |
Set the background color of an element when selected. Note that the style is applied on top of the existing style. | |
Decorator | selectionForegroundColor (Color foreground) |
Set the foreground color of an element when selected. Note that the style is applied on top of the existing style. | |
Decorator | selectionStyle (std::function< void(Pixel &)> style) |
Set the style of an element when selected. | |
Element | hbox (Elements children) |
A container displaying elements horizontally one by one. | |
Element | vbox (Elements children) |
A container displaying elements vertically one by one. | |
Element | dbox (Elements children_) |
Stack several element on top of each other. | |
Element | flexbox (Elements children,FlexboxConfig config) |
A container displaying elements on row/columns and capable of wrapping on the next column/row when full. | |
Element | gridbox (std::vector<Elements > lines) |
A container displaying a grid of elements. | |
Element | hflow (Elements children) |
A container displaying elements in rows from left to right. When filled, it starts on a new row below. | |
Element | vflow (Elements children) |
A container displaying elements in rows from top to bottom. When filled, it starts on a new columns on the right. filled, it starts on a new row. is full, it starts a new row. | |
Element | flex (Element child) |
Make a child element to expand proportionally to the space left in a container. | |
Element | flex_grow (Element child) |
Expand if possible. | |
Element | flex_shrink (Element child) |
Minimize if needed. | |
Element | xflex (Element child) |
Expand/Minimize if possible/needed on the X axis. | |
Element | xflex_grow (Element child) |
Expand if possible on the X axis. | |
Element | xflex_shrink (Element child) |
Minimize if needed on the X axis. | |
Element | yflex (Element child) |
Expand/Minimize if possible/needed on the Y axis. | |
Element | yflex_grow (Element child) |
Expand if possible on the Y axis. | |
Element | yflex_shrink (Element child) |
Minimize if needed on the Y axis. | |
Element | notflex (Element child) |
Make the element not flexible. | |
Element | filler () |
An element that will take expand proportionally to the space left in a container. | |
Decorator | size (WidthOrHeight direction,Constraint constraint, int value) |
Apply a constraint on the size of an element. | |
Element | frame (Element child) |
Allow an element to be displayed inside a 'virtual' area. It size can be larger than its container. In this case only a smaller portion is displayed. The view is scrollable to make the focused element visible. | |
Element | xframe (Element child) |
Same asframe , but only on the x-axis. | |
Element | yframe (Element child) |
Same asframe , but only on the y-axis. | |
Element | focus (Element child) |
Set thechild to be the one focused among its siblings. | |
Element | select (Element child) |
Set thechild to be the one focused among its siblings. | |
Element | focusCursorBlock (Element child) |
Same asfocus , but set the cursor shape to be a still block. | |
Element | focusCursorBlockBlinking (Element child) |
Same asfocus , but set the cursor shape to be a blinking block. | |
Element | focusCursorBar (Element child) |
Same asfocus , but set the cursor shape to be a still block. | |
Element | focusCursorBarBlinking (Element child) |
Same asfocus , but set the cursor shape to be a blinking bar. | |
Element | focusCursorUnderline (Element child) |
Same asfocus , but set the cursor shape to be a still underline. | |
Element | focusCursorUnderlineBlinking (Element child) |
Same asfocus , but set the cursor shape to be a blinking underline. | |
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. | |
Decorator | reflect (Box &box) |
Element | clear_under (Element element) |
Before drawing |child|, clear the pixels below. This is useful in combination with dbox. | |
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 | nothing (Element element) |
A decoration doing absolutely nothing. | |
void | Render (Screen &screen, constElement &element) |
Display an element on aftxui::Screen. | |
void | Render (Screen &screen,Node *node) |
Display an element on aftxui::Screen. | |
void | Render (Screen &screen,Node *node,Selection &selection) |
std::string | GetNodeSelectedContent (Screen &screen,Node *node,Selection &selection) |
Color | operator""_rgb (unsigned long long int combined) |
Creates a color from a combined hex RGB representation, e.g. 0x808000_rgb. | |
ColorInfo | GetColorInfo (Color::Palette256 index) |
ColorInfo | GetColorInfo (Color::Palette16 index) |
int | wchar_width (wchar_t) |
int | wstring_width (const std::wstring &) |
std::string | to_string (const std::wstring &s) |
Convert a std::wstring into a UTF8 std::string. | |
std::wstring | to_wstring (const std::string &s) |
Convert a UTF8 std::string into a std::wstring. | |
template<typename T > | |
std::wstring | to_wstring (T s) |
int | string_width (const std::string &) |
std::vector< std::string > | Utf8ToGlyphs (const std::string &input) |
std::vector< int > | CellToGlyphIndex (const std::string &input) |
Component | CatchEvent (Component child, std::function< bool(Event event)> on_event) |
Return a component, using |on_event| to catch events. This function must returns true when the event has been handled, false otherwise. | |
templateComponent | Slider (SliderOption< int8_t >) |
templateComponent | Slider (SliderOption< int16_t >) |
templateComponent | Slider (SliderOption< int32_t >) |
templateComponent | Slider (SliderOption< int64_t >) |
templateComponent | Slider (SliderOption< uint8_t >) |
templateComponent | Slider (SliderOption< uint16_t >) |
templateComponent | Slider (SliderOption< uint32_t >) |
templateComponent | Slider (SliderOption< uint64_t >) |
templateComponent | Slider (SliderOption< float >) |
templateComponent | Slider (SliderOption< double >) |
bool | EatCodePoint (const std::string &input, size_t start, size_t *end, uint32_t *ucs) |
bool | EatCodePoint (const std::wstring &input, size_t start, size_t *end, uint32_t *ucs) |
bool | IsCombining (uint32_t ucs) |
bool | IsFullWidth (uint32_t ucs) |
bool | IsControl (uint32_t ucs) |
WordBreakProperty | CodepointToWordBreakProperty (uint32_t codepoint) |
size_t | GlyphPrevious (const std::string &input, size_t start) |
size_t | GlyphNext (const std::string &input, size_t start) |
size_t | GlyphIterate (const std::string &input, int glyph_offset, size_t start) |
int | GlyphCount (const std::string &input) |
std::vector<WordBreakProperty > | Utf8ToWordBreakProperty (const std::string &input) |
bool | IsWordBreakingCharacter (const std::string &input, size_t glyph_index) |
Variables | |
const std::map< std::string, std::string > | g_uniformize |
const std::array<ColorInfo, 256 > | palette256 |
The FTXUI ftxui:: namespace.
usingCapturedMouse = std::unique_ptr<CapturedMouseInterface> |
Definition at line20 of filecaptured_mouse.hpp.
usingComponentDecorator = std::function<Component(Component)> |
Definition at line31 of filecomponent.hpp.
usingElementDecorator = std::function<Element(Element)> |
Definition at line32 of filecomponent.hpp.
typedef std::shared_ptr<ComponentBase >Component = std::shared_ptr<ComponentBase> |
Definition at line24 of filecomponent_base.hpp.
usingComponents = std::vector<Component> |
Definition at line25 of filecomponent_base.hpp.
usingSender = std::unique_ptr<SenderImpl<T>> |
Definition at line45 of filereceiver.hpp.
usingReceiver = std::unique_ptr<ReceiverImpl<T>> |
Definition at line46 of filereceiver.hpp.
Definition at line22 of fileelements.hpp.
Definition at line23 of fileelements.hpp.
Definition at line24 of fileelements.hpp.
usingGraphFunction = std::function<std::vector<int>(int, int)> |
Definition at line25 of fileelements.hpp.
enumWidthOrHeight |
Enumerator | |
---|---|
WIDTH | |
HEIGHT |
Definition at line161 of fileelements.hpp.
enumConstraint |
Enumerator | |
---|---|
LESS_THAN | |
EQUAL | |
GREATER_THAN |
Definition at line162 of fileelements.hpp.
| strong |
Enumerator | |
---|---|
ALetter | |
CR | |
Double_Quote | |
Extend | |
ExtendNumLet | |
Format | |
Hebrew_Letter | |
Katakana | |
LF | |
MidLetter | |
MidNum | |
MidNumLet | |
Newline | |
Numeric | |
Regional_Indicator | |
Single_Quote | |
WSegSpace | |
ZWJ |
Definition at line40 of filestring_internal.hpp.
std::shared_ptr< T > Make | ( | Args &&... | args | ) |
Definition at line26 of filecomponent.hpp.
Component operator| | ( | Component | component, |
ComponentDecorator | decorator ) |
Definition at line12 of filecomponent/util.cpp.
Component operator| | ( | Component | component, |
ElementDecorator | decorator ) |
Definition at line17 of filecomponent/util.cpp.
Component & operator|= | ( | Component & | component, |
ComponentDecorator | decorator ) |
Definition at line22 of filecomponent/util.cpp.
Component & operator|= | ( | Component & | component, |
ElementDecorator | decorator ) |
Definition at line28 of filecomponent/util.cpp.
Component Slider | ( | SliderOption< T > | options | ) |
A slider in any direction.
options | The options |
Definition at line346 of filesrc/ftxui/component/slider.cpp.
Component Slider | ( | ConstStringRef | label, |
Ref< float > | value, | ||
ConstRef< float > | min =0.f, | ||
ConstRef< float > | max =100.f, | ||
ConstRef< float > | increment =5.f ) |
Definition at line303 of filesrc/ftxui/component/slider.cpp.
Component Slider | ( | ConstStringRef | label, |
Ref< long > | value, | ||
ConstRef< long > | min =0L, | ||
ConstRef< long > | max =100L, | ||
ConstRef< long > | increment =5L ) |
Definition at line316 of filesrc/ftxui/component/slider.cpp.
Component ResizableSplit | ( | ResizableSplitOption | options | ) |
A split in between two components.
options | all the parameters. |
Definition at line186 of filesrc/ftxui/component/resizable_split.cpp.
Component Collapsible | ( | ConstStringRef | label, |
Component | child, | ||
Ref< bool > | show ) |
A collapsible component. It displays a checkbox with an arrow. Once activated, the child is displayed.
label | The label of the checkbox. |
child | The child to display. |
show | Hold the state about whether the child is displayed or not. |
Definition at line33 of filesrc/ftxui/component/collapsible.cpp.
Receiver< T > MakeReceiver | ( | ) |
Definition at line139 of filereceiver.hpp.
Elements paragraph | ( | std::wstring | text | ) |
Draw a horizontal bar, with the area in between left/right colored differently.
left | the left limit of the active area. |
right | the right limit of the active area. |
selected_color | the color of the selected area. |
unselected_color | the color of the unselected area. |
Definition at line442 of filesrc/ftxui/dom/separator.cpp.
Draw an vertical bar, with the area in between up/downcolored differently.
up | the left limit of the active area. |
down | the right limit of the active area. |
selected_color | the color of the selected area. |
unselected_color | the color of the unselected area. |
Definition at line512 of filesrc/ftxui/dom/separator.cpp.
Element graph | ( | GraphFunction | graph_function | ) |
Draw a graph using a GraphFunction.
graph_function | the function to be called to get the data. |
Definition at line71 of filesrc/ftxui/dom/graph.cpp.
Produce an element from aCanvas, or a reference to aCanvas.
Definition at line891 of filesrc/ftxui/dom/canvas.cpp.
Produce an element drawing a canvas of requested size.
width | the width of the canvas. |
height | the height of the canvas. |
fn | a function drawing the canvas. |
Definition at line908 of filesrc/ftxui/dom/canvas.cpp.
Produce an element drawing a canvas.
fn | a function drawing the canvas. |
Definition at line938 of filesrc/ftxui/dom/canvas.cpp.
Reset the selection style of an element.
child | The input element. |
Definition at line55 of fileselection_style.cpp.
Set the color of an element when selected.
foreground | The color to be applied. Note that the style is applied on top of the existing style. |
Definition at line78 of fileselection_style.cpp.
Set the background color of an element when selected. Note that the style is applied on top of the existing style.
Definition at line61 of fileselection_style.cpp.
Set the foreground color of an element when selected. Note that the style is applied on top of the existing style.
Definition at line69 of fileselection_style.cpp.
Set the style of an element when selected.
style | The style to be applied. Note that the style is applied on top of the existing style. |
Definition at line86 of fileselection_style.cpp.
A container displaying elements horizontally one by one.
children | The elements in the container |
Element flexbox | ( | Elements | children, |
FlexboxConfig | config ) |
A container displaying elements on row/columns and capable of wrapping on the next column/row when full.
children | The elements in the container |
config | The option |
Definition at line251 of fileflexbox.cpp.
A container displaying a grid of elements.
lines | A list of lines, each line being a list of elements. |
Output:
Definition at line173 of filesrc/ftxui/dom/gridbox.cpp.
A container displaying elements in rows from left to right. When filled, it starts on a new row below.
children | The elements in the container |
Definition at line269 of fileflexbox.cpp.
A container displaying elements in rows from top to bottom. When filled, it starts on a new columns on the right. filled, it starts on a new row. is full, it starts a new row.
children | The elements in the container |
Definition at line289 of fileflexbox.cpp.
Definition at line43 of filereflect.cpp.
ColorInfo GetColorInfo | ( | Color::Palette256 | index | ) |
Definition at line272 of filecolor_info.cpp.
ColorInfo GetColorInfo | ( | Color::Palette16 | index | ) |
Definition at line276 of filecolor_info.cpp.
int wchar_width | ( | wchar_t | ucs | ) |
Definition at line1313 of filestring.cpp.
int wstring_width | ( | const std::wstring & | text | ) |
Definition at line1317 of filestring.cpp.
std::string to_string | ( | const std::wstring & | s | ) |
Convert a std::wstring into a UTF8 std::string.
Definition at line1565 of filestring.cpp.
std::wstring to_wstring | ( | const std::string & | s | ) |
Convert a UTF8 std::string into a std::wstring.
Definition at line1637 of filestring.cpp.
std::wstring to_wstring | ( | T | s | ) |
Definition at line15 of filestring.hpp.
int string_width | ( | const std::string & | input | ) |
Definition at line1330 of filestring.cpp.
std::vector< std::string > Utf8ToGlyphs | ( | const std::string & | input | ) |
Definition at line1357 of filestring.cpp.
std::vector< int > CellToGlyphIndex | ( | const std::string & | input | ) |
Definition at line1464 of filestring.cpp.
templateComponent Slider | ( | SliderOption< int8_t > | ) |
templateComponent Slider | ( | SliderOption< int16_t > | ) |
templateComponent Slider | ( | SliderOption< int32_t > | ) |
templateComponent Slider | ( | SliderOption< int64_t > | ) |
templateComponent Slider | ( | SliderOption< uint8_t > | ) |
templateComponent Slider | ( | SliderOption< uint16_t > | ) |
templateComponent Slider | ( | SliderOption< uint32_t > | ) |
templateComponent Slider | ( | SliderOption< uint64_t > | ) |
templateComponent Slider | ( | SliderOption< float > | ) |
templateComponent Slider | ( | SliderOption< double > | ) |
bool EatCodePoint | ( | const std::string & | input, |
size_t | start, | ||
size_t * | end, | ||
uint32_t * | ucs ) |
Definition at line1174 of filestring.cpp.
bool EatCodePoint | ( | const std::wstring & | input, |
size_t | start, | ||
size_t * | end, | ||
uint32_t * | ucs ) |
Definition at line1244 of filestring.cpp.
bool IsCombining | ( | uint32_t | ucs | ) |
Definition at line1282 of filestring.cpp.
bool IsFullWidth | ( | uint32_t | ucs | ) |
Definition at line1286 of filestring.cpp.
bool IsControl | ( | uint32_t | ucs | ) |
Definition at line1293 of filestring.cpp.
WordBreakProperty CodepointToWordBreakProperty | ( | uint32_t | codepoint | ) |
Definition at line1307 of filestring.cpp.
size_t GlyphPrevious | ( | const std::string & | input, |
size_t | start ) |
Definition at line1399 of filestring.cpp.
size_t GlyphNext | ( | const std::string & | input, |
size_t | start ) |
Definition at line1424 of filestring.cpp.
size_t GlyphIterate | ( | const std::string & | input, |
int | glyph_offset, | ||
size_t | start ) |
Definition at line1450 of filestring.cpp.
int GlyphCount | ( | const std::string & | input | ) |
Definition at line1505 of filestring.cpp.
std::vector<WordBreakProperty > Utf8ToWordBreakProperty | ( | const std::string & | input | ) |
Definition at line1533 of filestring.cpp.
bool IsWordBreakingCharacter | ( | const std::string & | input, |
size_t | glyph_index ) |
const std::map<std::string, std::string> g_uniformize |
Definition at line19 of fileterminal_input_parser.cpp.
const std::array<ColorInfo, 256> palette256 |
Definition at line13 of filecolor_info.cpp.