mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-01 00:37:31 +08:00
493e734680
1) Set clang-format macro indent. 2) Run clang-format on every files.
33 lines
558 B
C++
33 lines
558 B
C++
#ifndef FTXUI_DOM_REQUIREMENT_HPP
|
|
#define FTXUI_DOM_REQUIREMENT_HPP
|
|
|
|
#include "ftxui/screen/box.hpp"
|
|
|
|
namespace ftxui {
|
|
|
|
struct Requirement {
|
|
// The required size to fully draw the element.
|
|
struct {
|
|
int x = 0;
|
|
int y = 0;
|
|
} min;
|
|
|
|
// How much flexibility is given to the component.
|
|
struct {
|
|
int x = 0;
|
|
int y = 0;
|
|
} flex;
|
|
|
|
// Frame.
|
|
enum Selection {
|
|
NORMAL = 0,
|
|
SELECTED = 1,
|
|
FOCUSED = 2,
|
|
} selection = NORMAL;
|
|
Box selected_box;
|
|
};
|
|
|
|
} // namespace ftxui
|
|
|
|
#endif /* end of include guard: FTXUI_REQUIREMENT_HPP */
|