[][src]Struct obs_wrapper::source::SourceInfoBuilder

pub struct SourceInfoBuilder<T: Sourceable, D> { /* fields omitted */ }

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

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

impl<T, D> UnwindSafe for SourceInfoBuilder<T, D> where
    D: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.