[−][src]Struct obs_wrapper::source::SourceInfoBuilder
The SourceInfoBuilder that handles creating the SourceInfo object.
For each trait that is implemented for the Source, it needs to be enabled using this builder.
If an struct called FocusFilter implements CreateSource and GetNameSource it would need
to enable those features.
let source = load_context
.create_source_builder::<FocusFilter, ()>()
.enable_get_name()
.enable_create()
.build();
Methods
impl<T: Sourceable, D> SourceInfoBuilder<T, D>[src]
pub fn with_output_flags(self, flags: u32) -> Self[src]
pub fn build(self) -> SourceInfo[src]
impl<D, T: Sourceable + GetNameSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_get_name(self) -> Self[src]
impl<D, T: Sourceable + GetWidthSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_get_width(self) -> Self[src]
impl<D, T: Sourceable + GetHeightSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_get_height(self) -> Self[src]
impl<D, T: Sourceable + CreatableSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_create(self) -> Self[src]
impl<D, T: Sourceable + UpdateSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_update(self) -> Self[src]
impl<D, T: Sourceable + VideoRenderSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_video_render(self) -> Self[src]
impl<D, T: Sourceable + AudioRenderSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_audio_render(self) -> Self[src]
impl<D, T: Sourceable + GetPropertiesSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_get_properties(self) -> Self[src]
impl<D, T: Sourceable + EnumActiveSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_enum_active_sources(self) -> Self[src]
impl<D, T: Sourceable + EnumAllSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_enum_all_sources(self) -> Self[src]
impl<D, T: Sourceable + TransitionStartSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_transition_start(self) -> Self[src]
impl<D, T: Sourceable + TransitionStopSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_transition_stop(self) -> Self[src]
impl<D, T: Sourceable + VideoTickSource<D>> SourceInfoBuilder<T, D>[src]
pub fn enable_video_tick(self) -> Self[src]
Auto Trait Implementations
impl<T, D> RefUnwindSafe for SourceInfoBuilder<T, D> where
D: RefUnwindSafe,
T: RefUnwindSafe,
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, D> !Send for SourceInfoBuilder<T, D>
impl<T, D> !Sync for SourceInfoBuilder<T, D>
impl<T, D> Unpin for SourceInfoBuilder<T, D> where
D: Unpin,
T: Unpin,
D: Unpin,
T: Unpin,
impl<T, D> UnwindSafe for SourceInfoBuilder<T, D> where
D: UnwindSafe,
T: UnwindSafe,
D: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,