pub struct PipeWireDesktopCaptureSourceBuilder { /* private fields */ }Available on Linux only.
Implementations§
Source§impl PipeWireDesktopCaptureSourceBuilder
impl PipeWireDesktopCaptureSourceBuilder
Sourcepub fn set_restore_token<T: Into<ObsString> + Sync + Send>(
self,
restore_token: T,
) -> Self
pub fn set_restore_token<T: Into<ObsString> + Sync + Send>( self, restore_token: T, ) -> Self
Restore token for reconnecting to previous sessions
Sourcepub fn set_show_cursor(self, show_cursor: bool) -> Self
pub fn set_show_cursor(self, show_cursor: bool) -> Self
Whether to show cursor (for screen capture)
Trait Implementations§
Source§impl ObsObjectBuilder for PipeWireDesktopCaptureSourceBuilder
impl ObsObjectBuilder for PipeWireDesktopCaptureSourceBuilder
fn new<T: Into<ObsString> + Send + Sync>( name: T, runtime: ObsRuntime, ) -> Result<Self, ObsError>
fn runtime(&self) -> &ObsRuntime
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 object_build(self) -> Result<ObjectInfo, ObsError>
Source§impl ObsSourceBuilder for PipeWireDesktopCaptureSourceBuilder
impl ObsSourceBuilder for PipeWireDesktopCaptureSourceBuilder
type T = ObsPipeWireSourceRef
fn build(self) -> Result<Self::T, ObsError>where
Self: Sized,
§fn add_to_scene(
self,
scene: &mut ObsSceneRef,
) -> Result<ObsSceneItemRef<Self::T>, ObsError>where
Self: Sized,
fn add_to_scene(
self,
scene: &mut ObsSceneRef,
) -> Result<ObsSceneItemRef<Self::T>, ObsError>where
Self: Sized,
Both items are returned: the source and the scene item it was added as.
You can safely drop these items, they are stored within the scene if you don’t need them.
Auto Trait Implementations§
impl Freeze for PipeWireDesktopCaptureSourceBuilder
impl !RefUnwindSafe for PipeWireDesktopCaptureSourceBuilder
impl Send for PipeWireDesktopCaptureSourceBuilder
impl Sync for PipeWireDesktopCaptureSourceBuilder
impl Unpin for PipeWireDesktopCaptureSourceBuilder
impl UnsafeUnpin for PipeWireDesktopCaptureSourceBuilder
impl !UnwindSafe for PipeWireDesktopCaptureSourceBuilder
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