27#include "guillaume/ecs/component.hpp"
28#include "guillaume/ecs/entity.hpp"
67 enum class Color { Elevated, Filled, Tonal, Outlined,
Text, Segmented };
73 enum class Shape { Round, Square };
80 enum class Size { ExtraSmall, Small, Medium, Large, ExtraLarge };
108 Color _colorStyle { Color::Text };
109 Shape _shape { Shape::Round };
110 Size _size { Size::Small };
115 float _minWidth { 0.0f };
116 bool _uppercase {
false };
117 std::optional<Corners> _corners {};
223 const std::optional<Corners> &
getCorners(
void)
const noexcept;
A run of text: its content, its font metrics and the position of the editing cursor.
Base class of every component: a piece of state attached to an entity, plus a "changed" flag.
State. Every class here is plain data attached to an entity.