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>>>
pub fn get_monitors() -> Result<Vec<Sendable<DisplayInfo>>>
Gets all available monitors
pub fn set_monitor(self, monitor: &Sendable<DisplayInfo>) -> Self
pub fn set_capture_audio(self, capture_audio: bool) -> Result<Self, String>
Source§impl<'a> MonitorCaptureSourceUpdater<'a>
impl<'a> MonitorCaptureSourceUpdater<'a>
pub fn set_capture_method(self, method: ObsDisplayCaptureMethod) -> Self
Trait Implementations§
Source§impl<'a> ObsObjectUpdater<'a> for MonitorCaptureSourceUpdater<'a>
impl<'a> ObsObjectUpdater<'a> for MonitorCaptureSourceUpdater<'a>
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> !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