Struct ux::MotionEvent [−][src]
pub struct MotionEvent(_);
Methods from Deref<Target = Event>
pub fn put(&self)
[src]
pub fn get_time(&self) -> u32
[src]
pub fn get_event_sequence(&self) -> Option<EventSequence>
[src][−]
Returns the associated Window
if applicable.
pub fn set_device(&mut self, device: Option<&InputDevice>)
[src]
pub fn get_device(&self) -> Option<InputDevice>
[src]
pub fn set_source_device(&mut self, device: Option<&InputDevice>)
[src]
pub fn get_source_device(&self) -> Option<InputDevice>
[src]
pub fn is<T>(&self) -> bool where
T: FromEvent,
[src][−]
T: FromEvent,
Returns true
if the event type matches T
.
pub fn downcast_ref<T>(&self) -> Option<&T> where
T: FromEvent,
[src][−]
T: FromEvent,
Tries to downcast to a specific event type.
pub fn downcast_mut<T>(&mut self) -> Option<&mut T> where
T: FromEvent,
[src][−]
T: FromEvent,
Tries to downcast to a specific event type.
Trait Implementations
impl AsMut<ClutterMotionEvent> for MotionEvent
[src][+]
impl AsRef<ClutterMotionEvent> for MotionEvent
[src][+]
impl Clone for MotionEvent
[src][+]
impl Debug for MotionEvent
[src][+]
impl Deref for MotionEvent
[src][+]
impl DerefMut for MotionEvent
[src][+]
impl Eq for MotionEvent
[src]
impl FromEvent for MotionEvent
[src][+]
impl FromGlibPtrBorrow<*mut ClutterMotionEvent> for MotionEvent
[src][+]
impl FromGlibPtrFull<*mut ClutterMotionEvent> for MotionEvent
[src][+]
impl FromGlibPtrNone<*mut ClutterMotionEvent> for MotionEvent
[src][+]
impl Hash for MotionEvent
[src][+]
impl Ord for MotionEvent
[src][+]
impl PartialEq<MotionEvent> for MotionEvent
[src][+]
impl PartialOrd<MotionEvent> for MotionEvent
[src][+]
impl StructuralEq for MotionEvent
[src]
impl StructuralPartialEq for MotionEvent
[src]
impl<'a> ToGlibPtr<'a, *const ClutterMotionEvent> for MotionEvent
[src][+]
impl<'a> ToGlibPtrMut<'a, *mut ClutterMotionEvent> for MotionEvent
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for MotionEvent
impl !Send for MotionEvent
impl !Sync for MotionEvent
impl Unpin for MotionEvent
impl UnwindSafe for MotionEvent
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,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,