Donner
C++20 SVG rendering library
|
Indicates the entry point to a shadow tree, which instantiates a virtual tree of entities mirroring another entity's tree. More...
#include "donner/svg/components/shadow/ShadowTreeComponent.h"
Public Member Functions | |
ShadowTreeComponent ()=default | |
Constructor. | |
std::optional< RcString > | mainHref () const |
Get the href attribute for the shadow tree target. | |
void | setMainHref (const RcStringOrRef &href) |
Set the href attribute for the shadow tree target, which must be an element reference (e.g. | |
std::optional< ResolvedReference > | mainTargetEntity (Registry ®istry) const |
Get the resolved entity for the main target of the shadow tree, if the mainHref was able to be resolved. | |
Public Attributes | |
bool | setsContextColors = false |
Whether this shadow tree inherits the CSS context-color from the parent tree. | |
Indicates the entry point to a shadow tree, which instantiates a virtual tree of entities mirroring another entity's tree.
For more information about shadow trees:
Note that only "<use>" elements are true shadow trees, paint servers are technically re-used graphics.
To use, create and call ShadowTreeComponent::setMainHref.
When instantiated, creates a BranchType::Main shadow tree, which is the main render graph. For other shadow trees, see OffscreenShadowTreeComponent.
|
inline |
Get the href attribute for the shadow tree target.
|
inline |
Get the resolved entity for the main target of the shadow tree, if the mainHref was able to be resolved.
registry | The registry. |
|
inline |
Set the href attribute for the shadow tree target, which must be an element reference (e.g.
"#otherEntity").
href | The href attribute value. |