|
|
Donner
C++20 SVG rendering library
|
Defines an offscreen shadow tree attached to the current entity (the shadow host). More...
#include "donner/svg/components/shadow/OffscreenShadowTreeComponent.h"
Public Member Functions | |
| OffscreenShadowTreeComponent ()=default | |
| Default constructor. | |
| std::optional< RcString > | branchHref (ShadowBranchType branchType) const |
| Get the href attribute for the shadow tree target, e.g. | |
| void | setBranchHref (ShadowBranchType branchType, const RcString &href) |
| Set the href attribute for the shadow tree target, which must be an element reference (e.g. | |
| std::optional< ResolvedReference > | branchTargetEntity (Registry ®istry, ShadowBranchType branchType) const |
| Get the resolved entity for the target of the shadow tree, if the href was able to be resolved. | |
| const std::map< ShadowBranchType, Reference > & | branches () const |
| Get the underlying map containing each branch and reference. | |
Defines an offscreen shadow tree attached to the current entity (the shadow host).
An offscreen shadow tree is a tree of entities, outside of the main render tree, which are rendered in the process of compositing the current entity. This is used for paint servers, which can be instantiated for fill or stroke attributes.
Supported shadow tree types are defined by ShadowBranchType.
|
inline |
Get the href attribute for the shadow tree target, e.g.
"#otherEntity".
| branchType | The branch type to get the href for. |
std::nullopt if not set.
|
inline |
Get the resolved entity for the target of the shadow tree, if the href was able to be resolved.
| registry | The registry. |
| branchType | The branch type to get the resolved entity for. |
std::nullopt if not set.
|
inline |
Set the href attribute for the shadow tree target, which must be an element reference (e.g.
"#otherEntity").
| branchType | The branch type to set the href for. |
| href | The href attribute value. |