Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
widget_tree.hpp File Reference

Widgets of a menu or a form, and which one has the focus. More...

#include <aegis2d/core/math.hpp>
#include <aegis2d/render/renderer.hpp>
#include <aegis2d/ui/export.hpp>
#include <cstddef>
#include <cstdint>
#include <optional>
#include <span>
#include <vector>

Go to the source code of this file.

Classes

struct  aegis2d::ui::Navigation
 What the player asked of the focus during a frame. More...
 
class  aegis2d::ui::WidgetTree
 Widgets of a menu or a form, in groups, and which one has the focus. More...
 

Namespaces

namespace  aegis2d
 Root namespace of the engine.
 
namespace  aegis2d::ui
 Menus and forms: widgets and their focus, moved by keyboard, gamepad and mouse (client only).
 

Typedefs

using aegis2d::ui::WidgetId = std::size_t
 Identifier of a widget in its WidgetTree, given by WidgetTree::add().
 

Enumerations

enum class  aegis2d::ui::Direction : std::uint8_t { aegis2d::ui::Up , aegis2d::ui::Down , aegis2d::ui::Left , aegis2d::ui::Right }
 Direction the focus moves in, with the arrows, the D-pad or a stick. More...
 

Variables

constexpr WidgetId aegis2d::ui::root = 0
 The root group of every tree, which the other widgets go under.
 

Detailed Description

Widgets of a menu or a form, and which one has the focus.