Skip to main content

SemanticNode

Type Alias SemanticNode 

Source
pub type SemanticNode = Node;
Expand description

The name other parts of icedwright use for a node.

Aliased Type§

pub struct SemanticNode {
Show 32 fields pub id: NodeId, pub role: Role, pub name: Option<String>, pub name_source: NameSource, pub description: Option<String>, pub value: Option<Value>, pub placeholder: Option<String>, pub tooltip: Option<String>, pub states: States, pub relations: Relations, pub set: SetInfo, pub test_id: Option<String>, pub widget_id: Option<WidgetId>, pub kind: Kind, pub sources: SourceSet, pub props: BTreeMap<String, String>, pub text_size: Option<f32>, pub text_geometry: Option<TextGeometry>, pub cursor_seen: Option<CursorSeen>, pub bounds: Rect, pub visible_bounds: Option<Rect>, pub scroll: Option<Scroll>, pub scroll_ancestors: Vec<ScrollAncestor>, pub focusable_ordinal: Option<u32>, pub layer: Layer, pub window: WindowId, pub order: u32, pub parent: Option<NodeId>, pub children: Vec<NodeId>, pub raw: Vec<u32>, pub ignored: bool, pub path: NodePath,
}

Fields§

§id: NodeId

Its index in this tree.

§role: Role

Its role.

§name: Option<String>

Its accessible name, as reported.

§name_source: NameSource

Where the name came from.

§description: Option<String>

Its description.

§value: Option<Value>

Its value.

§placeholder: Option<String>

Its placeholder.

§tooltip: Option<String>

Its tooltip.

§states: States

Its states.

§relations: Relations

Its relations.

§set: SetInfo

Level and position in its set.

§test_id: Option<String>

Its test id.

§widget_id: Option<WidgetId>

Its widget id.

§kind: Kind

What reported it.

§sources: SourceSet

Which sources contributed fields.

§props: BTreeMap<String, String>

Component extras, such as a tab’s unsaved.

§text_size: Option<f32>

Text size in logical pixels, from annotations only.

§text_geometry: Option<TextGeometry>

Caret positions, from annotations only.

§cursor_seen: Option<CursorSeen>

The cursor kind handed to it this frame, for annotated nodes.

§bounds: Rect

Window coordinates, scroll translation applied.

§visible_bounds: Option<Rect>

The part not clipped by an enclosing scrollable or the window.

§scroll: Option<Scroll>

Its own scroll state, if it scrolls.

§scroll_ancestors: Vec<ScrollAncestor>

Enclosing scrollables, innermost last.

§focusable_ordinal: Option<u32>

Its position among focusable callbacks across the interface.

§layer: Layer

Its overlay layer.

§window: WindowId

Its window.

§order: u32

Operation order, which is paint order within a layer.

§parent: Option<NodeId>

Its parent in the arena.

§children: Vec<NodeId>

Its children in the arena.

§raw: Vec<u32>

Index path in the raw tree it came from.

§ignored: bool

An unnamed generic, transparent to queries and YAML.

§path: NodePath

Its stable path.