25#include "guillaume/ecs/system_filler.hpp"
27#include "guillaume/components/app_bar.hpp"
28#include "guillaume/theme/typescale.hpp"
Variant
Shape of the bar. It sets the height and the title size.
Stores every component of a scene, per component type and per entity identifier, and knows which ones...
std::size_t Identifier
The key under which an entity's components are stored. Systems and components refer to entities by th...
The base class to derive a system from: a System whose signature is the list of component types given...
static bool needsNavigationButton(const ecs::ComponentRegistry &componentRegistry, const ecs::Entity::Identifier &entityIdentifier)
Whether the navigation button child still has to be created.
static theme::TypeRole titleRole(components::AppBar::Variant variant)
Get the typescale role the title of a variant is drawn with.
static bool needsActionButtons(const ecs::ComponentRegistry &componentRegistry, const ecs::Entity::Identifier &entityIdentifier)
Whether the action button children have to be created again.
static void installTitle(ecs::ComponentRegistry &componentRegistry, const ecs::Entity::Identifier &entityIdentifier)
Expose the title child to assistive technology as a header.
static bool needsTitle(const ecs::ComponentRegistry &componentRegistry, const ecs::Entity::Identifier &entityIdentifier)
Whether the title child still has to be created.
static float height(components::AppBar::Variant variant)
Get the fixed height of a variant.
static void apply(ecs::ComponentRegistry &componentRegistry, const ecs::Entity::Identifier &entityIdentifier)
Style one app bar and arrange its children.
AppBar(void)
Create the system in the Layout phase.
~AppBar(void) override=default
Default destructor.
void update(const ecs::Entity::Identifier &entityIdentifier) override
Run apply() on one app bar; called by the frame loop.
Rules. Every class here runs each frame on the entities that have the components it declares.
TypeRole
The named text styles of Material Design 3: what a piece of text is, not how big it is.