Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::LayersLockedRejectionFlash Struct Reference

Current "this element is locked, you can't select it" flash fed into the Layers panel so the rejected element's row flashes red in sync with the canvas outline flash. Mirrors OverlayRenderer.h's LockedRejectionFlashInput but is kept local so LayersPanel stays decoupled from SelectTool / OverlayRenderer; EditorShell maps the tool's flash into this struct. More...

#include "donner/editor/LayersPanel.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 row-highlight alpha at draw time.

Detailed Description

Current "this element is locked, you can't select it" flash fed into the Layers panel so the rejected element's row flashes red in sync with the canvas outline flash. Mirrors OverlayRenderer.h's LockedRejectionFlashInput but is kept local so LayersPanel stays decoupled from SelectTool / OverlayRenderer; EditorShell maps the tool's flash into this struct.

Member Data Documentation

◆ element

svg::SVGElement donner::editor::LayersLockedRejectionFlash::element

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

◆ intensity

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

Fade intensity in (0, 1]; scales the red row-highlight alpha at draw time.


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