4#ifndef FTXUI_DOM_REQUIREMENT_HPP
5#define FTXUI_DOM_REQUIREMENT_HPP
18struct FTXUI_EXPORT(DOM) Requirement {
26 int flex_shrink_x = 0;
27 int flex_shrink_y = 0;
34 Screen::Cursor::Shape cursor_shape = Screen::Cursor::Shape::Hidden;
37 bool component_active =
false;
38 bool component_focused =
false;
41 bool Prefer(
const Focused& other)
const {
48 if (other.component_focused != component_focused) {
49 return other.component_focused;
52 return other.component_active && !component_active;