pub struct MotionEvent(/* private fields */);
Methods from Deref<Target = Event>§
pub fn put(&self)
pub fn get_time(&self) -> u32
Sourcepub fn get_event_sequence(&self) -> Option<EventSequence>
pub fn get_event_sequence(&self) -> Option<EventSequence>
Returns the associated Window
if applicable.
pub fn set_device(&mut self, device: Option<&InputDevice>)
pub fn get_device(&self) -> Option<InputDevice>
pub fn set_source_device(&mut self, device: Option<&InputDevice>)
pub fn get_source_device(&self) -> Option<InputDevice>
Sourcepub fn downcast_ref<T: FromEvent>(&self) -> Option<&T>
pub fn downcast_ref<T: FromEvent>(&self) -> Option<&T>
Tries to downcast to a specific event type.
Sourcepub fn downcast_mut<T: FromEvent>(&mut self) -> Option<&mut T>
pub fn downcast_mut<T: FromEvent>(&mut self) -> Option<&mut T>
Tries to downcast to a specific event type.
Trait Implementations§
Source§impl AsMut<ClutterMotionEvent> for MotionEvent
impl AsMut<ClutterMotionEvent> for MotionEvent
Source§fn as_mut(&mut self) -> &mut ClutterMotionEvent
fn as_mut(&mut self) -> &mut ClutterMotionEvent
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ClutterMotionEvent> for MotionEvent
impl AsRef<ClutterMotionEvent> for MotionEvent
Source§fn as_ref(&self) -> &ClutterMotionEvent
fn as_ref(&self) -> &ClutterMotionEvent
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for MotionEvent
impl Clone for MotionEvent
Source§fn clone(&self) -> MotionEvent
fn clone(&self) -> MotionEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MotionEvent
impl Debug for MotionEvent
Source§impl Deref for MotionEvent
impl Deref for MotionEvent
Source§impl DerefMut for MotionEvent
impl DerefMut for MotionEvent
Source§impl FromEvent for MotionEvent
impl FromEvent for MotionEvent
Source§impl FromGlibPtrBorrow<*mut ClutterMotionEvent> for MotionEvent
impl FromGlibPtrBorrow<*mut ClutterMotionEvent> for MotionEvent
Source§unsafe fn from_glib_borrow(ptr: *mut ClutterMotionEvent) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut ClutterMotionEvent) -> Borrowed<Self>
Safety Read more
Source§impl FromGlibPtrFull<*mut ClutterMotionEvent> for MotionEvent
impl FromGlibPtrFull<*mut ClutterMotionEvent> for MotionEvent
Source§unsafe fn from_glib_full(ptr: *mut ClutterMotionEvent) -> Self
unsafe fn from_glib_full(ptr: *mut ClutterMotionEvent) -> Self
Safety Read more
Source§impl FromGlibPtrNone<*mut ClutterMotionEvent> for MotionEvent
impl FromGlibPtrNone<*mut ClutterMotionEvent> for MotionEvent
Source§unsafe fn from_glib_none(ptr: *mut ClutterMotionEvent) -> Self
unsafe fn from_glib_none(ptr: *mut ClutterMotionEvent) -> Self
Safety Read more
Source§impl Hash for MotionEvent
impl Hash for MotionEvent
Source§impl Ord for MotionEvent
impl Ord for MotionEvent
Source§fn cmp(&self, other: &MotionEvent) -> Ordering
fn cmp(&self, other: &MotionEvent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MotionEvent
impl PartialEq for MotionEvent
Source§impl PartialOrd for MotionEvent
impl PartialOrd for MotionEvent
Source§impl<'a> ToGlibPtr<'a, *const ClutterMotionEvent> for MotionEvent
impl<'a> ToGlibPtr<'a, *const ClutterMotionEvent> for MotionEvent
type Storage = &'a MotionEvent
Source§fn to_glib_none(&'a self) -> Stash<'a, *const ClutterMotionEvent, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const ClutterMotionEvent, Self>
Transfer: none. Read more
Source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
Source§fn to_glib_full(&self) -> P
fn to_glib_full(&self) -> P
Transfer: full. Read more
Source§impl<'a> ToGlibPtrMut<'a, *mut ClutterMotionEvent> for MotionEvent
impl<'a> ToGlibPtrMut<'a, *mut ClutterMotionEvent> for MotionEvent
type Storage = &'a mut MotionEvent
Source§fn to_glib_none_mut(&'a mut self) -> StashMut<'a, *mut ClutterMotionEvent, Self>
fn to_glib_none_mut(&'a mut self) -> StashMut<'a, *mut ClutterMotionEvent, Self>
Transfer: none. Read more
impl Eq for MotionEvent
impl StructuralPartialEq for MotionEvent
Auto Trait Implementations§
impl Freeze for MotionEvent
impl RefUnwindSafe for MotionEvent
impl !Send for MotionEvent
impl !Sync for MotionEvent
impl Unpin for MotionEvent
impl UnwindSafe for MotionEvent
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