Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
UITypes.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
3#pragma once
4
5#include "../core/Types.hpp"
6
7namespace esengine {
8
9struct Padding {
10 f32 left{0.0f};
11 f32 top{0.0f};
12 f32 right{0.0f};
13 f32 bottom{0.0f};
14};
15
26struct Dimension {
27 f32 value{0.0f};
28 u8 unit{0}; // 0=Px, 1=Percent, 2=Auto
29};
30
31} // namespace esengine
Core type definitions and utilities for ESEngine.
std::uint8_t u8
Unsigned 8-bit integer.
Definition Types.hpp:41
float f32
32-bit floating point
Definition Types.hpp:59
A CSS-style length: value interpreted per unit.
Definition UITypes.hpp:26