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::EditorShellDocumentReplayInput Struct Reference

Document-space replay input consumed by the editor shell test harness. More...

#include "donner/editor/EditorShell.h"

Public Attributes

Vector2d documentPoint = Vector2d::Zero()
 Current pointer position in SVG document coordinates.
bool leftMouseDown = false
 True while the left mouse button is held.
bool leftMousePressed = false
 True on the frame where the left mouse button was pressed.
bool leftMouseReleased = false
 True on the frame where the left mouse button was released.
MouseModifiers modifiers
 Mouse modifiers to pass to the active canvas tool.
std::optional< std::string > hitElementId
 Optional element id captured by the replay hit-test checkpoint.

Detailed Description

Document-space replay input consumed by the editor shell test harness.

Member Data Documentation

◆ documentPoint

Vector2d donner::editor::EditorShellDocumentReplayInput::documentPoint = Vector2d::Zero()

Current pointer position in SVG document coordinates.

◆ hitElementId

std::optional<std::string> donner::editor::EditorShellDocumentReplayInput::hitElementId

Optional element id captured by the replay hit-test checkpoint.

◆ leftMouseDown

bool donner::editor::EditorShellDocumentReplayInput::leftMouseDown = false

True while the left mouse button is held.

◆ leftMousePressed

bool donner::editor::EditorShellDocumentReplayInput::leftMousePressed = false

True on the frame where the left mouse button was pressed.

◆ leftMouseReleased

bool donner::editor::EditorShellDocumentReplayInput::leftMouseReleased = false

True on the frame where the left mouse button was released.

◆ modifiers

MouseModifiers donner::editor::EditorShellDocumentReplayInput::modifiers

Mouse modifiers to pass to the active canvas tool.


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