[][src]Struct tge::mouse::Mouse

pub struct Mouse { /* fields omitted */ }

Implementations

impl Mouse[src]

pub fn cursor_icon(&self) -> CursorIcon[src]

pub fn set_cursor_icon(&mut self, cursor_icon: CursorIcon)[src]

pub fn is_cursor_visible(&self) -> bool[src]

pub fn set_cursor_visible(&mut self, cursor_visible: bool)[src]

pub fn position(&self) -> Option<LogicalPosition>[src]

pub fn last_position(&self) -> LogicalPosition[src]

pub fn set_position(
    &mut self,
    position: impl Into<LogicalPosition>
) -> GameResult
[src]

pub fn is_inside_window(&self) -> bool[src]

pub fn wheel_scroll_delta(&self) -> Vector[src]

pub fn is_button_down(&self, button: MouseButton) -> bool[src]

pub fn is_button_hold(&self, button: MouseButton) -> bool[src]

pub fn is_button_up(&self, button: MouseButton) -> bool[src]

Auto Trait Implementations

impl !RefUnwindSafe for Mouse

impl !Send for Mouse

impl !Sync for Mouse

impl Unpin for Mouse

impl !UnwindSafe for Mouse

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.