|
ZenitUI
Retained-mode C++20 UI framework
|
Per-application state: renderer, platform, pointer, focus, portals. More...
#include "Common.hpp"#include "CoreTypes.hpp"#include "Geometry2D.hpp"#include "FilterRegistry.hpp"#include "Theme.hpp"#include "TextEngine.hpp"#include "UIEnums.hpp"#include <span>#include <any>Go to the source code of this file.
Classes | |
| class | ZenitUI::IRenderer |
| Abstract 2D rendering backend. More... | |
| class | ZenitUI::IPlatform |
| Abstract windowing, timing, input, and clipboard backend. More... | |
| class | ZenitUI::IAssetProvider |
| Abstract name-based lookup and runtime lifecycle for textures and shaders. More... | |
| struct | ZenitUI::RenderStats |
| Per-frame and live render-target / filter counters (Proposal 9, Step 0). More... | |
| class | ZenitUI::TargetPool |
| Shared, bucket-sized render-target pool owned by UIContext (§4.9 Step c). More... | |
| struct | ZenitUI::DragPayload |
| Opaque user payload carried during an active drag-and-drop operation. More... | |
| struct | ZenitUI::ActiveDrag |
| Per-context state tracking a pending or active drag operation. More... | |
| struct | ZenitUI::UIContext |
| Per-instance UI context: backends, theme, text engine, frame state, and routing. More... | |
Enumerations | |
| enum class | ZenitUI::Feature { Feature::Effects , Feature::NestedTargets , Feature::TargetSubRect } |
| Optional renderer capabilities queried via IRenderer::supports. More... | |
| enum class | ZenitUI::ShaderLanguage { ShaderLanguage::None , ShaderLanguage::GLSL330 , ShaderLanguage::GLSL300ES , ShaderLanguage::SPIRV , ShaderLanguage::HLSL , ShaderLanguage::MSL , ShaderLanguage::WGSL } |
| Shading language consumed by an IRenderer that supports Feature::Effects. More... | |
| enum class | ZenitUI::BlendMode { BlendMode::Alpha , BlendMode::Premultiplied , BlendMode::Replace } |
| Color-blending mode used by IRenderer draw calls. More... | |
Per-application state: renderer, platform, pointer, focus, portals.
UIContext aggregates every piece of mutable per-frame state the framework needs but does not want to thread through every call. It is the boundary between the platform layer (window, input, clock) and the framework (layout, style, render).
Two interface families live here:
UIContext itself holds: