pub struct Node {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,
}Expand description
One node.
Fields§
§id: NodeIdIts index in this tree.
role: RoleIts role.
name: Option<String>Its accessible name, as reported.
name_source: NameSourceWhere 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: StatesIts states.
relations: RelationsIts relations.
set: SetInfoLevel and position in its set.
test_id: Option<String>Its test id.
widget_id: Option<WidgetId>Its widget id.
kind: KindWhat reported it.
sources: SourceSetWhich 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: RectWindow 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: LayerIts overlay layer.
window: WindowIdIts window.
order: u32Operation 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: boolAn unnamed generic, transparent to queries and YAML.
path: NodePathIts stable path.