Revert "Factorize box layout functions. (#185)" (#186)

This reverts commit 71299daea4.
This commit is contained in:
Arthur Sonzogni
2021-08-10 19:36:57 +02:00
committed by GitHub
parent 71299daea4
commit 98f49a581c
5 changed files with 169 additions and 144 deletions

View File

@@ -1,24 +0,0 @@
#ifndef FTXUI_DOM_BOX_HELPER_HPP
#define FTXUI_DOM_BOX_HELPER_HPP
#include <vector>
namespace ftxui {
namespace box_helper {
struct Element {
// Input:
int min_size = 0;
int flex_grow = 0;
int flex_shrink = 0;
// Output;
int size = 0;
};
void Compute(std::vector<Element>* elements, int target_size);
} // namespace box_helper
} // namespace ftxui
#endif /* end of include guard: FTXUI_DOM_BOX_HELPER_HPP */