FTXUI  5.0.0
C++ functional terminal UI.
box_helper.hpp
Go to the documentation of this file.
1 // Copyright 2021 Arthur Sonzogni. All rights reserved.
2 // Use of this source code is governed by the MIT license that can be found in
3 // the LICENSE file.line.
4 #ifndef FTXUI_DOM_BOX_HELPER_HPP
5 #define FTXUI_DOM_BOX_HELPER_HPP
6 
7 #include <vector>
8 
9 namespace ftxui::box_helper {
10 
11 struct Element {
12  // Input:
13  int min_size = 0;
14  int flex_grow = 0;
15  int flex_shrink = 0;
16 
17  // Output;
18  int size = 0;
19 };
20 
21 void Compute(std::vector<Element>* elements, int target_size);
22 
23 } // namespace ftxui::box_helper
24 
25 #endif /* end of include guard: FTXUI_DOM_BOX_HELPER_HPP */
void Compute(std::vector< Element > *elements, int target_size)
Definition: box_helper.cpp:64