Donner 0.5.0
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
DirtyFlagsComponent.h File Reference
#include <cstdint>
Include dependency graph for DirtyFlagsComponent.h:

Classes

struct  donner::svg::components::DirtyFlagsComponent
 Tracks which computed properties are stale and need recomputation after a DOM mutation. More...
struct  donner::svg::components::RenderTreeState
 Global invalidation state, stored in the registry context via Registry::ctx(). More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.
namespace  donner::svg::components
 Contains the implementation of the Donner ECS,.

Class Documentation

◆ donner::svg::components::RenderTreeState

struct donner::svg::components::RenderTreeState

Global invalidation state, stored in the registry context via Registry::ctx().

Tracks whether a full render tree rebuild is required (e.g., after setTime() or setCanvasSize()), separate from per-entity dirty flags.

Class Members
bool hasBeenBuilt = false True if the render tree has been built at least once.
bool needsFullRebuild = true True if the render tree needs a full rebuild (structure changed, canvas resized, etc.).
bool needsFullStyleRecompute = true True if styles must be recomputed for the whole tree because selector dependencies may be non-local (for example class/id/attribute changes or tree mutations).