#[repr(C)]pub struct Input { /* private fields */ }
Implementations§
Source§impl Input
impl Input
pub fn mouse(&self) -> Mouse
pub fn has_mouse_click(&self, b: Button) -> bool
pub fn has_mouse_click_in_rect(&self, b: Button, rect: Rect) -> bool
pub fn has_mouse_click_down_in_rect( &self, b: Button, rect: Rect, down: bool, ) -> bool
pub fn is_mouse_click_in_rect(&self, b: Button, rect: Rect) -> bool
pub fn is_mouse_click_down_in_rect( &self, b: Button, rect: Rect, down: bool, ) -> bool
pub fn any_mouse_click_in_rect(&self, rect: Rect) -> bool
pub fn is_mouse_prev_hovering_rect(&self, rect: Rect) -> bool
pub fn is_mouse_hovering_rect(&self, rect: Rect) -> bool
pub fn is_mouse_clicked(&self, b: Button, rect: Rect) -> bool
pub fn is_mouse_down(&self, b: Button) -> bool
pub fn is_mouse_pressed(&self, b: Button) -> bool
pub fn is_mouse_released(&self, b: Button) -> bool
pub fn is_key_pressed(&self, k: Key) -> bool
pub fn is_key_released(&self, k: Key) -> bool
pub fn is_key_down(&self, k: Key) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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