Trait gstreamer_gl::prelude::GLWindowExt
source · pub trait GLWindowExt:
IsA<GLWindow>
+ Sealed
+ 'static {
Show 20 methods
// Provided methods
fn controls_viewport(&self) -> bool { ... }
fn draw(&self) { ... }
fn context(&self) -> GLContext { ... }
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 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§
sourcefn controls_viewport(&self) -> bool
fn controls_viewport(&self) -> bool
sourcefn surface_dimensions(&self) -> (u32, u32)
fn surface_dimensions(&self) -> (u32, u32)
sourcefn handle_events(&self, handle_events: bool)
fn handle_events(&self, handle_events: bool)
Tell a self
that it should handle events from the window system. These
events are forwarded upstream as navigation events. In some window systems
events are not propagated in the window hierarchy if a client is listening
for them. This method allows you to disable events handling completely
from the self
.
§handle_events
a gboolean
indicating if events should be handled or not.
sourcefn has_output_surface(&self) -> bool
fn has_output_surface(&self) -> bool
sourcefn queue_resize(&self)
fn queue_resize(&self)
Queue resizing of 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)
sourcefn set_preferred_size(&self, width: i32, height: i32)
fn set_preferred_size(&self, width: i32, height: i32)
sourcefn set_render_rectangle(
&self,
x: i32,
y: i32,
width: i32,
height: i32,
) -> Result<(), BoolError>
fn set_render_rectangle( &self, x: i32, y: i32, width: i32, height: i32, ) -> Result<(), BoolError>
sourcefn connect_key_event<F: Fn(&Self, &str, &str) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_key_event<F: Fn(&Self, &str, &str) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
sourcefn connect_mouse_event<F: Fn(&Self, &str, i32, f64, f64) + 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
sourcefn connect_scroll_event<F: Fn(&Self, f64, f64, 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
sourcefn connect_window_handle_changed<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_window_handle_changed<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Will be emitted when the window handle has been set into the native implementation, but before the context is re-activated. By using this signal, elements can refresh associated resource without relying on direct handle comparision.
Object Safety§
This trait is not object safe.