pub struct Window {
pub id: u32,
pub kind: WindowType,
pub layer: i32,
pub package: Option<u32>,
pub title: Option<String>,
pub bounds: Bounds,
pub flags: WindowFlags,
pub root: Option<Node>,
pub emits_events: Option<bool>,
pub owner: Option<u32>,
pub modal: bool,
}Expand description
One window and its node tree.
Fields§
§id: u32Platform window id; events name windows by it.
kind: WindowType§layer: i32Z-order; higher is closer to the user.
package: Option<u32>String-table index of the owning package name.
title: Option<String>§bounds: Bounds§flags: WindowFlags§root: Option<Node>The root node; absent when the platform returned none.
emits_events: Option<bool>Whether the window’s toolkit sends change events for its content.
Some(false) marks a window whose changes are only seen by reading
it again (Jetpack Compose sends no events to a UI automation client);
None when the agent cannot tell.
owner: Option<u32>String-table index of the system process that owns the window, such
as com.android.systemui for the status bar or the permission
controller for a permission prompt; absent when the application under
automation owns it.
modal: boolThe window is a modal, such as a dialog, that keeps the user from the windows below it until it is dismissed; the wire omits it when false.