pub trait WindowSpec {
// Required methods
fn clipboard(&self) -> String;
fn set_clipboard(&mut self, str: &str);
fn set_vsync(&mut self, enabled: bool);
fn resize(&mut self, size: uVec2);
fn spawn_offhand_gl(
&mut self,
_: impl FnOnce() + SendStat,
) -> JoinHandle<()>;
fn poll_events(&mut self) -> Vec<Event>;
fn swap(&mut self);
}
Required Methods§
fn clipboard(&self) -> String
fn set_clipboard(&mut self, str: &str)
fn set_vsync(&mut self, enabled: bool)
fn resize(&mut self, size: uVec2)
fn spawn_offhand_gl(&mut self, _: impl FnOnce() + SendStat) -> JoinHandle<()>
fn poll_events(&mut self) -> Vec<Event>
fn swap(&mut self)
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.