pub struct WindowCaptureSourceUpdater<'a> { /* private fields */ }Available on Windows only.
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_priority(self, priority: ObsWindowPriority) -> Self
pub fn set_priority(self, priority: ObsWindowPriority) -> Self
Sourcepub fn set_window_raw<T: Into<ObsString> + Sync + Send>(
self,
window_raw: T,
) -> Self
pub fn set_window_raw<T: Into<ObsString> + Sync + Send>( self, window_raw: T, ) -> 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<Sendable<WindowInfo>>>
pub fn get_windows(mode: WindowSearchMode) -> Result<Vec<Sendable<WindowInfo>>>
Gets a list of windows that can be captured by this source.
Sourcepub fn set_window(self, window: &Sendable<WindowInfo>) -> Self
pub fn set_window(self, window: &Sendable<WindowInfo>) -> Self
Source§impl<'a> WindowCaptureSourceUpdater<'a>
impl<'a> WindowCaptureSourceUpdater<'a>
pub fn set_capture_method(self, method: ObsWindowCaptureMethod) -> Self
Trait Implementations§
Source§impl<'a> ObsObjectUpdater<'a> for WindowCaptureSourceUpdater<'a>
impl<'a> ObsObjectUpdater<'a> for WindowCaptureSourceUpdater<'a>
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