Struct crabgrab::capturable_content::CapturableWindow
source · pub struct CapturableWindow { /* private fields */ }
Expand description
Represents a capturable application window
Implementations§
source§impl CapturableWindow
impl CapturableWindow
sourcepub fn application(&self) -> CapturableApplication
pub fn application(&self) -> CapturableApplication
Gets the application that owns this window
sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Checks whether an application is visible (on-screen, not minimized)
Trait Implementations§
source§impl Clone for CapturableWindow
impl Clone for CapturableWindow
source§fn clone(&self) -> CapturableWindow
fn clone(&self) -> CapturableWindow
Returns a copy 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 CapturableWindow
impl Debug for CapturableWindow
source§impl Hash for CapturableWindow
impl Hash for CapturableWindow
source§impl MacosCapturableWindowExt for CapturableWindow
impl MacosCapturableWindowExt for CapturableWindow
source§fn get_window_layer(&self) -> Result<i32, CapturableContentError>
fn get_window_layer(&self) -> Result<i32, CapturableContentError>
Get the window layer of this window
source§fn get_window_level(&self) -> Result<MacosWindowLevel, CapturableContentError>
fn get_window_level(&self) -> Result<MacosWindowLevel, CapturableContentError>
Get the window level of this window
source§fn get_window_id(&self) -> u32
fn get_window_id(&self) -> u32
Get the native window id for this capturable window.
This is the
CGWindowID
for this window.source§fn from_window_id(
window_id: u32
) -> impl Future<Output = Result<CapturableWindow, CapturableContentError>>
fn from_window_id( window_id: u32 ) -> impl Future<Output = Result<CapturableWindow, CapturableContentError>>
Try and convert the given CGWindowID to a capturable window.
source§impl PartialEq for CapturableWindow
impl PartialEq for CapturableWindow
source§fn eq(&self, other: &CapturableWindow) -> bool
fn eq(&self, other: &CapturableWindow) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CapturableWindow
impl Send for CapturableWindow
impl StructuralPartialEq for CapturableWindow
impl Sync for CapturableWindow
Auto Trait Implementations§
impl Freeze for CapturableWindow
impl !RefUnwindSafe for CapturableWindow
impl Unpin for CapturableWindow
impl !UnwindSafe for CapturableWindow
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.