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

Locked-rejection flash input for OverlayRenderer::captureChromeSnapshot. Carries the rejected (locked) element whose outline should flash red plus the current fade intensity. Kept as a dedicated struct (rather than a dependency on SelectTool::LockedRejectionFlash) so the overlay renderer stays decoupled from the tool layer. More...

#include "donner/editor/OverlayRenderer.h"

Public Attributes

svg::SVGElement element
 The element whose selection was rejected because it (or an ancestor group) is locked.
float intensity = 0.0f
 Fade intensity in (0, 1]; scales the red stroke's alpha at draw time.

Detailed Description

Locked-rejection flash input for OverlayRenderer::captureChromeSnapshot. Carries the rejected (locked) element whose outline should flash red plus the current fade intensity. Kept as a dedicated struct (rather than a dependency on SelectTool::LockedRejectionFlash) so the overlay renderer stays decoupled from the tool layer.

Member Data Documentation

◆ element

svg::SVGElement donner::editor::LockedRejectionFlashInput::element

The element whose selection was rejected because it (or an ancestor group) is locked.

◆ intensity

float donner::editor::LockedRejectionFlashInput::intensity = 0.0f

Fade intensity in (0, 1]; scales the red stroke's alpha at draw time.


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