pub struct XCompositeInputSource { /* private fields */ }Available on Linux only.
Expand description
This struct is essentially a wrapper around an OBS source with additional functionality specific to the custom source.
It provides methods to create an updater and access source-specific signals.
Implementations§
Source§impl XCompositeInputSource
impl XCompositeInputSource
pub fn create_updater<'a>( &'a mut self, ) -> Result<XCompositeInputSourceUpdater<'a>, ObsError>
Source§impl XCompositeInputSource
impl XCompositeInputSource
pub fn inner_source(&self) -> &ObsSourceRef
pub fn inner_source_mut(&mut self) -> &mut ObsSourceRef
Sourcepub fn into_inner_source(self) -> ObsSourceRef
pub fn into_inner_source(self) -> ObsSourceRef
Consumes self and returns the inner ObsSourceRef
You can still update this source (if created by libobs-simple) and create an updater like so:
let updater = my_custom_source.create_updater()?;
let source = my_custom_source.into_inner_source();
let updater = source.create_updater::<MyCustomSourceUpdater>()?;Source§impl XCompositeInputSource
impl XCompositeInputSource
pub fn source_specific_signals(&self) -> Arc<XCompositeInputSourceSignals>
Trait Implementations§
Source§impl Clone for XCompositeInputSource
impl Clone for XCompositeInputSource
Source§fn clone(&self) -> XCompositeInputSource
fn clone(&self) -> XCompositeInputSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XCompositeInputSource
impl Debug for XCompositeInputSource
Source§impl ObsObjectTrait<*mut obs_source> for XCompositeInputSource
impl ObsObjectTrait<*mut obs_source> for XCompositeInputSource
fn name(&self) -> ObsString
fn id(&self) -> ObsString
fn runtime(&self) -> &ObsRuntime
fn settings(&self) -> Result<ImmutableObsData, ObsError>
fn hotkey_data(&self) -> Result<ImmutableObsData, ObsError>
Source§fn update_settings(&self, settings: ObsData) -> Result<(), ObsError>
fn update_settings(&self, settings: ObsData) -> Result<(), ObsError>
Updates the settings of this output. Fails if active.
Source§fn as_ptr(&self) -> SmartPointerSendable<*mut obs_source>
fn as_ptr(&self) -> SmartPointerSendable<*mut obs_source>
Creates a new reference to the drop guard.
This is useful if you are using the underlying raw pointer, make sure to store it along the drop guard
§fn create_updater<'a, T>(&'a mut self) -> Result<T, ObsError>
fn create_updater<'a, T>(&'a mut self) -> Result<T, ObsError>
Updates the object with the current settings.
For examples please take a look at the Github repository.
Auto Trait Implementations§
impl Freeze for XCompositeInputSource
impl !RefUnwindSafe for XCompositeInputSource
impl Send for XCompositeInputSource
impl Sync for XCompositeInputSource
impl Unpin for XCompositeInputSource
impl UnsafeUnpin for XCompositeInputSource
impl !UnwindSafe for XCompositeInputSource
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