29#include <utility/graphic/color.hpp>
30#include <utility/graphic/pose.hpp>
32#include "guillaume/ecs/component_registry.hpp"
33#include "guillaume/ecs/entity_builder.hpp"
35#include "guillaume/components/accessibility.hpp"
36#include "guillaume/components/animation.hpp"
37#include "guillaume/components/elevation.hpp"
38#include "guillaume/components/overlay.hpp"
39#include "guillaume/components/tooltip.hpp"
41#include "guillaume/entities/builder_base.hpp"
42#include "guillaume/entities/surface.hpp"
43#include "guillaume/entities/text.hpp"
106 public SurfaceBase<components::Overlay, components::Elevation,
107 components::Animation, components::Accessibility,
136 Variant _variant { Variant::Plain };
137 std::string _text {};
138 std::string _title {};
156 std::shared_ptr<Tooltip>
buildEntity(
void)
override;
162 void reset(
void)
override;
217 std::shared_ptr<Tooltip>
219 Variant variant,
const std::string &text,
220 const std::string &title =
"");
236 template<
typename... Arguments>
237 static std::shared_ptr<Tooltip>
create(Arguments &&...arguments)
239 std::shared_ptr<Tooltip> entity(
240 new Tooltip(std::forward<Arguments>(arguments)...));
275 Tooltip &
setText(
const std::string &text);
291 Tooltip &
setAnchor(std::shared_ptr<ecs::Entity> anchor);
398 void buildContent(
void);
412 Variant variant,
const std::string &text,
413 const std::string &title);
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...