pub struct NodeData {Show 13 fields
pub role: Role,
pub name: Option<String>,
pub value: Option<String>,
pub description: Option<String>,
pub bounds: Option<Rect>,
pub actions: Vec<Action>,
pub states: StateSet,
pub numeric_value: Option<f64>,
pub min_value: Option<f64>,
pub max_value: Option<f64>,
pub stable_id: Option<String>,
pub pid: Option<u32>,
pub raw: RawPlatformData,
/* private fields */
}Expand description
The raw data for a single element in an accessibility tree snapshot.
This is the underlying data struct. Most consumers should use Node,
which wraps NodeData with snapshot navigation (parent/children).
NodeData is used directly by provider implementors building trees.
Fields§
§role: RoleElement role
name: Option<String>Human-readable name (title, label)
value: Option<String>Current value (text content, slider position, etc.)
description: Option<String>Supplementary description (tooltip, help text)
bounds: Option<Rect>Bounding rectangle in screen pixels
actions: Vec<Action>Available actions
states: StateSetCurrent state flags
numeric_value: Option<f64>Numeric value for range controls (sliders, progress bars, spinners).
min_value: Option<f64>Minimum value for range controls.
max_value: Option<f64>Maximum value for range controls.
stable_id: Option<String>Platform-assigned stable identifier for cross-snapshot correlation.
- macOS:
AXIdentifier - Windows:
AutomationId - Linux: D-Bus
object_path
Not all elements have one.
pid: Option<u32>Process ID of the application that owns this node.
raw: RawPlatformDataPlatform-specific raw data