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_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>>, ObsSimpleError>
pub fn get_windows( mode: WindowSearchMode, ) -> Result<Vec<Sendable<WindowInfo>>, ObsSimpleError>
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
Source§impl<'a> WindowCaptureSourceUpdater<'a>
impl<'a> WindowCaptureSourceUpdater<'a>
pub fn set_capture_audio( self, capture_audio: bool, ) -> Result<Self, ObsSimpleError>
Trait Implementations§
Source§impl<'a> ObsObjectUpdater<'a, *mut obs_source> for WindowCaptureSourceUpdater<'a>
impl<'a> ObsObjectUpdater<'a, *mut obs_source> for WindowCaptureSourceUpdater<'a>
type ToUpdate = ObsSourceRef
fn create_update( runtime: ObsRuntime, updatable: &'a mut Self::ToUpdate, ) -> Result<Self, ObsError>
fn get_settings(&self) -> &ObsData
fn runtime(&self) -> &ObsRuntime
fn get_settings_updater(&mut self) -> &mut ObsDataUpdater
fn update(self) -> Result<(), ObsError>
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> UnsafeUnpin 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