GLWindowExt

Trait GLWindowExt 

Source
pub trait GLWindowExt: IsA<GLWindow> + 'static {
Show 22 methods // Provided methods fn controls_viewport(&self) -> bool { ... } fn draw(&self) { ... } fn context(&self) -> GLContext { ... } fn is_request_output_surface(&self) -> bool { ... } fn surface_dimensions(&self) -> (u32, u32) { ... } fn handle_events(&self, handle_events: bool) { ... } fn has_output_surface(&self) -> 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 send_scroll_event( &self, posx: f64, posy: f64, delta_x: f64, delta_y: 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 set_request_output_surface(&self, output_surface: bool) { ... } 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 { ... } fn connect_scroll_event<F: Fn(&Self, f64, f64, f64, f64) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_window_handle_changed<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn controls_viewport(&self) -> bool

Available on crate feature v1_16 only.
Source

fn draw(&self)

Source

fn context(&self) -> GLContext

Source

fn is_request_output_surface(&self) -> bool

Available on crate feature v1_28 only.
Source

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

Source

fn handle_events(&self, handle_events: bool)

Source

fn has_output_surface(&self) -> bool

Available on crate feature v1_18 only.
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 send_scroll_event(&self, posx: f64, posy: f64, delta_x: f64, delta_y: f64)

Available on crate feature v1_18 only.
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 set_request_output_surface(&self, output_surface: bool)

Available on crate feature v1_28 only.
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

Source

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

Available on crate feature v1_18 only.
Source

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

Available on crate feature v1_20 only.

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§