FTXUI  0.11.0
C++ functional terminal UI.
Loading...
Searching...
No Matches
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
6namespace ftxui {
7namespace box_helper {
8
9struct 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
19void 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 */
25
26// Copyright 2021 Arthur Sonzogni. All rights reserved.
27// Use of this source code is governed by the MIT license that can be found in
28// the LICENSE file.
void Compute(std::vector< Element > *elements, int target_size)