pub struct LinuxGeneralScreenCaptureBuilder { /* private fields */ }Available on Linux only.
Implementations§
Source§impl LinuxGeneralScreenCaptureBuilder
impl LinuxGeneralScreenCaptureBuilder
Sourcepub fn set_restore_token(self, token: &str) -> Self
pub fn set_restore_token(self, token: &str) -> Self
Set the PipeWire restore token, which will be used to re-establish the same selection the user did previously.
§Display Server
PipeWire only
Sourcepub fn set_show_cursor(self, show: bool) -> Self
pub fn set_show_cursor(self, show: bool) -> Self
§Display Server
All supported display servers
Sourcepub fn set_screen(self, screen: i64) -> Self
pub fn set_screen(self, screen: i64) -> Self
Sourcepub fn set_advanced(self, advanced: bool) -> Self
pub fn set_advanced(self, advanced: bool) -> Self
Sourcepub fn set_server(self, server: &str) -> Self
pub fn set_server(self, server: &str) -> Self
Sourcepub fn set_cut_top(self, cut_top: i64) -> Self
pub fn set_cut_top(self, cut_top: i64) -> Self
Sourcepub fn set_cut_left(self, cut_left: i64) -> Self
pub fn set_cut_left(self, cut_left: i64) -> Self
Sourcepub fn set_cut_right(self, cut_right: i64) -> Self
pub fn set_cut_right(self, cut_right: i64) -> Self
Sourcepub fn set_cut_bot(self, cut_bot: i64) -> Self
pub fn set_cut_bot(self, cut_bot: i64) -> Self
pub fn capture_type_name(&self) -> PlatformType
Trait Implementations§
Source§impl ObsObjectBuilder for LinuxGeneralScreenCaptureBuilder
impl ObsObjectBuilder for LinuxGeneralScreenCaptureBuilder
fn new<T: Into<ObsString> + Send + Sync>(
name: T,
runtime: ObsRuntime,
) -> Result<Self, ObsError>where
Self: Sized,
fn runtime(&self) -> &ObsRuntime
fn object_build(self) -> Result<ObjectInfo, ObsError>where
Self: Sized,
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
Source§impl ObsSourceBuilder for LinuxGeneralScreenCaptureBuilder
impl ObsSourceBuilder for LinuxGeneralScreenCaptureBuilder
type T = ObsEitherSource<ObsSourceRef, 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 LinuxGeneralScreenCaptureBuilder
impl !RefUnwindSafe for LinuxGeneralScreenCaptureBuilder
impl Send for LinuxGeneralScreenCaptureBuilder
impl Sync for LinuxGeneralScreenCaptureBuilder
impl Unpin for LinuxGeneralScreenCaptureBuilder
impl UnsafeUnpin for LinuxGeneralScreenCaptureBuilder
impl !UnwindSafe for LinuxGeneralScreenCaptureBuilder
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