|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include "../../core/Types.hpp"#include "../../core/Reflection.hpp"#include "../../math/Math.hpp"#include "../../resource/Handle.hpp"

Go to the source code of this file.
Classes | |
| struct | esengine::ecs::UIVisual |
| UIVisual — the single UI visual component, merging the former low-level UIRenderer (what the renderer drew) and high-level Image (Simple/Sliced/Tiled/Filled intent that used to be copied into a UIRenderer each frame). One component authored directly; UIElementPlugin reads it and computes the effective UV inline — the deferred copy is gone. More... | |
Namespaces | |
| namespace | esengine |
| namespace | esengine::ecs |
Enumerations | |
| enum class | esengine::ecs::UIVisualType : u8 { esengine::ecs::None , esengine::ecs::SolidColor , esengine::ecs::Image , esengine::ecs::NineSlice , esengine::ecs::Tiled , esengine::ecs::Filled } |
| How a UIVisual fills its UINode box. Replaces the old UIRenderer visualType + Image imageType pair: a single draw mode, so the renderer derives the sampled UV at draw time and no frame-late Image->UIRenderer copy system is needed. More... | |
| enum class | esengine::ecs::UIFillMethod : u8 { esengine::ecs::Horizontal , esengine::ecs::Vertical , esengine::ecs::Radial360 , esengine::ecs::Radial90 , esengine::ecs::Radial180 } |
| Fill mode for a Filled UIVisual. Horizontal/Vertical are linear crops along the axis; the Radial modes are an angular clockwise sweep starting from the fillOrigin edge (12/3/6/9 o'clock), where fillAmount scales the wedge from 0 to the mode's arc (90/180/360 degrees) — cooldown rings, speedometer arcs, corner meters. More... | |
| enum class | esengine::ecs::UIFillOrigin : u8 { esengine::ecs::Left , esengine::ecs::Right , esengine::ecs::Bottom , esengine::ecs::Top } |
| enum class | esengine::ecs::UIVisualFit : u8 { esengine::ecs::Fill , esengine::ecs::Contain , esengine::ecs::Cover } |
| How the texture is fitted into the node's box — CSS object-fit. Fill stretches to the box (the default, and what a 9-slice or a tiled visual always wants). Contain scales the image down until it fits WHOLE inside the box, letterboxing the remainder — the "don't squash
my artwork" mode. Cover scales up until the box is covered and crops the overflow, so the box is filled with no distortion. More... | |