pub struct MonitorCaptureSourceUpdater<'a> { /* private fields */ }
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.
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
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>
type ToUpdate = ObsSourceRef
fn create_update<'async_trait>(
runtime: ObsRuntime,
updatable: &'a mut Self::ToUpdate,
) -> Pin<Box<dyn Future<Output = Result<Self, ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn get_settings(&self) -> &ObsData
fn get_settings_updater(&mut self) -> &mut ObsDataUpdater
fn update<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
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