pub struct CapturableContentFilter { /* private fields */ }
Expand description
Selects the kind of capturable content to enumerate
Implementations§
source§impl CapturableContentFilter
impl CapturableContentFilter
sourcepub fn new(displays: bool, windows: Option<CapturableWindowFilter>) -> Self
pub fn new(displays: bool, windows: Option<CapturableWindowFilter>) -> Self
Create a new content filter with the given filtering options
sourcepub const ALL_WINDOWS: Self = _
pub const ALL_WINDOWS: Self = _
All capturable windows, but no displays
sourcepub const EVERYTHING: Self = _
pub const EVERYTHING: Self = _
Everything that can be captured
sourcepub const NORMAL_WINDOWS: Self = _
pub const NORMAL_WINDOWS: Self = _
Only normal windows - no modal panels, not the dock on macos, etc.
sourcepub const EVERYTHING_NORMAL: Self = _
pub const EVERYTHING_NORMAL: Self = _
Only normal windows and displays
Trait Implementations§
source§impl Clone for CapturableContentFilter
impl Clone for CapturableContentFilter
source§fn clone(&self) -> CapturableContentFilter
fn clone(&self) -> CapturableContentFilter
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 MacosCapturableContentFilterExt for CapturableContentFilter
impl MacosCapturableContentFilterExt for CapturableContentFilter
source§fn with_window_level_range(
self,
min: Option<MacosWindowLevel>,
max: Option<MacosWindowLevel>
) -> Result<Self, CapturableContentError>
fn with_window_level_range( self, min: Option<MacosWindowLevel>, max: Option<MacosWindowLevel> ) -> Result<Self, CapturableContentError>
Set the range of “window levels” to filter to (inclusive)
source§fn with_exclude_bundle_ids(self, excluded_bundle_ids: &[&str]) -> Self
fn with_exclude_bundle_ids(self, excluded_bundle_ids: &[&str]) -> Self
Exclude windows who’s applications have the provided bundle ids
source§fn with_exclude_window_ids(self, excluded_window_ids: &[u32]) -> Self
fn with_exclude_window_ids(self, excluded_window_ids: &[u32]) -> Self
Exclude windows with the given CGWindowIDs
Auto Trait Implementations§
impl Freeze for CapturableContentFilter
impl RefUnwindSafe for CapturableContentFilter
impl Send for CapturableContentFilter
impl Sync for CapturableContentFilter
impl Unpin for CapturableContentFilter
impl UnwindSafe for CapturableContentFilter
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