pub struct WindowInfo {
pub id: String,
pub title: String,
pub focused: bool,
pub main: bool,
pub visible: bool,
pub width: u32,
pub height: u32,
}Expand description
Description of a top-level window belonging to the host app.
Returned by AppScreenshot::list_app_windows. The id is opaque
platform-specific (macOS NSWindow.windowNumber, Windows HWND, etc.) and
is the value to pass back to AppScreenshot::take_app_screenshot to
target that specific window.
Fields§
§id: StringOpaque platform-specific identifier (stringified for portability).
title: StringWindow title (may be empty if the platform / app does not set one).
focused: booltrue if this window currently has keyboard focus / is “key”.
main: booltrue if this window is the app’s main window (macOS concept).
visible: booltrue if the window is currently on-screen / not minimized.
width: u32Width in the platform’s window-content coordinate unit (points on Apple platforms, client pixels on Windows).
height: u32Height in the platform’s window-content coordinate unit.
Trait Implementations§
Source§impl Clone for WindowInfo
impl Clone for WindowInfo
Source§fn clone(&self) -> WindowInfo
fn clone(&self) -> WindowInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more