|
| 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) |
| | Una lista de componentes, dibujados uno a uno horizontalmente y navegados horizontalmente usando las teclas de flecha izquierda/derecha o las teclas 'h'/'l'.
|
| |
| class | FTXUI_EXPORT (COMPONENT) ComponentBase = {}) |
| | Implementa el renderizado de sí mismo como ftxui::Element. Implementa la navegación por teclado respondiendo a ftxui::Event.
|
| |
| Component | Button (ConstStringRef label, std::function< void()> on_click, ButtonOption option) |
| | Dibuja un botón. Ejecuta una función cuando se hace clic.
|
| |
| Component | Checkbox (ConstStringRef label, bool *checked, CheckboxOption option) |
| | Dibuja un elemento marcable.
|
| |
| Component | Input (StringRef content, InputOption option) |
| | Una caja de entrada para editar texto.
|
| |
| Component | Input (StringRef content, StringRef placeholder, InputOption option) |
| | Una caja de entrada para editar texto.
|
| |
| Component | Menu (ConstStringListRef entries, int *selected, MenuOption option) |
| | Una lista de texto. El elemento enfocado está seleccionado.
|
| |
| Component | MenuEntry (ConstStringRef label, MenuEntryOption option) |
| | Una entrada de menú específica. Se pueden colocar en un Container::Vertical para formar un menú.
|
| |
| Component | Radiobox (ConstStringListRef entries, int *selected, RadioboxOption option) |
| | Una lista de elementos, donde solo uno puede ser seleccionado.
|
| |
| Component | Dropdown (ConstStringListRef entries, int *selected) |
| | Un menú desplegable.
|
| |
| Component | Toggle (ConstStringListRef entries, int *selected) |
| | Una lista horizontal de elementos. El usuario puede navegar a través de ellos.
|
| |
| template<typename T > |
| Component | Slider (SliderOption< T > options) |
| | Un control deslizante en cualquier dirección.
|
| |
| Component | Slider (ConstStringRef label, Ref< int > value, ConstRef< int > min, ConstRef< int > max, ConstRef< int > increment) |
| | Un control deslizante horizontal.
|
| |
| 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) |
| | Una división entre dos componentes.
|
| |
| Component | ResizableSplitLeft (Component main, Component back, int *main_size) |
| | Una división horizontal entre dos componentes, configurable usando el ratón.
|
| |
| Component | ResizableSplitRight (Component main, Component back, int *main_size) |
| | Una división horizontal entre dos componentes, configurable usando el ratón.
|
| |
| Component | ResizableSplitTop (Component main, Component back, int *main_size) |
| | Una división vertical entre dos componentes, configurable usando el ratón.
|
| |
| Component | ResizableSplitBottom (Component main, Component back, int *main_size) |
| | Una división vertical entre dos componentes, configurable usando el ratón.
|
| |
| Component | Renderer (Component child, std::function< Element()> render) |
| | Devuelve un nuevo Component, similar a |child|, pero usando |render| como el evento Component::Render().
|
| |
| FTXUI_EXPORT(COMPONENT) Component Renderer(std Component | Renderer (std::function< Element(bool)> render) |
| | Devuelve un componente enfocable, usando |render| para renderizar su interfaz.
|
| |
| Component | CatchEvent (Component child, std::function< bool(Event)>) |
| |
| ComponentDecorator | CatchEvent (std::function< bool(Event)> on_event) |
| | Decora un componente, usando |on_event| para capturar eventos. Esta función debe devolver true cuando el evento ha sido manejado, false en caso contrario.
|
| |
| 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) |
| | Un componente plegable. Muestra una casilla de verificación con una flecha. Una vez activado, se muestra el componente hijo.
|
| |
| Component | Hoverable (Component component, bool *hover) |
| | Envuelve un componente. Permite saber si el ratón lo está "hovering".
|
| |
| Component | Hoverable (Component component, std::function< void()> on_enter, std::function< void()> on_leave) |
| | Envuelve un componente. Utiliza callbacks.
|
| |
| Component | Hoverable (Component component, std::function< void(bool)> on_change) |
| | Envuelve un componente. Permite saber si el ratón lo está "hovering".
|
| |
| ComponentDecorator | Hoverable (std::function< void()> on_enter, std::function< void()> on_leave) |
| | Envuelve un componente. Permite saber si el ratón lo está "hovering".
|
| |
| ComponentDecorator | Hoverable (std::function< void(bool)> on_change) |
| | Envuelve un componente. Permite saber si el ratón lo está "hovering".
|
| |