|
FTXUI 7.0.3
C++ functional terminal UI.
|
El espacio de nombres ftxui:: de FTXUI. More...
Namespaces | |
| namespace | animation |
| namespace | box_helper |
| namespace | Container |
| namespace | Dimension |
| Define cómo deben ser las dimensiones de la pantalla. | |
| namespace | flexbox_helper |
| namespace | literals |
| namespace | task |
| namespace | Terminal |
| namespace | util |
Classes | |
| class | AnimationTask |
| class | AutoReset |
| Asigna un valor a una variable, restaurando su valor antiguo al salir del ámbito. More... | |
| class | ConstRef |
| Un adaptador. Posee o referencia un objeto inmutable. More... | |
| class | MultiReceiverBuffer |
| class | ReceiverImpl |
| class | Ref |
| Un adaptador. Posee o referencia un objeto mutable. More... | |
| class | SenderImpl |
| struct | SliderOption |
| class | TerminalInputParser |
Typedefs | |
| using | Component = std::shared_ptr<ComponentBase> |
| using | CapturedMouse = std::unique_ptr<CapturedMouseInterface> |
| using | ComponentDecorator = std::function<Component(Component)> |
| using | ElementDecorator = std::function<Element(Element)> |
| 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 | ScreenInteractive = App |
| 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)> |
| using | Image = Surface |
| using | Pixel = Cell |
Enumerations | |
| enum class | Direction : uint8_t { Up = 0 , Down = 1 , Left = 2 , Right = 3 } |
| Direction es una enumeración que representa las cuatro cardinales direcciones. More... | |
| enum | BorderStyle : uint8_t { LIGHT , DASHED , HEAVY , DOUBLE , ROUNDED , EMPTY } |
| BorderStyle es una enumeración que representa los diferentes estilos de bordes que se pueden aplicar a los elementos en la interfaz de usuario de la terminal. More... | |
| enum | WidthOrHeight : uint8_t { WIDTH , HEIGHT } |
| enum | Constraint : uint8_t { LESS_THAN , EQUAL , GREATER_THAN } |
| enum class | AppDimension { FitComponent , Fixed , Fullscreen , TerminalOutput } |
| 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 | |
| class | FTXUI_EXPORT (COMPONENT) ComponentBase = {}) |
| Implementa el renderizado de sí mismo como ftxui::Element. Implementa la navegación por teclado respondiendo a ftxui::Event. | |
| 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 (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". | |
| template<class T > | |
| Receiver< T > | MakeReceiver () |
| struct | FTXUI_EXPORT (DOM) Canvas |
| Canvas es un búfer dibujable asociado con operaciones de dibujo. | |
| FTXUI_EXPORT (DOM) Element &operator| | |
| FTXUI_EXPORT(DOM) Element separatorCharacter(std Element | separatorHSelector (float left, float right, Color unselected_color, Color selected_color) |
| Dibuja una barra horizontal, con el área entre izquierda/derecha coloreada de forma diferente. | |
| Element | separatorVSelector (float up, float down, Color unselected_color, Color selected_color) |
| Dibuja una barra vertical, con el área entre arriba/abajo coloreada de forma diferente. | |
| Element | gaugeCharset (float progress, std::vector< std::string > charset, Direction direction) |
| Dibuja una barra de progreso de alta definición usando un conjunto de caracteres personalizado. | |
| Element | window (Element title, Element content, BorderStyle border) |
| Dibuja una ventana con un título y un borde alrededor del elemento. | |
| Element | canvas (int width, int height, std::function< void(Canvas &)> fn) |
| Produce un elemento dibujando un lienzo del tamaño solicitado. | |
| Element | flexbox (Elements children, FlexboxConfig config) |
| Un contenedor que muestra elementos en filas/columnas y es capaz de ajustarse a la siguiente columna/fila cuando está lleno. | |
| FTXUI_EXPORT(DOM) Element gridbox(std Element | hflow (Elements children) |
| Un contenedor que muestra elementos en filas de izquierda a derecha. Cuando está lleno, comienza en una nueva fila debajo. | |
| Element | vflow (Elements children) |
| Un contenedor que muestra elementos en filas de arriba a abajo. Cuando está lleno, comienza en una nueva columna a la derecha. | |
| Element | xflex (Element child) |
| Expandir/Minimizar si es posible/necesario en el eje X. | |
| Element | xflex_grow (Element child) |
| Expandir si es posible en el eje X. | |
| Element | xflex_shrink (Element child) |
| Minimizar si es necesario en el eje X. | |
| Element | yflex (Element child) |
| Expandir/Minimizar si es posible/necesario en el eje Y. | |
| Element | yflex_grow (Element child) |
| Expandir si es posible en el eje Y. | |
| Element | yflex_shrink (Element child) |
| Minimizar si es necesario en el eje Y. | |
| void | Render (Screen &screen, Node *node, Selection &selection) |
| std::string | GetNodeSelectedContent (Screen &screen, Node *node, Selection &selection) |
| struct | FTXUI_EXPORT (SCREEN) Box |
| Box es una estructura que representa un área rectangular en un espacio 2D. | |
| FTXUI_EXPORT (SCREEN) Color operator""_rgb(unsigned long long int combined) | |
| Crea un color a partir de una representación RGB hexadecimal combinada, por ejemplo, 0x808000_rgb. | |
| template<typename T > | |
| FTXUI_EXPORT(SCREEN) std FTXUI_EXPORT(SCREEN) std std::wstring | to_wstring (T s) |
| std::wstring | to_wstring (const std::string &s) |
| template<> | |
| std::wstring | to_wstring (const char *s) |
| FTXUI_EXPORT(SCREEN) int string_width(std std::vector< std::string > | Utf8ToGlyphs (std::string_view input) |
| std::vector< int > | CellToGlyphIndex (std::string_view input) |
| Component | Button (ButtonOption option) |
| Dibuja un botón. Ejecuta una función cuando se hace clic. | |
| Component | CatchEvent (Component child, std::function< bool(Event event)> on_event) |
| Devuelve un componente, usando |on_event| para capturar eventos. Esta función debe devolver true cuando el evento ha sido manejado, false en caso contrario. | |
| Component | Checkbox (CheckboxOption option) |
| Dibuja un elemento marcable. | |
| Component | Dropdown (DropdownOption option) |
| Un menú desplegable. | |
| ComponentDecorator | Hoverable (bool *hover) |
| Envuelve un componente. Permite saber si el ratón lo está "hovering". | |
| Component | Input (InputOption option) |
| Una caja de entrada para editar texto. | |
| Component | Maybe (Component child, std::function< bool()> show) |
| Decora un componente |child|. Se muestra solo cuando |show| devuelve verdadero. | |
| ComponentDecorator | Maybe (std::function< bool()> show) |
| Decora un componente. Se muestra solo cuando la función |show| devuelve verdadero. | |
| Component | Maybe (Component child, const bool *show) |
| Decora un componente |child|. Se muestra solo cuando |show| es verdadero. | |
| ComponentDecorator | Maybe (const bool *show) |
| Decora un componente. Se muestra solo cuando |show| es verdadero. | |
| Component | Menu (MenuOption option) |
| Una lista de texto. El elemento enfocado está seleccionado. | |
| Component | MenuEntry (MenuEntryOption option) |
| Una entrada de menú específica. Se pueden colocar en un Container::Vertical para formar un menú. | |
| Component | Radiobox (RadioboxOption option) |
| Una lista de elementos, donde solo uno puede ser seleccionado. | |
| Component | Renderer (std::function< Element()> render) |
| Devuelve un componente, usando |render| para renderizar su interfaz. | |
| ComponentDecorator | Renderer (ElementDecorator decorator) |
| Decora un componente, decorando lo que renderiza. | |
| Component | Window (WindowOptions option) |
Una ventana arrastrable y redimensionable. Para usar varias, deben apilarse usando el componente Container::Stacked({...});. | |
| Element | automerge (Element child) |
| Permite que los caracteres se fusionen automáticamente con otros cercanos. | |
| Element | blink (Element child) |
| El texto dibujado alterna entre visible y oculto. | |
| Element | bold (Element child) |
| Utiliza una fuente en negrita, para elementos con más énfasis. | |
| Element | border (Element child) |
| Dibuja un borde alrededor del elemento. | |
| Decorator | borderWith (const Cell &pixel) |
| Igual que border pero con un Cell constante alrededor del elemento. | |
| Decorator | borderStyled (BorderStyle style) |
| Igual que border pero con estilos diferentes. | |
| Decorator | borderStyled (Color foreground_color) |
| Igual que border pero con un color de primer plano. | |
| Decorator | borderStyled (BorderStyle style, Color foreground_color) |
| Igual que border pero con un color de primer plano y un estilo diferente. | |
| Element | borderDashed (Element child) |
| Dibuja un borde discontinuo alrededor del elemento. | |
| Element | borderLight (Element child) |
| Dibuja un borde ligero alrededor del elemento. | |
| Element | borderHeavy (Element child) |
| Dibuja un borde grueso alrededor del elemento. | |
| Element | borderDouble (Element child) |
| Dibuja un borde doble alrededor del elemento. | |
| Element | borderRounded (Element child) |
| Dibuja un borde redondeado alrededor del elemento. | |
| Element | borderEmpty (Element child) |
| Dibuja un borde vacío alrededor del elemento. | |
| Element | canvas (ConstRef< Canvas > canvas) |
| Produce un elemento a partir de un Canvas, o una referencia a un Canvas. | |
| Element | canvas (std::function< void(Canvas &)> fn) |
| Produce un elemento dibujando un lienzo. | |
| Element | clear_under (Element element) |
| Antes de dibujar |child|, limpia las celdas debajo. Esto es útil en combinación con dbox. | |
| Element | color (Color color, Element child) |
| Establece el color de primer plano de un elemento. | |
| Element | bgcolor (Color color, Element child) |
| Establece el color de fondo de un elemento. | |
| Decorator | color (Color c) |
| Decora usando un color de primer plano. | |
| Decorator | bgcolor (Color color) |
| Decora usando un color de fondo. | |
| Element | hcenter (Element child) |
| Centra un elemento horizontalmente. | |
| Element | vcenter (Element child) |
| Centra un elemento verticalmente. | |
| Element | center (Element child) |
| Centra un elemento horizontal y verticalmente. | |
| Element | align_right (Element child) |
| Alinea un elemento a la derecha. | |
| Element | dbox (Elements children_) |
| Apila varios elementos uno encima de otro. | |
| Element | dim (Element child) |
| Usa una fuente clara para elementos con menos énfasis. | |
| Element | filler () |
| Un elemento que se expandirá proporcionalmente al espacio restante en un contenedor. | |
| Element | flex (Element child) |
| Hace que un elemento hijo se expanda proporcionalmente al espacio restante en un contenedor. | |
| Element | flex_grow (Element child) |
| Expandir si es posible. | |
| Element | flex_shrink (Element child) |
| Minimizar si es necesario. | |
| Element | notflex (Element child) |
| Hace que el elemento no sea flexible. | |
| Decorator | flex_factor (int grow, int shrink) |
| Decorator | flex_grow_factor (int grow) |
| Decorator | flex_shrink_factor (int shrink) |
| Decorator | xflex_factor (int grow, int shrink) |
| Decorator | xflex_grow_factor (int grow) |
| Decorator | xflex_shrink_factor (int shrink) |
| Decorator | yflex_factor (int grow, int shrink) |
| Decorator | yflex_grow_factor (int grow) |
| Decorator | yflex_shrink_factor (int shrink) |
| Decorator | focusPositionRelative (float x, float y) |
Utilizado dentro de un frame, esto fuerza que la vista se desplace hacia una posición determinada. La posición se expresa en proporción del tamaño solicitado. | |
| Decorator | focusPosition (int x, int y) |
Utilizado dentro de un frame, esto fuerza que la vista se desplace hacia una posición determinada. La posición se expresa en el número de celdas. | |
| Element | focus (Element child) |
Establece que child sea el elemento enfocado entre sus hermanos. | |
| Element | select (Element e) |
Establece el child como el enfocado entre sus hermanos. | |
| Element | frame (Element child) |
| Permite que un elemento se muestre dentro de un área 'virtual'. Su tamaño puede ser mayor que su contenedor. En este caso, solo se muestra una porción más pequeña. La vista es desplazable para hacer visible el elemento enfocado. | |
| Element | xframe (Element child) |
Igual que frame, pero solo en el eje x. | |
| Element | yframe (Element child) |
Igual que frame, pero solo en el eje y. | |
| Element | focusCursorBlock (Element child) |
Igual que focus, pero establece la forma del cursor como un bloque fijo. | |
| Element | focusCursorBlockBlinking (Element child) |
Igual que focus, pero establece la forma del cursor como un bloque parpadeante. | |
| Element | focusCursorBar (Element child) |
Igual que focus, pero establece la forma del cursor como un bloque fijo. | |
| Element | focusCursorBarBlinking (Element child) |
Igual que focus, pero establece la forma del cursor como una barra parpadeante. | |
| Element | focusCursorUnderline (Element child) |
Igual que focus, pero establece la forma del cursor como un subrayado fijo. | |
| Element | focusCursorUnderlineBlinking (Element child) |
Igual que focus, pero establece la forma del cursor como un subrayado parpadeante. | |
| Element | gaugeDirection (float progress, Direction direction) |
| Dibuja una barra de progreso de alta definición que avanza en la dirección especificada. | |
| Element | gaugeRight (float progress) |
| Dibuja una barra de progreso de alta definición que avanza de izquierda a derecha. | |
| Element | gaugeLeft (float progress) |
| Dibuja una barra de progreso de alta definición que avanza de derecha a izquierda. | |
| Element | gaugeUp (float progress) |
| Dibuja una barra de progreso de alta definición que avanza de abajo hacia arriba. | |
| Element | gaugeDown (float progress) |
| Dibuja una barra de progreso de alta definición que avanza de arriba hacia abajo. | |
| Element | gauge (float progress) |
| Dibuja una barra de progreso de alta definición. | |
| Element | graph (GraphFunction graph_function) |
| Dibuja un gráfico usando una GraphFunction. | |
| Element | gridbox (std::vector< Elements > lines) |
| A container displaying a grid of elements. | |
| Element | hbox (Elements children) |
| Un contenedor que muestra elementos horizontalmente uno por uno. | |
| Element | hyperlink (std::string_view link, Element child) |
| Hace que el área renderizada sea clicable usando un navegador web. El enlace se abrirá cuando el usuario haga clic en él. Esto solo es compatible con un conjunto limitado de emuladores de terminal. Lista: https://github.com/Alhadis/OSC8-Adoption/. | |
| Decorator | hyperlink (std::string_view link) |
| Decora usando un hipervínculo. El enlace se abrirá cuando el usuario haga clic en él. Esto solo es compatible con un conjunto limitado de emuladores de terminal. Lista: https://github.com/Alhadis/OSC8-Adoption/. | |
| Element | inverted (Element child) |
| Agrega un filtro que invertirá los colores de primer plano y de fondo. colores. | |
| Element | italic (Element child) |
| Aplica un doble subrayado al texto. | |
| Element | color (const LinearGradient &gradient, Element child) |
| Establece el color de primer plano de un elemento con efecto de gradiente lineal. | |
| Element | bgcolor (const LinearGradient &gradient, Element child) |
| Establece el color de fondo de un elemento con efecto de gradiente lineal. | |
| Decorator | color (const LinearGradient &gradient) |
| Decora usando un efecto de gradiente lineal en el color de primer plano. | |
| Decorator | bgcolor (const LinearGradient &gradient) |
| Decora usando un efecto de gradiente lineal en el color de fondo. | |
| void | Render (Screen &screen, const Element &element) |
| Muestra un elemento en un ftxui::Screen. | |
| void | Render (Screen &screen, Node *node) |
| Muestra un elemento en un ftxui::Screen. | |
| Element | paragraph (std::string_view the_text) |
| Devuelve un elemento que dibuja el párrafo en varias líneas. | |
| Element | paragraphAlignLeft (std::string_view the_text) |
| Devuelve un elemento que dibuja el párrafo en varias líneas, alineado a la izquierda. | |
| Element | paragraphAlignRight (std::string_view the_text) |
| Devuelve un elemento que dibuja el párrafo en varias líneas, alineado a la derecha. | |
| Element | paragraphAlignCenter (std::string_view the_text) |
| Devuelve un elemento que dibuja el párrafo en varias líneas, alineado al centro. | |
| Element | paragraphAlignJustify (std::string_view the_text) |
| Devuelve un elemento que dibuja el párrafo en varias líneas, alineado utilizando una alineación justificada. | |
| Decorator | reflect (Box &box) |
| Element | vscroll_indicator (Element child) |
| Muestra una barra de desplazamiento vertical a la derecha. Los colores siguen el contenido. | |
| Element | hscroll_indicator (Element child) |
| Muestra una barra de desplazamiento horizontal en la parte inferior. Los colores siguen el contenido. | |
| Element | selectionStyleReset (Element child) |
| Restablece el estilo de selección de un elemento. | |
| Decorator | selectionBackgroundColor (Color foreground) |
| Establece el color de fondo de un elemento cuando está seleccionado. Tenga en cuenta que el estilo se aplica además del estilo existente. | |
| Decorator | selectionForegroundColor (Color foreground) |
| Establece el color de primer plano de un elemento cuando está seleccionado. Tenga en cuenta que el estilo se aplica además del estilo existente. | |
| Decorator | selectionColor (Color foreground) |
| Establece el color de un elemento cuando está seleccionado. | |
| Decorator | selectionStyle (std::function< void(Cell &)> style) |
| Establece el estilo de un elemento cuando está seleccionado. | |
| Element | separator () |
| Dibuja una separación vertical u horizontal entre otros dos elementos. | |
| Element | separatorStyled (BorderStyle style) |
| Dibuja una separación vertical u horizontal entre otros dos elementos. | |
| Element | separatorLight () |
| Dibuja una separación vertical u horizontal entre otros dos elementos, usando el estilo LIGERO. | |
| Element | separatorDashed () |
| Dibuja una separación vertical u horizontal entre otros dos elementos, usando el estilo DISCONTINUO. | |
| Element | separatorHeavy () |
| Dibuja una separación vertical u horizontal entre otros dos elementos, usando el estilo GRUESO. | |
| Element | separatorDouble () |
| Dibuja una separación vertical u horizontal entre otros dos elementos, usando el estilo DOBLE. | |
| Element | separatorEmpty () |
| Dibuja una separación vertical u horizontal entre otros dos elementos, usando el estilo VACÍO. | |
| Element | separatorCharacter (std::string_view value) |
| Dibuja una separación vertical u horizontal entre otros dos elementos. | |
| Element | separator (Cell pixel) |
| Dibuja un separador entre dos elementos rellenado con un pixel dado. | |
| Decorator | size (WidthOrHeight direction, Constraint constraint, int value) |
| Aplica una restricción al tamaño de un elemento. | |
| Element | spinner (int charset_index, size_t image_index) |
| Útil para representar el efecto del tiempo y/o eventos. Esto muestra un "video" de arte ASCII. | |
| Element | strikethrough (Element child) |
| Aplica un tachado al texto. | |
| Element | text (std::string_view text) |
| Muestra un fragmento de texto Unicode codificado en UTF8. | |
| Element | text (std::wstring_view text) |
| Muestra un fragmento de texto Unicode. | |
| Element | vtext (std::string_view text) |
| Muestra un fragmento de texto Unicode verticalmente. | |
| Element | vtext (std::wstring_view text) |
| Muestra un fragmento de texto Unicode verticalmente. | |
| Element | underlined (Element child) |
| Subraya el elemento dado. | |
| Element | underlinedDouble (Element child) |
| Aplica un doble subrayado al texto. | |
| Element | nothing (Element element) |
| Una decoración que no hace absolutamente nada. | |
| Decorator | operator| (Decorator a, Decorator b) |
| Compone dos decoradores en uno. | |
| Elements | operator| (Elements elements, Decorator decorator) |
| A partir de un conjunto de elementos, aplica un decorador a cada elemento. | |
| Element | operator| (Element element, Decorator decorator) |
| A partir de un elemento, aplica un decorador. | |
| Element & | operator|= (Element &e, Decorator d) |
| Aplica un decorador a un elemento. | |
| Element | emptyElement () |
| Element | vbox (Elements children) |
| Un contenedor que muestra elementos verticalmente uno por uno. | |
| Color | operator""_rgb (unsigned long long int combined) |
| ColorInfo | GetColorInfo (Color::Palette256 index) |
| ColorInfo | GetColorInfo (Color::Palette16 index) |
| std::vector< std::vector< ColorInfo > > | ColorInfoSorted2D () |
| bool | EatCodePoint (std::string_view input, size_t start, size_t *end, uint32_t *ucs) |
| bool | EatCodePoint (std::wstring_view 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) |
| int | wchar_width (wchar_t ucs) |
| int | wstring_width (const std::wstring &text) |
| int | string_width (std::string_view input) |
| size_t | GlyphPrevious (std::string_view input, size_t start) |
| size_t | GlyphNext (std::string_view input, size_t start) |
| size_t | GlyphIterate (std::string_view input, int glyph_offset, size_t start) |
| int | GlyphCount (std::string_view input) |
| std::vector< WordBreakProperty > | Utf8ToWordBreakProperty (std::string_view input) |
| std::string | to_string (std::wstring_view s) |
| std::wstring | to_wstring (std::string_view s) |
| bool | IsWordBreakingCharacter (std::string_view input, size_t glyph_index) |
Variables | |
| const bool * | show |
| Direction | direction |
| Color | |
| Construye un color transparente. | |
| size_t | image_index |
| int | y |
| int | shrink |
| Constraint | |
| int | value |
| const Element & | element |
| Node * | node |
| const std::map< std::string, std::string > | g_uniformize |
| const std::array< ColorInfo, 256 > | palette256 |
El espacio de nombres ftxui:: de FTXUI.
| typedef std::shared_ptr< ComponentBase > Component = std::shared_ptr<ComponentBase> |
| using CapturedMouse = std::unique_ptr<CapturedMouseInterface> |
Definition at line 22 of file captured_mouse.hpp.
| using ComponentDecorator = std::function<Component(Component)> |
Definition at line 33 of file component.hpp.
| using ElementDecorator = std::function<Element(Element)> |
Definition at line 34 of file component.hpp.
| using Components = std::vector<Component> |
Definition at line 26 of file component_base.hpp.
| using Sender = std::unique_ptr<SenderImpl<T>> |
Definition at line 52 of file receiver.hpp.
| using Receiver = std::unique_ptr<ReceiverImpl<T>> |
Definition at line 54 of file receiver.hpp.
| using ScreenInteractive = App |
Definition at line 10 of file screen_interactive.hpp.
| using Task = std::variant<Event, Closure, AnimationTask> |
| typedef std::shared_ptr< Node > Element = std::shared_ptr<Node> |
Definition at line 25 of file elements.hpp.
Definition at line 26 of file elements.hpp.
Definition at line 27 of file elements.hpp.
| using GraphFunction = std::function<std::vector<int>(int, int)> |
Definition at line 28 of file elements.hpp.
| enum WidthOrHeight : uint8_t |
| Enumerator | |
|---|---|
| WIDTH | |
| HEIGHT | |
Definition at line 193 of file elements.hpp.
| enum Constraint : uint8_t |
| Enumerator | |
|---|---|
| LESS_THAN | |
| EQUAL | |
| GREATER_THAN | |
Definition at line 194 of file elements.hpp.
|
strong |
|
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 line 44 of file string_internal.hpp.
| std::shared_ptr< T > Make | ( | Args &&... | args | ) |
Definition at line 28 of file component.hpp.
| Component operator| | ( | Component | component, |
| ComponentDecorator | decorator ) |
Definition at line 12 of file component/util.cpp.
| Component operator| | ( | Component | component, |
| ElementDecorator | decorator ) |
Definition at line 17 of file component/util.cpp.
| Component & operator|= | ( | Component & | component, |
| ComponentDecorator | decorator ) |
Definition at line 22 of file component/util.cpp.
| Component & operator|= | ( | Component & | component, |
| ElementDecorator | decorator ) |
Definition at line 28 of file component/util.cpp.
| Component Slider | ( | SliderOption< T > | options | ) |
Un control deslizante en cualquier dirección.
| options | Las opciones |
Definition at line 315 of file src/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 line 272 of file src/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 line 285 of file src/ftxui/component/slider.cpp.
| Component ResizableSplit | ( | ResizableSplitOption | options | ) |
Una división entre dos componentes.
| options | todos los parámetros. |
Definition at line 170 of file src/ftxui/component/resizable_split.cpp.
Un componente plegable. Muestra una casilla de verificación con una flecha. Una vez activado, se muestra el componente hijo.
| label | La etiqueta de la casilla de verificación. |
| child | El componente hijo a mostrar. |
| show | Mantiene el estado sobre si el componente hijo se muestra o no. |
Definition at line 33 of file src/ftxui/component/collapsible.cpp.
| Receiver< T > MakeReceiver | ( | ) |
Definition at line 149 of file receiver.hpp.
| FTXUI_EXPORT | ( | DOM | ) | & |
| Element separatorHSelector | ( | float | left, |
| float | right, | ||
| Color | unselected_color, | ||
| Color | selected_color ) |
Dibuja una barra horizontal, con el área entre izquierda/derecha coloreada de forma diferente.
| left | el límite izquierdo del área activa. |
| right | el límite derecho del área activa. |
| selected_color | el color del área seleccionada. |
| unselected_color | el color del área no seleccionada. |
Definition at line 444 of file src/ftxui/dom/separator.cpp.
| Element separatorVSelector | ( | float | up, |
| float | down, | ||
| Color | unselected_color, | ||
| Color | selected_color ) |
Dibuja una barra vertical, con el área entre arriba/abajo coloreada de forma diferente.
| up | el límite superior del área activa. |
| down | el límite inferior del área activa. |
| selected_color | el color del área seleccionada. |
| unselected_color | el color del área no seleccionada. |
Definition at line 514 of file src/ftxui/dom/separator.cpp.
| Element canvas | ( | int | width, |
| int | height, | ||
| std::function< void(Canvas &)> | fn ) |
Produce un elemento dibujando un lienzo del tamaño solicitado.
| width | el ancho del lienzo. |
| height | la altura del lienzo. |
| fn | una función que dibuja el lienzo. |
Definition at line 924 of file src/ftxui/dom/canvas.cpp.
Un contenedor que muestra elementos en filas/columnas y es capaz de ajustarse a la siguiente columna/fila cuando está lleno.
| children | Los elementos en el contenedor |
| config | La opción |
Definition at line 252 of file flexbox.cpp.
Un contenedor que muestra elementos en filas de izquierda a derecha. Cuando está lleno, comienza en una nueva fila debajo.
| children | Los elementos en el contenedor |
Definition at line 270 of file flexbox.cpp.
Un contenedor que muestra elementos en filas de arriba a abajo. Cuando está lleno, comienza en una nueva columna a la derecha.
| children | Los elementos en el contenedor |
Definition at line 288 of file flexbox.cpp.
| void Render | ( | Screen & | screen, |
| Node * | node, | ||
| Selection & | selection ) |
| std::string GetNodeSelectedContent | ( | Screen & | screen, |
| Node * | node, | ||
| Selection & | selection ) |
| FTXUI_EXPORT(SCREEN) std FTXUI_EXPORT(SCREEN) std std::wstring to_wstring | ( | T | s | ) |
Definition at line 18 of file string.hpp.
|
inline |
Definition at line 21 of file string.hpp.
|
inline |
Definition at line 25 of file string.hpp.
| std::vector< std::string > Utf8ToGlyphs | ( | std::string_view | input | ) |
Definition at line 358 of file string.cpp.
| std::vector< int > CellToGlyphIndex | ( | std::string_view | input | ) |
Definition at line 471 of file string.cpp.
Produce un elemento a partir de un Canvas, o una referencia a un Canvas.
Definition at line 900 of file src/ftxui/dom/canvas.cpp.
| Element canvas | ( | std::function< void(Canvas &)> | fn | ) |
Produce un elemento dibujando un lienzo.
| fn | una función que dibuja el lienzo. |
Definition at line 954 of file src/ftxui/dom/canvas.cpp.
| Element graph | ( | GraphFunction | graph_function | ) |
Dibuja un gráfico usando una GraphFunction.
| graph_function | la función a ser llamada para obtener los datos. |
Definition at line 79 of file src/ftxui/dom/graph.cpp.
A container displaying a grid of elements.
| lines | A list of lines, each line being a list of elements. |
Output:
Definition at line 178 of file src/ftxui/dom/gridbox.cpp.
Un contenedor que muestra elementos horizontalmente uno por uno.
| children | Los elementos en el contenedor |
| Decorator reflect | ( | Box & | box | ) |
Definition at line 43 of file reflect.cpp.
Restablece el estilo de selección de un elemento.
| child | El elemento de entrada. |
Definition at line 55 of file selection_style.cpp.
| Decorator selectionBackgroundColor | ( | Color | foreground | ) |
Establece el color de fondo de un elemento cuando está seleccionado. Tenga en cuenta que el estilo se aplica además del estilo existente.
Definition at line 61 of file selection_style.cpp.
| Decorator selectionForegroundColor | ( | Color | foreground | ) |
Establece el color de primer plano de un elemento cuando está seleccionado. Tenga en cuenta que el estilo se aplica además del estilo existente.
Definition at line 69 of file selection_style.cpp.
| Decorator selectionColor | ( | Color | foreground | ) |
Establece el color de un elemento cuando está seleccionado.
| foreground | El color a aplicar. Tenga en cuenta que el estilo se aplica además del estilo existente. |
Definition at line 78 of file selection_style.cpp.
| Decorator selectionStyle | ( | std::function< void(Cell &)> | style | ) |
Establece el estilo de un elemento cuando está seleccionado.
| style | El estilo a aplicar. Tenga en cuenta que el estilo se aplica además del estilo existente. |
Definition at line 86 of file selection_style.cpp.
| ColorInfo GetColorInfo | ( | Color::Palette256 | index | ) |
Definition at line 273 of file color_info.cpp.
| ColorInfo GetColorInfo | ( | Color::Palette16 | index | ) |
Definition at line 277 of file color_info.cpp.
| std::vector< std::vector< ColorInfo > > ColorInfoSorted2D | ( | ) |
Definition at line 282 of file color_info.cpp.
| bool EatCodePoint | ( | std::string_view | input, |
| size_t | start, | ||
| size_t * | end, | ||
| uint32_t * | ucs ) |
From UTF8 encoded string |input|, eat in between 1 and 4 byte representing one codepoint. Put the codepoint into |ucs|. Start at |start| and update |end| to represent the beginning of the next byte to eat for consecutive executions.
Definition at line 142 of file string.cpp.
| bool EatCodePoint | ( | std::wstring_view | input, |
| size_t | start, | ||
| size_t * | end, | ||
| uint32_t * | ucs ) |
From UTF16 encoded string |input|, eat in between 1 and 4 byte representing one codepoint. Put the codepoint into |ucs|. Start at |start| and update |end| to represent the beginning of the next byte to eat for consecutive executions.
Definition at line 216 of file string.cpp.
| bool IsCombining | ( | uint32_t | ucs | ) |
Definition at line 254 of file string.cpp.
| bool IsFullWidth | ( | uint32_t | ucs | ) |
Definition at line 258 of file string.cpp.
| bool IsControl | ( | uint32_t | ucs | ) |
Definition at line 266 of file string.cpp.
| WordBreakProperty CodepointToWordBreakProperty | ( | uint32_t | codepoint | ) |
Definition at line 280 of file string.cpp.
| int wchar_width | ( | wchar_t | ucs | ) |
Definition at line 286 of file string.cpp.
| int wstring_width | ( | const std::wstring & | text | ) |
Definition at line 290 of file string.cpp.
| int string_width | ( | std::string_view | input | ) |
Definition at line 308 of file string.cpp.
| size_t GlyphPrevious | ( | std::string_view | input, |
| size_t | start ) |
Definition at line 402 of file string.cpp.
| size_t GlyphNext | ( | std::string_view | input, |
| size_t | start ) |
Definition at line 428 of file string.cpp.
| size_t GlyphIterate | ( | std::string_view | input, |
| int | glyph_offset, | ||
| size_t | start ) |
Definition at line 457 of file string.cpp.
| int GlyphCount | ( | std::string_view | input | ) |
Definition at line 514 of file string.cpp.
| std::vector< WordBreakProperty > Utf8ToWordBreakProperty | ( | std::string_view | input | ) |
Definition at line 544 of file string.cpp.
| std::string to_string | ( | std::wstring_view | s | ) |
Convert a std::wstring into a UTF8 std::string. Convierte un std::wstring en un std::string UTF8.
Definition at line 576 of file string.cpp.
| std::wstring to_wstring | ( | std::string_view | s | ) |
Convert a UTF8 std::string into a std::wstring. Convierte un std::string UTF8 en un std::wstring.
Definition at line 650 of file string.cpp.
| bool IsWordBreakingCharacter | ( | std::string_view | input, |
| size_t | glyph_index ) |
| const bool* show |
Definition at line 159 of file component.hpp.
| Direction direction |
Definition at line 83 of file elements.hpp.
|
default |
Construye un color transparente.
Construye un Color a partir de su representación RGB. https://en.wikipedia.org/wiki/RGB_color_model.
Construye un color usando los colores de la Paleta256.
Construye un color usando los colores de la Paleta16.
| red | La cantidad de rojo [0,255] |
| green | La cantidad de verde [0,255] |
| blue | La cantidad de azul [0,255] |
| alpha | La cantidad de alfa [0,255] |
Definition at line 99 of file elements.hpp.
| size_t image_index |
Definition at line 104 of file elements.hpp.
| float y |
Definition at line 134 of file elements.hpp.
| int shrink |
Definition at line 165 of file elements.hpp.
Definition at line 195 of file elements.hpp.
| int value |
Definition at line 195 of file elements.hpp.
| const std::map<std::string, std::string> g_uniformize |
Definition at line 19 of file terminal_input_parser.cpp.
| const std::array<ColorInfo, 256> palette256 |
Definition at line 14 of file color_info.cpp.