pub struct input_impl { /* private fields */ }Expand description
Implements a basic input abstraction for Glutin.
Trait Implementations§
Source§impl Input for GlutinInput
impl Input for GlutinInput
type Window = GlutinDrawer
Source§fn is_mouse_down(&self) -> bool
fn is_mouse_down(&self) -> bool
Checks to see if the mouse/pointer is down
Source§fn get_mouse_pos(&self) -> (usize, usize)
fn get_mouse_pos(&self) -> (usize, usize)
Returns the current mouse position in a (x, y) tuple.
Source§fn do_continue(&self) -> bool
fn do_continue(&self) -> bool
Checks to see if execution should be continued
Auto Trait Implementations§
impl Freeze for GlutinInput
impl RefUnwindSafe for GlutinInput
impl Send for GlutinInput
impl Sync for GlutinInput
impl Unpin for GlutinInput
impl UnwindSafe for GlutinInput
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more