Skip to main content

Crate ferroui_designer_core

Crate ferroui_designer_core 

Source
Expand description

Portable, source-preserving XAML editing for FerroUI designers.

Document is the transaction boundary shared by source editors, visual tools, collaboration adapters and automation. It retains authored text when it is temporarily invalid; Document::ast and Document::valid_source remain the last validated snapshot. Visual edits refuse to overwrite an invalid buffer.

The syntax model preserves comments, CDATA, namespace declarations, attribute quotes and all unrelated bytes. Node identifiers survive edits and history; named elements are reconciled when source is replaced. No rendering platform, dispatcher or runtime loader is required.

Structs§

Ast
Lossless syntax index. Serialization is the owning document’s source string, rather than a pretty printer that would erase syntax trivia.
Attribute
ChangeSet
Diagnostic
Document
An owned source buffer with a last-valid syntax snapshot and bounded history. Runtime acceptance is deliberately separate: the host may keep an older live tree when compilation fails, while authored and syntactically valid XAML stays available for correction.
MarkupArgument
MarkupExtension
Node
SourceSpan
Half-open UTF-8 byte range into the corresponding source snapshot.
SourceUpdate
TextPatch
Patch positions are UTF-8 bytes in the previous source snapshot.
Transaction

Enums§

DesignerError
Edit
Commands are evaluated against a private candidate, then committed once. Consecutive attribute edits are validated together, allowing a property and its namespace declaration in either order. Other commands observe preceding commands. Element-child indices exclude text, whitespace and comments. Move indices refer to the destination list after removing the moving node.
MarkupValue
A decoded XAML attribute value. The containing syntax attribute also retains its original source span, so inspection never rewrites its lexical spelling.
NodeKind

Type Aliases§

NodeId
Stable document-local identity. IDs are never reused, including after undo.