pub struct MonitorCaptureSourceUpdater<'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> MonitorCaptureSourceUpdater<'a>
impl<'a> MonitorCaptureSourceUpdater<'a>
pub fn set_monitor_id_raw<T: Into<ObsString> + Sync + Send>( self, monitor_id_raw: T, ) -> Self
Sourcepub fn set_capture_cursor(self, capture_cursor: bool) -> Self
pub fn set_capture_cursor(self, capture_cursor: bool) -> Self
Sets whether the cursor should be captured.
Sourcepub fn set_compatibility(self, compatibility: bool) -> Self
pub fn set_compatibility(self, compatibility: bool) -> Self
Compatibility mode for the monitor capture source.
Sourcepub fn set_force_sdr(self, force_sdr: bool) -> Self
pub fn set_force_sdr(self, force_sdr: bool) -> Self
If the capture should force SDR
Source§impl<'a> MonitorCaptureSourceUpdater<'a>
impl<'a> MonitorCaptureSourceUpdater<'a>
Sourcepub fn get_monitors() -> Result<Vec<Sendable<DisplayInfo>>, ObsSimpleError>
pub fn get_monitors() -> Result<Vec<Sendable<DisplayInfo>>, ObsSimpleError>
Gets all available monitors
pub fn set_monitor(self, monitor: &Sendable<DisplayInfo>) -> Self
Source§impl<'a> MonitorCaptureSourceUpdater<'a>
impl<'a> MonitorCaptureSourceUpdater<'a>
pub fn set_capture_method( self, method: ObsDisplayCaptureMethod, ) -> Result<Self, ObsError>
Trait Implementations§
Source§impl<'a> ObsObjectUpdater<'a, *mut obs_source> for MonitorCaptureSourceUpdater<'a>
impl<'a> ObsObjectUpdater<'a, *mut obs_source> for MonitorCaptureSourceUpdater<'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 MonitorCaptureSourceUpdater<'a>
impl<'a> !RefUnwindSafe for MonitorCaptureSourceUpdater<'a>
impl<'a> Send for MonitorCaptureSourceUpdater<'a>
impl<'a> Sync for MonitorCaptureSourceUpdater<'a>
impl<'a> Unpin for MonitorCaptureSourceUpdater<'a>
impl<'a> UnsafeUnpin for MonitorCaptureSourceUpdater<'a>
impl<'a> !UnwindSafe for MonitorCaptureSourceUpdater<'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