27#include <utility/graphic/color.hpp>
29#include "guillaume/ecs/component.hpp"
66 enum class Style { Outlined, Rounded, Sharp };
107 const std::string &
getName(
void)
const;
Glyph & setName(const std::string &name)
Choose the icon by name.
Style
Family of the Material Symbols font the icon belongs to.
Glyph & setFontSize(const float &fontSize)
Set the size of the icon.
const Style & getStyle(void) const
Get the font family of the icon.
~Glyph(void)=default
Default destructor for the Glyph component.
Glyph(void)=default
Default constructor for the Glyph component.
const std::string & getName(void) const
Get the name of the icon.
const float & getFontSize(void) const
Get the size of the icon.
Glyph & setStyle(const Style &style)
Set the font family of the icon.
Glyph & setCode(uint32_t code)
Store a code point for the glyph.
uint32_t getCode(void) const
Get the stored code point.
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.