Expand description
The semantic tree icedwright’s locators, actions, audits, snapshots and inspector read.
A live app records a RawTree of operation calls and
annotations; infer fuses it into a SemanticTree of roles, names, states, relations
and geometry. NodePath names a node across snapshots, diff compares two, and
yaml writes and reads the snapshot format. TreeBuilder builds trees by hand for
tests.
Modules§
- yaml
- The semantic tree as YAML: one line per node with its role, quoted name, attributes in brackets and a value or text after a colon. Unnamed generics are hoisted away and owned subtrees print under their owner.
Structs§
- Node
- One node.
- Node
Builder - Builds one annotated node and its children.
- Node
Change - A node present in both snapshots whose fields differ.
- NodeId
- A node’s index in one tree. Never compare ids from different snapshots; use
NodePath. - Node
Path - A node’s name in a form that finds it again in the next frame or the next run.
- Relations
- Resolved relations to other nodes in the same tree.
- Scroll
- A node’s own scroll state.
- Scroll
Ancestor - A scrollable enclosing a node.
- Semantic
Tree - The semantic tree of every window.
- SetInfo
- Level, position in its set and set size, from annotations.
- Source
Set - Which sources contributed a node’s non-state fields.
- States
- A node’s states.
Nonemeans no source could say; derived states are always known. - Text
Geometry - Caret positions in a text node, from annotations.
- Tree
Builder - Builds a tree of one or more windows.
- Tree
Diff - What changed between two snapshots, keyed by node path. Ignored generics are left out.
- Window
Id - A window, as the recorder’s caller names it. Stable for the window’s life.
Enums§
- Checked
- The checked state of a checkable role.
- Cursor
Seen - The kind of mouse cursor a widget was handed for its last mouse event this frame.
- Error
- YAML and path parse errors. Folded into
icedwright::ErrorwithFrom. - Kind
- What reported a node, for
of_typeand the inspector. - Layer
- The overlay layer a node is in.
- Name
Source - Where a node’s accessible name came from.
- Operation
Kind - The operation callback an inferred node came from.
- Segment
- One step of a path.
- State
Name - A state a semantic node can carry.
- State
Source - Which source set a state.
- State
Value - What a source or a selector says about one state.
- Tree
Warning - Something worth knowing about how a tree was built. Audits report these.
- Value
- A value a node reports.
- Widget
Id - An
iced_core::widget::Id, read from itsDebugform.
Functions§
- diff
- Nodes added, removed and changed between two snapshots.
- infer
- Builds the semantic tree from a recording. Linear in the number of raw nodes.
- named_
from_ content - Whether a role takes its accessible name from the text of its descendants.
Type Aliases§
- Semantic
Node - The name other parts of icedwright use for a node.