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 const fn should_stop(&self) -> bool
pub const 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(&self, keycode: &VirtualKeyCode) -> bool
pub const fn cursor_pos(&self) -> CursorPosition<DesktopOrigin>
pub const fn cursor_delta(&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(&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.