32#include <utility/graphic/color.hpp>
33#include <utility/graphic/pose.hpp>
35#include "guillaume/ecs/component_registry.hpp"
36#include "guillaume/ecs/entity_builder.hpp"
38#include "guillaume/components/accessibility.hpp"
39#include "guillaume/components/elevation.hpp"
40#include "guillaume/components/menu.hpp"
41#include "guillaume/components/overlay.hpp"
43#include "guillaume/entities/builder_base.hpp"
44#include "guillaume/entities/surface.hpp"
45#include "guillaume/entities/text.hpp"
46#include "guillaume/entities/view.hpp"
104 public SurfaceBase<components::Overlay, components::Elevation,
105 components::Accessibility, components::Menu>
137 Variant _variant { Variant::Dropdown };
138 std::vector<Item> _items {};
164 void reset(
void)
override;
189 const std::string &leadingIcon =
"");
212 std::shared_ptr<Menu>
makeMenu(std::shared_ptr<ecs::Entity> parent,
214 const std::vector<Item> &items);
229 template<
typename... Arguments>
230 static std::shared_ptr<Menu>
create(Arguments &&...arguments)
232 std::shared_ptr<Menu> entity(
233 new Menu(std::forward<Arguments>(arguments)...));
282 Menu &
setItems(
const std::vector<Item> &items);
354 Menu &
setOnDismiss(std::function<
void(
void)> onDismiss);
412 void buildItems(
void);
426 Variant variant,
const std::vector<Item> &items);
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.
std::size_t Identifier
The key under which an entity's components are stored. Systems and components refer to entities by th...
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...