pub struct WindowSnapshot {
pub window_id: u32,
pub window_layer: i32,
pub is_on_screen: bool,
pub is_active: bool,
pub frame: CGRect,
pub title: Option<String>,
pub owning_app_index: Option<usize>,
}Expand description
Plain data describing one window.
Fields§
§window_id: u32§window_layer: i32§is_on_screen: bool§is_active: bool§frame: CGRect§title: Option<String>§owning_app_index: Option<usize>Index into ContentSnapshot::applications, or None if the
window has no owning application or the owner wasn’t returned in
the same snapshot batch.
Trait Implementations§
Source§impl Clone for WindowSnapshot
impl Clone for WindowSnapshot
Source§fn clone(&self) -> WindowSnapshot
fn clone(&self) -> WindowSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 WindowSnapshot
impl Debug for WindowSnapshot
Source§impl PartialEq for WindowSnapshot
impl PartialEq for WindowSnapshot
impl Eq for WindowSnapshot
impl StructuralPartialEq for WindowSnapshot
Auto Trait Implementations§
impl Freeze for WindowSnapshot
impl RefUnwindSafe for WindowSnapshot
impl Send for WindowSnapshot
impl Sync for WindowSnapshot
impl Unpin for WindowSnapshot
impl UnsafeUnpin for WindowSnapshot
impl UnwindSafe for WindowSnapshot
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