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

Public Member Functions

 ~LayoutCache ()
YGNodeRef getOrCreate (Entity entity)
void reap (const std::unordered_set< Entity > &live)

Public Attributes

std::unordered_map< Entity, YGNodeRef > nodes

Detailed Description

Definition at line 30 of file UILayoutSystem.cpp.

Constructor & Destructor Documentation

◆ ~LayoutCache()

esengine::ecs::LayoutCache::~LayoutCache ( )
inline

Definition at line 33 of file UILayoutSystem.cpp.

References nodes.

Member Function Documentation

◆ getOrCreate()

YGNodeRef esengine::ecs::LayoutCache::getOrCreate ( Entity entity)
inline

Definition at line 37 of file UILayoutSystem.cpp.

References nodes.

◆ reap()

void esengine::ecs::LayoutCache::reap ( const std::unordered_set< Entity > & live)
inline

Definition at line 48 of file UILayoutSystem.cpp.

References nodes.

Member Data Documentation

◆ nodes

std::unordered_map<Entity, YGNodeRef> esengine::ecs::LayoutCache::nodes

Definition at line 31 of file UILayoutSystem.cpp.

Referenced by ~LayoutCache(), getOrCreate(), and reap().


The documentation for this struct was generated from the following file: