27#include "guillaume/ecs/component.hpp"
28#include "guillaume/theme/typescale.hpp"
107 std::optional<float> _fontSize {};
Typography & setRole(theme::TypeRole role)
Set the typescale role.
Typography & setFontSize(std::optional< float > fontSize)
Override the font size of the role, or clear the override.
theme::TypeRole getRole(void) const
Get the typescale role.
Typography(void)=default
Default constructor.
std::optional< float > getFontSize(void) const
Get the explicit font size.
~Typography(void)=default
Default destructor.
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.
TypeRole
The named text styles of Material Design 3: what a piece of text is, not how big it is.
@ BodyMedium
14 / 20, regular.