Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::repro::ReproAction Struct Reference

One semantic editor action that fired within a frame. MCP-generated repros use actions for deterministic operations that are not raw pointer input, such as selecting the Pen tool or changing active paint. More...

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

Public Types

enum class  Kind {
  SetActiveTool ,
  SetStyleProperty ,
  CommitPenPath
}
 Semantic action types supported by the replay format.

Public Attributes

Kind kind = Kind::SetActiveTool
 Action kind.
std::string tool
 Tool id for the ReproAction::Kind SetActiveTool action, e.g. "select" or "pen".
std::string propertyName
 CSS property name for the ReproAction::Kind SetStyleProperty action, e.g. "fill".
std::string propertyValue
 CSS property value for the ReproAction::Kind SetStyleProperty action, e.g. "#ff0000".

Friends

bool operator== (const ReproAction &lhs, const ReproAction &rhs)=default
 Compare two recorded semantic actions.

Detailed Description

One semantic editor action that fired within a frame. MCP-generated repros use actions for deterministic operations that are not raw pointer input, such as selecting the Pen tool or changing active paint.

◆ operator==

bool operator== ( const ReproAction & lhs,
const ReproAction & rhs )
friend

Compare two recorded semantic actions.

Parameters
lhsFirst action.
rhsSecond action.
Returns
True when the kinds and payloads match.

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