[−][src]Struct obs_wrapper::source::SourceContext
Context wrapping an OBS source - video / audio elements which are displayed to the screen.
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]
&mut self,
_render: &mut VideoRenderContext,
effect: &mut GraphicsEffect,
(cx, cy): (u32, u32),
format: GraphicsColorFormat,
direct: GraphicsAllowDirectRendering,
func: F
)
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.
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
impl RefUnwindSafe for SourceContext
impl !Send for SourceContext
impl !Sync for SourceContext
impl Unpin for SourceContext
impl UnwindSafe for SourceContext
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>,