30#include <utility/graphic/color.hpp>
31#include <utility/graphic/pose.hpp>
33#include "guillaume/ecs/component_registry.hpp"
34#include "guillaume/ecs/entity_builder.hpp"
36#include "guillaume/components/radio_button.hpp"
37#include "guillaume/components/ring.hpp"
38#include "guillaume/components/selection.hpp"
40#include "guillaume/entities/builder_base.hpp"
41#include "guillaume/entities/surface.hpp"
42#include "guillaume/entities/text.hpp"
85 public SurfaceBase<components::Selectable, components::Ring,
86 components::RadioButton>
103 Variant _variant { Variant::Enabled };
104 std::string _label {};
126 std::shared_ptr<RadioButton>
buildEntity(
void)
override;
134 void reset(
void)
override;
172 std::shared_ptr<RadioButton>
174 Variant variant,
const std::string &label);
191 template<
typename... Arguments>
192 static std::shared_ptr<RadioButton>
create(Arguments &&...arguments)
194 std::shared_ptr<RadioButton> entity(
195 new RadioButton(std::forward<Arguments>(arguments)...));
228 RadioButton &
setLabel(
const std::string &label);
246 RadioButton &
select(
bool selected);
265 RadioButton &
setOnPress(std::function<
void(
void)> onPress);
300 const std::string &label);
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)
SurfaceBase(ecs::ComponentRegistry ®istry, const SurfaceConfig &config)
Widgets: the classes used to create entities with the right components and children.
Everything needed to set up a surface in one value: where it is, how it looks and how it arranges its...