mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-05-06 17:21:13 +08:00

This commit deserve to be cut into at least 8 sub commit. Sorry, I acknowledge this is bad... Here are the new features: * dom decorator: bold, dim, underlined, inverted. * component mechanism * components * menu * toogle
29 lines
402 B
C++
29 lines
402 B
C++
#ifndef FTXUI_REQUIREMENT_HPP
|
|
#define FTXUI_REQUIREMENT_HPP
|
|
|
|
namespace ftxui {
|
|
|
|
struct Requirement {
|
|
// Minimal dimensions.
|
|
struct {
|
|
int x = 0;
|
|
int y = 0;
|
|
} min;
|
|
|
|
// Maximal dimensions.
|
|
struct {
|
|
int x = -1;
|
|
int y = -1;
|
|
} max;
|
|
|
|
// Flex.
|
|
struct {
|
|
int x = 0;
|
|
int y = 0;
|
|
} flex;
|
|
};
|
|
|
|
}; // namespace ftxui
|
|
|
|
#endif /* end of include guard: FTXUI_REQUIREMENT_HPP */
|