gstreamer_gl::prelude

Trait ContextGLExt

Source
pub trait ContextGLExt {
    // Required methods
    fn gl_display(&self) -> Option<GLDisplay>;
    fn set_gl_display<'a, T: IsA<GLDisplay>>(
        &self,
        display: impl Into<Option<&'a T>>,
    );
}

Required Methods§

Source

fn gl_display(&self) -> Option<GLDisplay>

Source

fn set_gl_display<'a, T: IsA<GLDisplay>>( &self, display: impl Into<Option<&'a T>>, )

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.

Implementations on Foreign Types§

Source§

impl ContextGLExt for ContextRef

Source§

fn gl_display(&self) -> Option<GLDisplay>

Source§

fn set_gl_display<'a, T: IsA<GLDisplay>>( &self, display: impl Into<Option<&'a T>>, )

Implementors§