Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
DonnerController.h File Reference
#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 dependency graph for DonnerController.h:
This graph shows which files directly or indirectly include this file:

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.

Class Documentation

◆ donner::svg::DonnerController::LinkHit

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.