pub struct WindowCaptureSourceBuilder { /* private fields */ }
Expand description
Provides a easy to use builder for the window capture source.
Implementations§
Source§impl WindowCaptureSourceBuilder
impl WindowCaptureSourceBuilder
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 WindowCaptureSourceBuilder
impl WindowCaptureSourceBuilder
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 Debug for WindowCaptureSourceBuilder
impl Debug for WindowCaptureSourceBuilder
Source§impl ObsObjectBuilder for WindowCaptureSourceBuilder
impl ObsObjectBuilder for WindowCaptureSourceBuilder
fn new<'async_trait, T>( name: T, runtime: ObsRuntime, ) -> Pin<Box<dyn Future<Output = Result<Self, ObsError>> + Send + 'async_trait>>
fn get_settings(&self) -> &ObsData
fn get_settings_updater(&mut self) -> &mut ObsDataUpdater
fn get_hotkeys(&self) -> &ObsData
fn get_hotkeys_updater(&mut self) -> &mut ObsDataUpdater
fn build<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<ObjectInfo, ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
Source§impl ObsSourceBuilder for WindowCaptureSourceBuilder
impl ObsSourceBuilder for WindowCaptureSourceBuilder
fn add_to_scene<'a, 'async_trait>( self, scene: &'a mut ObsSceneRef, ) -> Pin<Box<dyn Future<Output = Result<ObsSourceRef, ObsError>> + Send + 'async_trait>>
Auto Trait Implementations§
impl Freeze for WindowCaptureSourceBuilder
impl !RefUnwindSafe for WindowCaptureSourceBuilder
impl Send for WindowCaptureSourceBuilder
impl Sync for WindowCaptureSourceBuilder
impl Unpin for WindowCaptureSourceBuilder
impl !UnwindSafe for WindowCaptureSourceBuilder
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