29#include <utility/graphic/color.hpp>
30#include <utility/graphic/pose.hpp>
32#include "guillaume/components/animation.hpp"
33#include "guillaume/components/backdrop.hpp"
34#include "guillaume/components/bound.hpp"
35#include "guillaume/components/scrim.hpp"
36#include "guillaume/components/transform.hpp"
37#include "guillaume/ecs/component_registry.hpp"
38#include "guillaume/ecs/entity_filler.hpp"
39#include "guillaume/systems/backdrop.hpp"
80 components::Scrim, components::Animation,
99 template<
typename... Arguments>
100 static std::shared_ptr<Backdrop>
create(Arguments &&...arguments)
102 return std::shared_ptr<Backdrop>(
103 new Backdrop(std::forward<Arguments>(arguments)...));
139 void follow(
const utility::graphic::PoseF &ownerPose,
float ownerWidth,
Stores every component of a scene, per component type and per entity identifier, and knows which ones...
The base class of a widget without children: an Entity that creates its components when it is constru...
static constexpr float Extent
Side of the backdrop quad, in dp.
~Backdrop(void) override=default
Destructor.
bool isVisible(void) const
Check whether the backdrop is shown.
void follow(const utility::graphic::PoseF &ownerPose, float ownerWidth, float ownerHeight)
Centre the backdrop on its owner, half a layer behind it.
static std::shared_ptr< Backdrop > create(Arguments &&...arguments)
Build a hidden backdrop without registering it in an entity registry.
void setVisible(bool visible)
Show or hide the backdrop.
static constexpr float Extent
Widgets: the classes used to create entities with the right components and children.