Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::svg::DonnerController Class Reference

Allows querying and controlling the Donner scene, beyond what the DOM provides. More...

#include "donner/svg/DonnerController.h"

Public Member Functions

 DonnerController (SVGDocument document)
 Constructor to create the controller from a given SVGDocument.
 
std::optional< SVGGeometryElementfindIntersecting (const Vector2d &point)
 Finds the first element that intersects the given point.
 

Detailed Description

Allows querying and controlling the Donner scene, beyond what the DOM provides.

Constructor & Destructor Documentation

◆ DonnerController()

donner::svg::DonnerController::DonnerController ( SVGDocument document)
explicit

Constructor to create the controller from a given SVGDocument.

Allows querying and controlling the SVG contents beyond what the DOM provides.

Member Function Documentation

◆ findIntersecting()

std::optional< SVGGeometryElement > donner::svg::DonnerController::findIntersecting ( const Vector2d & point)

Finds the first element that intersects the given point.

Parameters
pointPointer position to find the intersecting element for

The documentation for this class was generated from the following files: