pub struct AsyncSCShareableContentOptions { /* private fields */ }Expand description
Options for async shareable content retrieval
Implementations§
Sourcepub fn with_exclude_desktop_windows(self, exclude: bool) -> Self
pub fn with_exclude_desktop_windows(self, exclude: bool) -> Self
Exclude desktop windows from the shareable content
Sourcepub fn with_on_screen_windows_only(self, on_screen_only: bool) -> Self
pub fn with_on_screen_windows_only(self, on_screen_only: bool) -> Self
Include only on-screen windows in the shareable content
Sourcepub fn get(self) -> AsyncShareableContentFuture ⓘ
pub fn get(self) -> AsyncShareableContentFuture ⓘ
Asynchronously get the shareable content with these options
Sourcepub fn below_window(
self,
reference_window: &SCWindow,
) -> AsyncShareableContentFuture ⓘ
pub fn below_window( self, reference_window: &SCWindow, ) -> AsyncShareableContentFuture ⓘ
Asynchronously get shareable content with only windows below a reference window
This returns windows that are stacked below the specified reference window in the window layering order.
§Arguments
reference_window- The window to use as the reference point
Sourcepub fn above_window(
self,
reference_window: &SCWindow,
) -> AsyncShareableContentFuture ⓘ
pub fn above_window( self, reference_window: &SCWindow, ) -> AsyncShareableContentFuture ⓘ
Asynchronously get shareable content with only windows above a reference window
This returns windows that are stacked above the specified reference window in the window layering order.
§Arguments
reference_window- The window to use as the reference point
Trait Implementations§
Source§fn clone(&self) -> AsyncSCShareableContentOptions
fn clone(&self) -> AsyncSCShareableContentOptions
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§fn default() -> AsyncSCShareableContentOptions
fn default() -> AsyncSCShareableContentOptions
Returns the “default value” for a type. Read more
Source§fn eq(&self, other: &AsyncSCShareableContentOptions) -> bool
fn eq(&self, other: &AsyncSCShareableContentOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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