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