gtk4::subclass::gl_area

Trait GLAreaImpl

source
pub trait GLAreaImpl: WidgetImpl + ObjectSubclass<Type: IsA<GLArea>> {
    // Provided methods
    fn create_context(&self) -> Option<GLContext> { ... }
    fn render(&self, context: &GLContext) -> Propagation { ... }
    fn resize(&self, width: i32, height: i32) { ... }
}

Provided Methods§

source

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

class closure for the GtkGLArea::create-context signal

source

fn render(&self, context: &GLContext) -> Propagation

class closure for the GtkGLArea::render signal

source

fn resize(&self, width: i32, height: i32)

class closeure for the GtkGLArea::resize signal

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§