FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
box_helper.hpp
Go to the documentation of this file.
1// Copyright 2021 Arthur Sonzogni. Todos los derechos reservados.
2// El uso de este código fuente se rige por la licencia MIT que se puede encontrar en
3// el archivo LICENSE.line.
4#ifndef FTXUI_DOM_BOX_HELPER_HPP
5#define FTXUI_DOM_BOX_HELPER_HPP
6
7#include <vector>
9
10namespace ftxui::box_helper {
11
12struct Element {
13 // Entrada:
14 int min_size = 0;
15 int flex_grow = 0;
16 int flex_shrink = 0;
17
18 // Salida;
19 int size = 0;
20};
21
22void Compute(std::vector<Element>* elements, int target_size);
23} // namespace ftxui::box_helper
24
25#endif /* fin de la guarda de inclusión: FTXUI_DOM_BOX_HELPER_HPP */
void Compute(std::vector< Element > *elements, int target_size)