FTXUI  4.1.0
C++ functional terminal UI.
Loading...
Searching...
No Matches
requirement.hpp
Go to the documentation of this file.
1#ifndef FTXUI_DOM_REQUIREMENT_HPP
2#define FTXUI_DOM_REQUIREMENT_HPP
3
5
6namespace ftxui {
7
8struct 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;
18
19 // Focus management to support the frame/focus/select element.
20 enum Selection {
21 NORMAL = 0,
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.