30#include "guillaume/ecs/component_registry.hpp"
31#include "guillaume/entities/builder_base.hpp"
32#include "guillaume/ecs/entity_builder.hpp"
34#include "guillaume/components/common_button.hpp"
35#include "guillaume/entities/button_base.hpp"
102 std::string _labelContent;
103 std::function<void(
void)>
111 bool _isTrailingIcon;
136 std::shared_ptr<Button>
buildEntity(
void)
override;
146 void reset(
void)
override;
260 std::shared_ptr<Button>
262 const std::string &labelContent,
263 std::function<
void(
void)> onClick,
Color colorStyle,
287 std::shared_ptr<Entity> parent,
const std::string &labelContent,
288 const std::string &iconGlyphName,
290 std::function<
void(
void)> onClick,
Color colorStyle,
315 utility::graphic::Color32Bit
333 template<
typename... Arguments>
334 static std::shared_ptr<Button>
create(Arguments &&...arguments)
336 std::shared_ptr<Button> entity(
337 new Button(std::forward<Arguments>(arguments)...));
468 const std::string &iconGlyphName,
470 const std::string &labelContent,
bool isToggle,
Color colorStyle,
472 bool isTrailingIcon,
const std::string &accessibilityLabel,
473 std::function<
void(
void)> onClick);
Style
Family of the Material Symbols font the icon belongs to.
Stores every component of a scene, per component type and per entity identifier, and knows which ones...
Owns entities and gives the systems the list of entities to visit.
EntityBuilderBase(ecs::ComponentRegistry &componentRegistry, ecs::EntityRegistry &entityRegistry)
Widgets: the classes used to create entities with the right components and children.