|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
A CSS-style length: value interpreted per unit. More...
#include <UITypes.hpp>
Public Attributes | |
| f32 | value {0.0f} |
| u8 | unit {0} |
A CSS-style length: value interpreted per unit.
The runtime UI box model uses Dimension for width/height/min/max/inset so one field can be pixels, a percentage of the parent, or content-driven — retiring the old size/offset/-1-sentinel scheme. Kept a flat POD (f32 + u8) so it serializes through the existing EHT codegen as a registered custom struct (no per-glyph unrolling). unit mirrors the TS DimensionUnit enum: 0=Px, 1=Percent, 2=Auto.
Definition at line 26 of file UITypes.hpp.
| u8 esengine::Dimension::unit {0} |
Definition at line 28 of file UITypes.hpp.
Referenced by EMSCRIPTEN_BINDINGS().
| f32 esengine::Dimension::value {0.0f} |
Definition at line 27 of file UITypes.hpp.
Referenced by EMSCRIPTEN_BINDINGS().