pub trait Window: 'static {
// Required methods
fn info(&self) -> &FrameInfo;
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 gl_ctx_maker(&mut self) -> impl SendS + FnOnce() -> CtxDrop;
fn poll_events(&mut self) -> Vec<Event>;
fn swap(&mut self);
}Required Methods§
fn info(&self) -> &FrameInfo
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 gl_ctx_maker(&mut self) -> impl SendS + FnOnce() -> CtxDrop
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.