Trait gstreamer_gl::prelude::GLWindowExt

source ·
pub trait GLWindowExt:
    IsA<GLWindow>
    + Sealed
    + 'static {
Show 15 methods // Provided methods fn draw(&self) { ... } fn context(&self) -> GLContext { ... } fn surface_dimensions(&self) -> (u32, u32) { ... } fn handle_events(&self, handle_events: bool) { ... } fn queue_resize(&self) { ... } fn quit(&self) { ... } fn resize(&self, width: u32, height: u32) { ... } fn run(&self) { ... } fn send_key_event(&self, event_type: &str, key_str: &str) { ... } fn send_mouse_event( &self, event_type: &str, button: i32, posx: f64, posy: f64, ) { ... } fn set_preferred_size(&self, width: i32, height: i32) { ... } fn set_render_rectangle( &self, x: i32, y: i32, width: i32, height: i32, ) -> Result<(), BoolError> { ... } fn show(&self) { ... } fn connect_key_event<F: Fn(&Self, &str, &str) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_mouse_event<F: Fn(&Self, &str, i32, f64, f64) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn draw(&self)

source

fn context(&self) -> GLContext

source

fn surface_dimensions(&self) -> (u32, u32)

source

fn handle_events(&self, handle_events: bool)

source

fn queue_resize(&self)

source

fn quit(&self)

source

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

source

fn run(&self)

source

fn send_key_event(&self, event_type: &str, key_str: &str)

source

fn send_mouse_event(&self, event_type: &str, button: i32, posx: f64, posy: f64)

source

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

source

fn set_render_rectangle( &self, x: i32, y: i32, width: i32, height: i32, ) -> Result<(), BoolError>

source

fn show(&self)

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§