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
donner::editor::repro::ReproFrame Struct Reference

One frame's snapshot: continuous input state + any discrete events that fired during the frame. More...

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

Public Attributes

std::uint64_t index = 0
 Monotonic frame index starting at 0.
double timestampSeconds = 0.0
 Seconds since the recording started.
double deltaMs = 0.0
 ImGui delta-time value that the frame advanced by, in milliseconds. Replayer uses this to set ImGuiIO::DeltaTime.
double mouseX = 0.0
 Current mouse position in logical window coordinates.
double mouseY = 0.0
std::optional< double > mouseDocX
 Current mouse position in SVG-document coordinates.
std::optional< double > mouseDocY
int mouseButtonMask = 0
 Bitmask of currently-held mouse buttons. Bit N set means button N down.
int modifiers = 0
 Current modifier bitmask (see ReproEvent::modifiers).
std::optional< ReproViewportviewport
 Viewport snapshot captured for this frame.
std::vector< ReproActionactions
 Semantic editor actions applied at the start of this frame.
std::vector< ReproEventevents
 Discrete events that fired during this frame, in arrival order.

Detailed Description

One frame's snapshot: continuous input state + any discrete events that fired during the frame.

Member Data Documentation

◆ actions

std::vector<ReproAction> donner::editor::repro::ReproFrame::actions

Semantic editor actions applied at the start of this frame.

◆ deltaMs

double donner::editor::repro::ReproFrame::deltaMs = 0.0

ImGui delta-time value that the frame advanced by, in milliseconds. Replayer uses this to set ImGuiIO::DeltaTime.

◆ events

std::vector<ReproEvent> donner::editor::repro::ReproFrame::events

Discrete events that fired during this frame, in arrival order.

◆ index

std::uint64_t donner::editor::repro::ReproFrame::index = 0

Monotonic frame index starting at 0.

◆ modifiers

int donner::editor::repro::ReproFrame::modifiers = 0

Current modifier bitmask (see ReproEvent::modifiers).

◆ mouseButtonMask

int donner::editor::repro::ReproFrame::mouseButtonMask = 0

Bitmask of currently-held mouse buttons. Bit N set means button N down.

◆ mouseDocX

std::optional<double> donner::editor::repro::ReproFrame::mouseDocX

Current mouse position in SVG-document coordinates.

◆ mouseDocY

std::optional<double> donner::editor::repro::ReproFrame::mouseDocY

◆ mouseX

double donner::editor::repro::ReproFrame::mouseX = 0.0

Current mouse position in logical window coordinates.

◆ mouseY

double donner::editor::repro::ReproFrame::mouseY = 0.0

◆ timestampSeconds

double donner::editor::repro::ReproFrame::timestampSeconds = 0.0

Seconds since the recording started.

◆ viewport

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

Viewport snapshot captured for this frame.


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