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§