pub struct WindowCaptureSourceUpdater<'a> { /* private fields */ }
Expand description
Used to update the source this updater was created from. For more details look at docs for the corresponding builder.
Implementations§
Source§impl<'a> WindowCaptureSourceUpdater<'a>
impl<'a> WindowCaptureSourceUpdater<'a>
Sourcepub fn set_capture_method(self, capture_method: ObsWindowCaptureMethod) -> Self
pub fn set_capture_method(self, capture_method: ObsWindowCaptureMethod) -> Self
Sets the capture method for the window capture
Sourcepub fn set_priority(self, priority: ObsWindowPriority) -> Self
pub fn set_priority(self, priority: ObsWindowPriority) -> Self
Sourcepub fn set_cursor(self, cursor: bool) -> Self
pub fn set_cursor(self, cursor: bool) -> Self
Sets whether the cursor should be captured
Sourcepub fn set_capture_audio(self, capture_audio: bool) -> Self
pub fn set_capture_audio(self, capture_audio: bool) -> Self
Whether to capture audio from window source (BETA)
When enabled, creates an “Application Audio Capture” source that automatically updates to the currently captured window/application.
Note that if Desktop Audio is configured, this could result in doubled audio.
Sourcepub fn set_force_sdr(self, force_sdr: bool) -> Self
pub fn set_force_sdr(self, force_sdr: bool) -> Self
Whether to force SDR color space for the window capture source.
Sourcepub fn set_client_area(self, client_area: bool) -> Self
pub fn set_client_area(self, client_area: bool) -> Self
Whether to capture the window’s client area only (without borders, title bar and the main menu bar).
pub fn set_compatibility(self, compatibility: bool) -> Self
Source§impl<'a> WindowCaptureSourceUpdater<'a>
impl<'a> WindowCaptureSourceUpdater<'a>
Sourcepub fn get_windows(mode: WindowSearchMode) -> Result<Vec<WindowInfo>>
pub fn get_windows(mode: WindowSearchMode) -> Result<Vec<WindowInfo>>
Gets a list of windows that can be captured by this source.
Sourcepub fn set_window(self, window: &WindowInfo) -> Self
pub fn set_window(self, window: &WindowInfo) -> Self
Trait Implementations§
Source§impl<'a> ObsObjectUpdater<'a> for WindowCaptureSourceUpdater<'a>
impl<'a> ObsObjectUpdater<'a> for WindowCaptureSourceUpdater<'a>
type ToUpdate = ObsSourceRef
fn create_update<'async_trait>(
runtime: ObsRuntime,
updatable: &'a mut Self::ToUpdate,
) -> Pin<Box<dyn Future<Output = Result<Self, ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn get_settings(&self) -> &ObsData
fn get_settings_updater(&mut self) -> &mut ObsDataUpdater
fn update<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
Auto Trait Implementations§
impl<'a> Freeze for WindowCaptureSourceUpdater<'a>
impl<'a> !RefUnwindSafe for WindowCaptureSourceUpdater<'a>
impl<'a> Send for WindowCaptureSourceUpdater<'a>
impl<'a> Sync for WindowCaptureSourceUpdater<'a>
impl<'a> Unpin for WindowCaptureSourceUpdater<'a>
impl<'a> !UnwindSafe for WindowCaptureSourceUpdater<'a>
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