pub struct CrossingEvent(/* 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<ClutterCrossingEvent> for CrossingEvent
impl AsMut<ClutterCrossingEvent> for CrossingEvent
Source§fn as_mut(&mut self) -> &mut ClutterCrossingEvent
fn as_mut(&mut self) -> &mut ClutterCrossingEvent
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ClutterCrossingEvent> for CrossingEvent
impl AsRef<ClutterCrossingEvent> for CrossingEvent
Source§fn as_ref(&self) -> &ClutterCrossingEvent
fn as_ref(&self) -> &ClutterCrossingEvent
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for CrossingEvent
impl Clone for CrossingEvent
Source§fn clone(&self) -> CrossingEvent
fn clone(&self) -> CrossingEvent
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 CrossingEvent
impl Debug for CrossingEvent
Source§impl Deref for CrossingEvent
impl Deref for CrossingEvent
Source§impl DerefMut for CrossingEvent
impl DerefMut for CrossingEvent
Source§impl FromEvent for CrossingEvent
impl FromEvent for CrossingEvent
Source§impl FromGlibPtrBorrow<*mut ClutterCrossingEvent> for CrossingEvent
impl FromGlibPtrBorrow<*mut ClutterCrossingEvent> for CrossingEvent
Source§unsafe fn from_glib_borrow(ptr: *mut ClutterCrossingEvent) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut ClutterCrossingEvent) -> Borrowed<Self>
Safety Read more
Source§impl FromGlibPtrFull<*mut ClutterCrossingEvent> for CrossingEvent
impl FromGlibPtrFull<*mut ClutterCrossingEvent> for CrossingEvent
Source§unsafe fn from_glib_full(ptr: *mut ClutterCrossingEvent) -> Self
unsafe fn from_glib_full(ptr: *mut ClutterCrossingEvent) -> Self
Safety Read more
Source§impl FromGlibPtrNone<*mut ClutterCrossingEvent> for CrossingEvent
impl FromGlibPtrNone<*mut ClutterCrossingEvent> for CrossingEvent
Source§unsafe fn from_glib_none(ptr: *mut ClutterCrossingEvent) -> Self
unsafe fn from_glib_none(ptr: *mut ClutterCrossingEvent) -> Self
Safety Read more
Source§impl Hash for CrossingEvent
impl Hash for CrossingEvent
Source§impl Ord for CrossingEvent
impl Ord for CrossingEvent
Source§fn cmp(&self, other: &CrossingEvent) -> Ordering
fn cmp(&self, other: &CrossingEvent) -> 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 CrossingEvent
impl PartialEq for CrossingEvent
Source§impl PartialOrd for CrossingEvent
impl PartialOrd for CrossingEvent
Source§impl<'a> ToGlibPtr<'a, *const ClutterCrossingEvent> for CrossingEvent
impl<'a> ToGlibPtr<'a, *const ClutterCrossingEvent> for CrossingEvent
type Storage = &'a CrossingEvent
Source§fn to_glib_none(&'a self) -> Stash<'a, *const ClutterCrossingEvent, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const ClutterCrossingEvent, 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 ClutterCrossingEvent> for CrossingEvent
impl<'a> ToGlibPtrMut<'a, *mut ClutterCrossingEvent> for CrossingEvent
type Storage = &'a mut CrossingEvent
Source§fn to_glib_none_mut(
&'a mut self,
) -> StashMut<'a, *mut ClutterCrossingEvent, Self>
fn to_glib_none_mut( &'a mut self, ) -> StashMut<'a, *mut ClutterCrossingEvent, Self>
Transfer: none. Read more
impl Eq for CrossingEvent
impl StructuralPartialEq for CrossingEvent
Auto Trait Implementations§
impl Freeze for CrossingEvent
impl RefUnwindSafe for CrossingEvent
impl !Send for CrossingEvent
impl !Sync for CrossingEvent
impl Unpin for CrossingEvent
impl UnwindSafe for CrossingEvent
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