gstreamer_gl::prelude

Trait GLDisplayExt

Source
pub trait GLDisplayExt:
    IsA<GLDisplay>
    + Sealed
    + 'static {
    // Provided methods
    fn create_window(&self) -> Result<GLWindow, BoolError> { ... }
    fn filter_gl_api(&self, gl_api: GLAPI) { ... }
    fn gl_api(&self) -> GLAPI { ... }
    fn gl_api_unlocked(&self) -> GLAPI { ... }
    fn handle_type(&self) -> GLDisplayType { ... }
    fn remove_window(
        &self,
        window: &impl IsA<GLWindow>,
    ) -> Result<(), BoolError> { ... }
    fn connect_create_context<F: Fn(&Self, &GLContext) -> Option<GLContext> + Send + Sync + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn create_window(&self) -> Result<GLWindow, BoolError>

Source

fn filter_gl_api(&self, gl_api: GLAPI)

Source

fn gl_api(&self) -> GLAPI

Source

fn gl_api_unlocked(&self) -> GLAPI

Source

fn handle_type(&self) -> GLDisplayType

Source

fn remove_window(&self, window: &impl IsA<GLWindow>) -> Result<(), BoolError>

Source

fn connect_create_context<F: Fn(&Self, &GLContext) -> Option<GLContext> + 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§