Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
UIBindings.hpp File Reference

The UI entry points the SDK drives: the Yoga layout pass, hit testing, draw order, and the computed-box queries. More...

#include <unordered_map>
#include "../core/Types.hpp"
Include dependency graph for UIBindings.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  esengine
namespace  esengine::ecs

Functions

bool esengine::uiLayout_update (ecs::Registry &registry, f32 boxLeft, f32 boxBottom, f32 boxRight, f32 boxTop, bool propertyDirty)
void esengine::uiHitTest_update (ecs::Registry &registry, f32 originX, f32 originY, f32 originZ, f32 dirX, f32 dirY, f32 dirZ)
void esengine::uiHitTest_updateDomains (ecs::Registry &registry, f32 worldOriginX, f32 worldOriginY, f32 worldOriginZ, f32 worldDirX, f32 worldDirY, f32 worldDirZ, f32 screenOriginX, f32 screenOriginY, f32 screenOriginZ, f32 screenDirX, f32 screenDirY, f32 screenDirZ)
 The hit test with a ray per domain — world content and world-space UI answer the first, screen UI the second.
bool esengine::uiHitTest_inputsChanged (ecs::Registry &registry)
u32 esengine::uiHitTest_getHitEntity ()
u32 esengine::uiHitTest_pick (ecs::Registry &registry, f32 worldX, f32 worldY)
u32 esengine::uiHitTest_pickAll (ecs::Registry &registry, f32 worldX, f32 worldY)
u32 esengine::uiHitTest_pickResult (u32 index)
f32 esengine::uiNode_computedWidth (ecs::Registry &r, u32 e)
f32 esengine::uiNode_computedHeight (ecs::Registry &r, u32 e)
void esengine::uiRenderOrder_update (ecs::Registry &registry)
const std::unordered_map< u32, i32 > * esengine::uiTreeLayers ()
i32 esengine::ui_getRenderOrder (ecs::Registry &registry, u32 entity)
u32 esengine::ui_getCullBit (ecs::Registry &registry, u32 entity)
bool esengine::ui_isScreenDomain (ecs::Registry &registry, u32 entity)
 Whether entity belongs to the SCREEN rather than to the world.
bool esengine::getUINodeHiddenInTree (ecs::Registry &registry, u32 entity)
f32 esengine::getUINodeAlphaInTree (ecs::Registry &registry, u32 entity)
f32 esengine::getUINodeComputedWidth (ecs::Registry &registry, u32 entity)
f32 esengine::getUINodeComputedHeight (ecs::Registry &registry, u32 entity)
void esengine::transform_update (ecs::Registry &registry)
bool esengine::transform_copyFlatRenderMatrix (ecs::Registry &registry, u32 entity, uintptr_t outputPtr)

Detailed Description

The UI entry points the SDK drives: the Yoga layout pass, hit testing, draw order, and the computed-box queries.

These were defined inline in WebSDKEntry.cpp, which made them web-only by accident of where they sat — the implementations use nothing but activeCtx() and the registry. Declared here (like RendererBindings), they are registered with embind by WebSDKEntry on the web and wrapped for QuickJS by the EHT-generated native bindings, from THIS file's declarations. One implementation, two registrations.

Definition in file UIBindings.hpp.