[−][src]Struct tge::mouse::Mouse
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]
&mut self,
position: impl Into<LogicalPosition>
) -> GameResult
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,