Trait grafix_toolbox::lib::GL::window::WindowSpec

source ·
pub trait WindowSpec {
    // Required methods
    unsafe 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

unsafe 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)

Object Safety§

This trait is not object safe.

Implementors§