pub trait VulkanWindowExt: IsA<VulkanWindow> + 'static {
Show 16 methods
// Provided methods
fn close(&self) { ... }
fn display(&self) -> VulkanDisplay { ... }
fn is_presentation_support(
&self,
device: &impl IsA<VulkanDevice>,
queue_family_idx: u32,
) -> bool { ... }
fn surface_dimensions(&self) -> (u32, u32) { ... }
fn handle_events(&self, handle_events: bool) { ... }
fn open(&self) -> Result<(), Error> { ... }
fn redraw(&self) { ... }
fn resize(&self, width: i32, height: i32) { ... }
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 connect_close<F: Fn(&Self) -> bool + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_draw<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
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_resize<F: Fn(&Self, u32, u32) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_display_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}Provided Methods§
fn close(&self)
fn display(&self) -> VulkanDisplay
fn is_presentation_support( &self, device: &impl IsA<VulkanDevice>, queue_family_idx: u32, ) -> bool
fn surface_dimensions(&self) -> (u32, u32)
fn handle_events(&self, handle_events: bool)
fn open(&self) -> Result<(), Error>
fn redraw(&self)
fn resize(&self, width: i32, height: i32)
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 connect_close<F: Fn(&Self) -> bool + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_draw<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
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_resize<F: Fn(&Self, u32, u32) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_display_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".