5#include "flint/ui/ui-context.h"
9#include <unordered_map>
64 return m_displayScale;
116 std::unordered_map<std::string, std::unique_ptr<UIContext>>
121 bool m_axisNavFiredX =
false;
123 bool m_axisNavFiredY =
false;
126 static constexpr float NAV_FIRE_THRESHOLD = 0.8f;
128 static constexpr float NAV_RESET_THRESHOLD = 0.3f;
131 float m_displayScale =
Dynamic 2D batching engine processing shape vector geometry and hardware-accelerated text strings....
Manages an isolated user interface canvas workspace sandbox, hosting its own independent node tree an...
UIContext * getActiveContext() const
Fetches the current user interface workspace layer targeted for frame inputs and draw pipelines.
UIContext * getContext(const std::string &name) const
Queries the context map registry to extract a specific UI canvas reference block.
float getDisplayScale() const
Returns the current resolution scalar factor applied across the layout metric generation loop.
void setDisplayScale(float scale)
Sets the global layout transformation multiplier factor to support clean high-DPI/resolution renderin...
UIContext * createContext(std::string name)
Spawns and registers a uniquely named UI canvas sandbox workspace.
void setActiveContext(const std::string &name)
Switches frame event processing focus directly over to a specific pre-registered context layout tree.
void render(UICanvas &canvas) const
Dispatches the active context layout node tree to push text structures and primitives down to the ren...
void destroyContext(std::string name)
Completely unloads the targeted context container and immediately releases its bound VRAM elements.
void handleEvent(const AppEvent &event)
Translates raw platform engine input messages into structured, semantic UIEvent actions.
Central gateway subsystem managing UI multi-context lifetimes, resolution scaling,...
void update(float deltaTime) const
Advances frame animation trackers and ticking metrics within the currently active UI context tree.
void clearActiveContext()
De-allocates focus assignments, forcing the active layout view track to return to null.
A tagged union representing a single application input or window event.