4#ifndef FTXUI_DOM_REQUIREMENT_HPP
5#define FTXUI_DOM_REQUIREMENT_HPP
19struct FTXUI_EXPORT(DOM) Requirement {
27 int flex_shrink_x = 0;
28 int flex_shrink_y = 0;
35 Screen::Cursor::Shape cursor_shape = Screen::Cursor::Shape::Hidden;
38 bool component_active =
false;
39 bool component_focused =
false;
42 bool Prefer(
const Focused& other)
const {
49 if (other.component_focused != component_focused) {
50 return other.component_focused;
53 return other.component_active && !component_active;
The FTXUI ftxui:: namespace.