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

Revision-bound, DOM-shaped move prepared from a source drag target. More...

#include "donner/editor/SourceStructuralMove.h"

Public Attributes

svg::SVGElement element
 Element to move within the document.
svg::SVGElement parent
 Destination parent for the moved element.
std::optional< svg::SVGElement > referenceElement
 Insert before this sibling; an empty value appends to the parent.
SourceByteRange elementRange
 Authored byte range to move in the XML source.
std::size_t insertionOffset = 0
 Destination byte offset in the original source.
std::uint64_t expectedDocumentGeneration = 0
 Document generation captured when the move was planned.
std::uint64_t expectedFrameVersion = 0
 Document frame version captured when the move was planned.
std::uint64_t expectedSourceHash = 0
 Source hash used to reject a plan made against different text.

Detailed Description

Revision-bound, DOM-shaped move prepared from a source drag target.

Member Data Documentation

◆ element

svg::SVGElement donner::editor::SourceStructuralMovePlan::element

Element to move within the document.

◆ elementRange

SourceByteRange donner::editor::SourceStructuralMovePlan::elementRange

Authored byte range to move in the XML source.

◆ expectedDocumentGeneration

std::uint64_t donner::editor::SourceStructuralMovePlan::expectedDocumentGeneration = 0

Document generation captured when the move was planned.

◆ expectedFrameVersion

std::uint64_t donner::editor::SourceStructuralMovePlan::expectedFrameVersion = 0

Document frame version captured when the move was planned.

◆ expectedSourceHash

std::uint64_t donner::editor::SourceStructuralMovePlan::expectedSourceHash = 0

Source hash used to reject a plan made against different text.

◆ insertionOffset

std::size_t donner::editor::SourceStructuralMovePlan::insertionOffset = 0

Destination byte offset in the original source.

◆ parent

svg::SVGElement donner::editor::SourceStructuralMovePlan::parent

Destination parent for the moved element.

◆ referenceElement

std::optional<svg::SVGElement> donner::editor::SourceStructuralMovePlan::referenceElement

Insert before this sibling; an empty value appends to the parent.


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