Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::repro::FrameContext Struct Reference

Additional per-frame state that is only available from the live editor, not from ImGui alone. More...

#include "donner/editor/repro/ReproRecorder.h"

Public Attributes

std::optional< ReproViewportviewport
 Viewport snapshot used for this frame's screen→document mapping.
std::optional< std::pair< double, double > > mouseDoc
 Mouse position in SVG-document coordinates.
std::function< std::optional< ReproHit >(double docX, double docY)> hitTester
 Optional mouse-down hit-test callback for diagnostics.

Detailed Description

Additional per-frame state that is only available from the live editor, not from ImGui alone.

Member Data Documentation

◆ hitTester

std::function<std::optional<ReproHit>(double docX, double docY)> donner::editor::repro::FrameContext::hitTester

Optional mouse-down hit-test callback for diagnostics.

◆ mouseDoc

std::optional<std::pair<double, double> > donner::editor::repro::FrameContext::mouseDoc

Mouse position in SVG-document coordinates.

◆ viewport

std::optional<ReproViewport> donner::editor::repro::FrameContext::viewport

Viewport snapshot used for this frame's screen→document mapping.


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