pub struct GameCaptureSourceBuilder { /* private fields */ }
Implementations§
Source§impl GameCaptureSourceBuilder
impl GameCaptureSourceBuilder
Sourcepub fn set_capture_mode(self, capture_mode: ObsGameCaptureMode) -> Self
pub fn set_capture_mode(self, capture_mode: ObsGameCaptureMode) -> Self
Sets the capture mode for the game capture source. Look at doc for ObsGameCaptureMode
Sourcepub fn set_priority(self, priority: ObsWindowPriority) -> Self
pub fn set_priority(self, priority: ObsWindowPriority) -> Self
Window Match Priority
Sourcepub fn set_sli_compatability(self, sli_compatability: bool) -> Self
pub fn set_sli_compatability(self, sli_compatability: bool) -> Self
SLI/Crossfire Capture Mode (Slow)
Sourcepub fn set_capture_cursor(self, capture_cursor: bool) -> Self
pub fn set_capture_cursor(self, capture_cursor: bool) -> Self
Whether the cursor should be captured
Sourcepub fn set_allow_transparency(self, allow_transparency: bool) -> Self
pub fn set_allow_transparency(self, allow_transparency: bool) -> Self
If transparency of windows should be allowed
Sourcepub fn set_premultiplied_alpha(self, premultiplied_alpha: bool) -> Self
pub fn set_premultiplied_alpha(self, premultiplied_alpha: bool) -> Self
Premultiplied Alpha
Sourcepub fn set_limit_framerate(self, limit_framerate: bool) -> Self
pub fn set_limit_framerate(self, limit_framerate: bool) -> Self
Limit capture framerate
Sourcepub fn set_capture_overlays(self, capture_overlays: bool) -> Self
pub fn set_capture_overlays(self, capture_overlays: bool) -> Self
Capture third party overlays (such as steam overlays)
Sourcepub fn set_anti_cheat_hook(self, anti_cheat_hook: bool) -> Self
pub fn set_anti_cheat_hook(self, anti_cheat_hook: bool) -> Self
Use anti-cheat compatibility hook
Sourcepub fn set_hook_rate(self, hook_rate: ObsHookRate) -> Self
pub fn set_hook_rate(self, hook_rate: ObsHookRate) -> Self
Hook rate (Ranging from slow to fastest)
Sourcepub fn set_rgb10a2_space(self, rgb10a2_space: ObsGameCaptureRgbaSpace) -> Self
pub fn set_rgb10a2_space(self, rgb10a2_space: ObsGameCaptureRgbaSpace) -> Self
The color space to capture in
Sourcepub fn set_capture_audio(self, capture_audio: bool) -> Self
pub fn set_capture_audio(self, capture_audio: bool) -> Self
Whether to capture audio from window source (BETA)
When enabled, creates an “Application Audio Capture” source that automatically updates to the currently captured window/application.
Note that if Desktop Audio is configured, this could result in doubled audio.
Source§impl GameCaptureSourceBuilder
impl GameCaptureSourceBuilder
Sourcepub fn get_windows(mode: WindowSearchMode) -> Result<Vec<WindowInfo>>
pub fn get_windows(mode: WindowSearchMode) -> Result<Vec<WindowInfo>>
Gets a list of windows that can be captured by this source.
Sourcepub fn set_window(self, window: &WindowInfo) -> Self
pub fn set_window(self, window: &WindowInfo) -> Self
Trait Implementations§
Source§impl Debug for GameCaptureSourceBuilder
impl Debug for GameCaptureSourceBuilder
Source§impl ObsObjectBuilder for GameCaptureSourceBuilder
impl ObsObjectBuilder for GameCaptureSourceBuilder
fn new<'async_trait, T>( name: T, runtime: ObsRuntime, ) -> Pin<Box<dyn Future<Output = Result<Self, ObsError>> + Send + 'async_trait>>
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 build<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<ObjectInfo, ObsError>> + Send + 'async_trait>>where
Self: 'async_trait,
Auto Trait Implementations§
impl Freeze for GameCaptureSourceBuilder
impl !RefUnwindSafe for GameCaptureSourceBuilder
impl Send for GameCaptureSourceBuilder
impl Sync for GameCaptureSourceBuilder
impl Unpin for GameCaptureSourceBuilder
impl !UnwindSafe for GameCaptureSourceBuilder
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