gstreamer_gl::prelude

Trait GLBaseFilterExt

Source
pub trait GLBaseFilterExt: IsA<GLBaseFilter> + 'static {
    // Provided methods
    fn find_gl_context(&self) -> bool { ... }
    fn gl_context(&self) -> Option<GLContext> { ... }
    fn context(&self) -> Option<GLContext> { ... }
    fn connect_context_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all GLBaseFilter methods.

§Implementors

GLBaseFilter, GLFilter

Provided Methods§

Source

fn find_gl_context(&self) -> bool

§Returns

Whether an OpenGL context could be retrieved or created successfully

Source

fn gl_context(&self) -> Option<GLContext>

§Returns

the GLContext found by self

Source

fn context(&self) -> Option<GLContext>

Source

fn connect_context_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§