9#include <aegis2d/ui/export.hpp>
73class AEGIS2D_UI_EXPORT
Menu {
134 void draw(render::IRenderer& renderer, const render::BitmapFont& font) const;
148 std::vector<Button> buttons_;
149 std::vector<Label> labels_;
Text drawn with a bitmap font, through the sprite batcher.
RGBA color used by the renderer.
Vector and matrix types of the engine (GLM behind engine names).
constexpr Color rgb(std::uint32_t hex, float alpha=1.0F) noexcept
Color from its hexadecimal sRGB code, as design tools and palettes give it.
Definition color.hpp:25
Menus and forms: widgets and their focus, moved by keyboard, gamepad and mouse (client only).
Definition console.hpp:21
WidgetState
How a button looks, from what the player does with it.
Definition menu.hpp:21
@ Focused
Focused: activate uses it.
@ Disabled
Cannot be focused or used.
@ Pressed
Focused, with the activate key, button or the main mouse button held down.
std::size_t WidgetId
Identifier of a widget in its WidgetTree, given by WidgetTree::add().
Definition widget_tree.hpp:18
glm::vec2 Vec2
2D vector of floats: positions, velocities, sizes (glm::vec2).
Definition math.hpp:19
Definition endpoint.hpp:85
Backend-independent renderer interface and the sprite it draws.
RGBA color with components in [0, 1].
Definition color.hpp:10
Axis-aligned rectangle.
Definition renderer.hpp:20
What the player asked of the focus during a frame.
Definition widget_tree.hpp:37