Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ecs::UITree Struct Reference

#include <UITree.hpp>

Classes

struct  Node

Public Member Functions

void rebuild (Registry &reg)

Public Attributes

std::vector< Node > nodes_
u64 structure_sig_ {0}

Detailed Description

The DFS view of the UI hierarchy, rebuilt each pass.

It carries no dirty state of its own. It used to — a per-node LAYOUT_DIRTY with a HAS_DIRTY_CHILD walk up to the root — but nothing ever produced those marks except the rebuild itself, which set every node dirty every frame, so the gate reading them was always open. What is actually dirty is now Yoga's own answer, tracked per style field on the retained nodes it already owns (UILayoutSystem.cpp); a second set of marks beside it would only be a second thing to keep true.

Definition at line 29 of file UITree.hpp.

Member Function Documentation

◆ rebuild()

void esengine::ecs::UITree::rebuild ( Registry & reg)
inline

Member Data Documentation

◆ nodes_

std::vector<Node> esengine::ecs::UITree::nodes_

Definition at line 37 of file UITree.hpp.

Referenced by rebuild().

◆ structure_sig_

u64 esengine::ecs::UITree::structure_sig_ {0}

Definition at line 42 of file UITree.hpp.

Referenced by rebuild().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/ui/UITree.hpp