FTXUI  3.0.0
C++ functional terminal UI.
requirement.hpp
Go to the documentation of this file.
1 #ifndef FTXUI_DOM_REQUIREMENT_HPP
2 #define FTXUI_DOM_REQUIREMENT_HPP
3 
4 #include "ftxui/screen/box.hpp"
5 
6 namespace ftxui {
7 
8 struct Requirement {
9  // The required size to fully draw the element.
10  int min_x = 0;
11  int min_y = 0;
12 
13  // How much flexibility is given to the component.
14  int flex_grow_x = 0;
15  int flex_grow_y = 0;
16  int flex_shrink_x = 0;
17  int flex_shrink_y = 0;
18 
19  // Focus management to support the frame/focus/select element.
20  enum Selection {
21  NORMAL = 0,
22  SELECTED = 1,
23  FOCUSED = 2,
24  };
27 };
28 
29 } // namespace ftxui
30 
31 #endif // FTXUI_DOM_REQUIREMENT_HPP
32 
33 // Copyright 2020 Arthur Sonzogni. All rights reserved.
34 // Use of this source code is governed by the MIT license that can be found in
35 // the LICENSE file.