24#include "guillaume/ecs/component.hpp"
25#include "guillaume/theme/tokens.hpp"
50 bool _shadow {
true };
theme::ElevationLevel getElevation(void) const noexcept
Get how high the surface sits above the background.
~SurfaceTone(void)=default
Default destructor.
SurfaceTone(void)=default
Create the state of a level 1 surface with a shadow.
SurfaceTone & setShadow(bool shadow)
Turn the shadow of the surface on or off.
SurfaceTone & setElevation(theme::ElevationLevel elevation)
Set how high the surface sits above the background.
bool hasShadow(void) const noexcept
Tell whether the surface casts a shadow.
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.
ElevationLevel
How far a surface is raised above the background, in six steps.
@ Level1
Lowest raised level.