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 points (logical, not pixels).
height: u32Height in points (logical, not pixels).
Trait Implementations§
Source§impl Clone for WindowInfo
impl Clone for WindowInfo
Source§fn clone(&self) -> WindowInfo
fn clone(&self) -> WindowInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowInfo
impl Debug for WindowInfo
Source§impl<'de> Deserialize<'de> for WindowInfo
impl<'de> Deserialize<'de> for WindowInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WindowInfo
impl RefUnwindSafe for WindowInfo
impl Send for WindowInfo
impl Sync for WindowInfo
impl Unpin for WindowInfo
impl UnsafeUnpin for WindowInfo
impl UnwindSafe for WindowInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more