Represents a reference to an SVG entity by its href, typically created from a url(#id) string.
More...
#include "donner/svg/graph/Reference.h"
|
|
RcString | href |
| | The href string identifying the referenced entity, e.g. #id.
|
|
|
std::ostream & | operator<< (std::ostream &os, const Reference &ref) |
| | Outputs the href string to a stream.
|
Represents a reference to an SVG entity by its href, typically created from a url(#id) string.
The reference can be resolved to an entity using resolve.
| Source | href value |
| url(#id) | #id |
| href="#id | #id |
| xlink:href="#id" | #id |
| xlink:href="url(#id)" | url(#id) (invalid syntax) |
Note that absolute references, such as path/to/other-file.svg#elementId, are not supported.
◆ Reference() [1/2]
| donner::svg::Reference::Reference |
( |
const RcString & | href | ) |
|
|
inline |
◆ Reference() [2/2]
| donner::svg::Reference::Reference |
( |
const char * | href | ) |
|
|
inline |
Constructs a Reference from a C-style string.
- Parameters
-
◆ resolve()
Attempts to resolve the reference using the provided registry.
- Parameters
-
| registry | The Registry to use for resolution |
- Returns
- An optional ResolvedReference, which is empty if resolution fails
The documentation for this struct was generated from the following files:
- donner/svg/graph/Reference.h
- donner/svg/graph/Reference.cc