Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
DonnerController.h File Reference
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...
class  donner::svg::DonnerController::HitTestSnapshot
 Immutable hit geometry for one rendered document state. No live layout access during queries. 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>), or the <use> element whose content was hit. 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.