|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
#include <optional>#include <vector>#include "donner/base/RcString.h"#include "donner/svg/SVGAElement.h"#include "donner/svg/SVGDocument.h"#include "donner/svg/SVGGeometryElement.h"#include "donner/svg/SVGGraphicsElement.h"#include "donner/svg/core/Cursor.h"Classes | |
| class | donner::svg::DonnerController |
| Provides hit-testing and spatial queries for an SVG document. More... | |
| struct | donner::svg::DonnerController::LinkHit |
| Result of a successful hitTestLink query: the enclosing <a> element that was hit, its retained link target, and the concrete element under the point. 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. | |
| struct donner::svg::DonnerController::LinkHit |
Result of a successful hitTestLink query: the enclosing <a> element that was hit, its retained link target, and the concrete element under the point.
| Class Members | ||
|---|---|---|
| SVGGraphicsElement | hitElement | The concrete painted descendant actually under the point (e.g. the nested <rect> inside the <a>). An <a> paints nothing of its own, so this is always a descendant of linkElement, never the <a> element itself. |
| RcString | href | The raw, unresolved link target as authored on the <a> element (href / xlink:href), for example "#section", "../other.svg", or "https://example.com/". The embedding application is responsible for resolving this reference against the document base URL and performing any navigation; Donner returns the target verbatim and never navigates itself. |
| SVGAElement | linkElement | The enclosing <a> element whose content was hit. |