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