#[non_exhaustive]pub struct Window {
pub id: String,
pub title: String,
pub app: String,
pub width: u32,
pub height: u32,
}Expand description
A window reported by windows.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringOpaque identifier: pass to Source::Window.
title: StringThe window title, empty if it has none.
app: StringThe name of the application owning the window.
width: u32Width in platform window coordinates: points on macOS and pixels on Windows and X11.
height: u32Height in platform window coordinates: points on macOS and pixels on Windows and X11.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Window
impl UnwindSafe for Window
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