Struct reverie_engine_opengl::window::Window
source · pub struct Window { /* private fields */ }
Implementations§
source§impl Window
impl Window
pub fn create_context_raw_gl_context(&self) -> Context<GlContext>
pub fn create_context_glutin(&self) -> Context<RawContext<PossiblyCurrent>>
pub fn create_context_with_backend<C: ContextBackend>(&self) -> Context<C>
pub fn update(&mut self, gl: &Gl)
pub fn should_stop(&self) -> bool
pub fn get_winit_window(&self) -> &Window
pub fn get_winit_window_mut(&mut self) -> &mut Window
pub fn keydown(&mut self, keycode: &VirtualKeyCode) -> bool
pub fn keyup(&mut self, keycode: &VirtualKeyCode) -> bool
pub fn keypressed(&mut self, keycode: &VirtualKeyCode) -> bool
pub fn cursor_pos(&mut self) -> CursorPosition<DesktopOrigin>
pub fn cursor_delta(&mut self) -> (i32, i32)
pub fn mouse_down(&mut self, button: &MouseButton) -> bool
pub fn mouse_up(&mut self, button: &MouseButton) -> bool
pub fn mouse_pressed(&mut self, button: &MouseButton) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Window
impl !RefUnwindSafe for Window
impl !Send for Window
impl !Sync for Window
impl Unpin for Window
impl !UnwindSafe for Window
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.