|
| 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) |
| |
| | FTXUI_EXPORT (COMPONENT) Component Vertical(Components children) |
| |
| Component | Horizontal (Components children, int *selector) |
| | A list of components, drawn one by one horizontally and navigated horizontally using left/right arrow key or 'h'/'l' keys.
|
| |
| class | FTXUI_EXPORT (COMPONENT) ComponentBase = {}) |
| | It implement rendering itself as ftxui::Element. It implement keyboard navigation by responding to ftxui::Event.
|
| |
| Component | Button (ConstStringRef label, std::function< void()> on_click, ButtonOption option) |
| | Draw a button. Execute a function when clicked.
|
| |
| Component | Checkbox (ConstStringRef label, bool *checked, CheckboxOption option) |
| | Draw checkable element.
|
| |
| 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 (ConstStringListRef entries, int *selected, MenuOption option) |
| | A list of text. The focused element is selected.
|
| |
| Component | MenuEntry (ConstStringRef label, MenuEntryOption option) |
| | A specific menu entry. They can be put into a Container::Vertical to form a menu.
|
| |
| 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 | 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 (Component main, Component back, int *main_size) |
| | An horizontal split in between two components, configurable using the mouse.
|
| |
| Component | ResizableSplitRight (Component main, Component back, int *main_size) |
| | An horizontal split in between two components, configurable using the mouse.
|
| |
| Component | ResizableSplitTop (Component main, Component back, int *main_size) |
| | An vertical split in between two components, configurable using the mouse.
|
| |
| Component | ResizableSplitBottom (Component main, 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.
|
| |
| FTXUI_EXPORT(COMPONENT) Component Renderer(std Component | Renderer (std::function< Element(bool)> render) |
| | Return a focusable component, using |render| to render its interface.
|
| |
| 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.
|
| |
| FTXUI_EXPORT(COMPONENT) ComponentDecorator Maybe(std Component | Modal (Component main, 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 (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.
|
| |