Trait WindowSpec

Source
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§

Source

fn clipboard(&self) -> String

Source

fn set_clipboard(&mut self, str: &str)

Source

fn set_vsync(&mut self, enabled: bool)

Source

fn resize(&mut self, size: uVec2)

Source

fn spawn_offhand_gl(&mut self, _: impl FnOnce() + SendStat) -> JoinHandle<()>

Source

fn poll_events(&mut self) -> Vec<Event>

Source

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.

Implementors§