Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::DonnerController::HitTestSnapshot Class Reference

Immutable hit geometry for one rendered document state. No live layout access during queries. More...

#include "donner/svg/DonnerController.h"

Public Member Functions

std::optional< SVGGraphicsElement > findIntersecting (const Vector2d &point) const
 Find the frontmost hit in the captured document geometry.
bool complete () const
 False when capture exceeded its resource budget; queries then fail closed.

Friends

class DonnerController

Detailed Description

Immutable hit geometry for one rendered document state. No live layout access during queries.

Member Function Documentation

◆ findIntersecting()

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

Find the frontmost hit in the captured document geometry.

Parameters
pointPoint in document coordinates.
Returns
The frontmost hit target at point, resolved as for DonnerController::findIntersecting, or std::nullopt when nothing is hit or the capture is incomplete.

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