22#include "guillaume/components/surface_tone.hpp"
33 if (_elevation != elevation) {
34 _elevation = elevation;
47 if (_shadow != shadow) {
theme::ElevationLevel getElevation(void) const noexcept
Get how high the surface sits above the background.
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.
void setHasChanged(bool hasChanged)
Raise or lower the 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.