pub struct PipeWireWindowCaptureSourceBuilder { /* private fields */ }Available on Linux only.
Implementations§
Source§impl PipeWireWindowCaptureSourceBuilder
impl PipeWireWindowCaptureSourceBuilder
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 PipeWireWindowCaptureSourceBuilder
impl ObsObjectBuilder for PipeWireWindowCaptureSourceBuilder
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 PipeWireWindowCaptureSourceBuilder
impl ObsSourceBuilder for PipeWireWindowCaptureSourceBuilder
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 PipeWireWindowCaptureSourceBuilder
impl !RefUnwindSafe for PipeWireWindowCaptureSourceBuilder
impl Send for PipeWireWindowCaptureSourceBuilder
impl Sync for PipeWireWindowCaptureSourceBuilder
impl Unpin for PipeWireWindowCaptureSourceBuilder
impl UnsafeUnpin for PipeWireWindowCaptureSourceBuilder
impl !UnwindSafe for PipeWireWindowCaptureSourceBuilder
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