An instantiated ShadowTreeComponent, which points to the roots of parallel entity trees.
More...
#include "donner/svg/components/shadow/ComputedShadowTreeComponent.h"
An instantiated ShadowTreeComponent, which points to the roots of parallel entity trees.
This component attaches to the shadow host (where the tree is instantiated), and contains one or more shadow trees. Each shadow tree is a tree of entities, which are all children of the shadow host.
Each entity in the shadow tree has a ShadowEntityComponent attached.
◆ findOffscreenShadow()
std::optional< size_t > donner::svg::components::ComputedShadowTreeComponent::findOffscreenShadow |
( |
ShadowBranchType | branchType | ) |
const |
|
inline |
Find the index of the offscreen shadow tree with the given branch type.
- Parameters
-
branchType | The branch type to search for. |
- Returns
- The index of the offscreen shadow tree, or
std::nullopt
if not found.
◆ offscreenShadowEntities()
std::span< const Entity > donner::svg::components::ComputedShadowTreeComponent::offscreenShadowEntities |
( |
size_t | index | ) |
const |
|
inline |
Get the target element for the offscreen shadow tree.
- Parameters
-
◆ offscreenShadowRoot()
Entity donner::svg::components::ComputedShadowTreeComponent::offscreenShadowRoot |
( |
size_t | index | ) |
const |
|
inline |
Get the target element for the offscreen shadow tree.
- Parameters
-
The documentation for this struct was generated from the following file: