pub struct LinuxGeneralWindowCaptureBuilder { /* private fields */ }Available on Linux only.
Implementations§
Source§impl LinuxGeneralWindowCaptureBuilder
impl LinuxGeneralWindowCaptureBuilder
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_capture_window(self, capture_window: &str) -> Self
pub fn set_capture_window(self, capture_window: &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
Sourcepub fn set_include_border(self, include_border: bool) -> Self
pub fn set_include_border(self, include_border: bool) -> Self
Sourcepub fn set_exclude_alpha(self, exclude_alpha: bool) -> Self
pub fn set_exclude_alpha(self, exclude_alpha: bool) -> Self
Trait Implementations§
Source§impl ObsObjectBuilder for LinuxGeneralWindowCaptureBuilder
impl ObsObjectBuilder for LinuxGeneralWindowCaptureBuilder
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 LinuxGeneralWindowCaptureBuilder
impl ObsSourceBuilder for LinuxGeneralWindowCaptureBuilder
type T = ObsEitherSource<XCompositeInputSource, 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 LinuxGeneralWindowCaptureBuilder
impl !RefUnwindSafe for LinuxGeneralWindowCaptureBuilder
impl Send for LinuxGeneralWindowCaptureBuilder
impl Sync for LinuxGeneralWindowCaptureBuilder
impl Unpin for LinuxGeneralWindowCaptureBuilder
impl UnsafeUnpin for LinuxGeneralWindowCaptureBuilder
impl !UnwindSafe for LinuxGeneralWindowCaptureBuilder
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