FTXUI  0.8.1
C++ functional terminal UI.
box_helper.hpp
Go to the documentation of this file.
1 #ifndef FTXUI_DOM_BOX_HELPER_HPP
2 #define FTXUI_DOM_BOX_HELPER_HPP
3 
4 #include <vector>
5 
6 namespace ftxui {
7 namespace box_helper {
8 
9 struct Element {
10  // Input:
11  int min_size = 0;
12  int flex_grow = 0;
13  int flex_shrink = 0;
14 
15  // Output;
16  int size = 0;
17 };
18 
19 void Compute(std::vector<Element>* elements, int target_size);
20 
21 } // namespace box_helper
22 } // namespace ftxui
23 
24 #endif /* end of include guard: FTXUI_DOM_BOX_HELPER_HPP */
ftxui
Definition: captured_mouse.hpp:6
ftxui::box_helper::Element::size
int size
Definition: box_helper.hpp:16
ftxui::box_helper::Element::flex_grow
int flex_grow
Definition: box_helper.hpp:12
ftxui::box_helper::Element::flex_shrink
int flex_shrink
Definition: box_helper.hpp:13
ftxui::box_helper::Element::min_size
int min_size
Definition: box_helper.hpp:11
ftxui::box_helper::Element
Definition: box_helper.hpp:9
ftxui::box_helper::Compute
void Compute(std::vector< Element > *elements, int target_size)
Definition: box_helper.cpp:60