[][src]Struct obs_wrapper::source::SourceContext

pub struct SourceContext { /* fields omitted */ }

Context wrapping an OBS source - video / audio elements which are displayed to the screen.

See OBS documentation

Methods

impl SourceContext[src]

pub fn do_with_target<F: FnOnce(&mut SourceContext)>(&mut self, func: F)[src]

Run a function on the next source in the filter chain.

Note: only works with sources that are filters.

pub fn id(&self) -> usize[src]

Return a unique id for the filter

pub fn get_base_width(&self) -> u32[src]

pub fn get_base_height(&self) -> u32[src]

pub fn skip_video_filter(&mut self)[src]

Skips the video filter if it's invalid

pub fn process_filter<F: FnOnce(&mut GraphicsEffectContext, &mut GraphicsEffect)>(
    &mut self,
    _render: &mut VideoRenderContext,
    effect: &mut GraphicsEffect,
    (cx, cy): (u32, u32),
    format: GraphicsColorFormat,
    direct: GraphicsAllowDirectRendering,
    func: F
)
[src]

Run a function to do drawing - if the source is a filter. This function is wrapped by calls that automatically handle effect-based filter processing.

See OBS documentation

Note: only works with sources that are filters.

pub fn update_source_settings(&mut self, settings: &SettingsContext)[src]

Update the source settings based on a settings context.

Auto Trait Implementations

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.