Struct gdk::EventScroll
[−]
[src]
pub struct EventScroll(_);
Methods
impl EventScroll
[src]
pub fn get_time(&self) -> u32
[src]
pub fn get_position(&self) -> (f64, f64)
[src]
pub fn get_state(&self) -> ModifierType
[src]
pub fn get_device(&self) -> Option<Device>
[src]
pub fn get_direction(&self) -> ScrollDirection
[src]
pub fn get_root(&self) -> (f64, f64)
[src]
pub fn get_delta(&self) -> (f64, f64)
[src]
Methods from Deref<Target = Event>
pub fn get_event_type(&self) -> EventType
[src]
Returns the event type.
pub fn get_window(&self) -> Option<Window>
[src]
Returns the associated Window
if applicable.
pub fn get_send_event(&self) -> bool
[src]
Returns whether the event was sent explicitly.
pub fn is<T: FromEvent>(&self) -> bool
[src]
Returns true
if the event type matches T
.
Trait Implementations
impl Clone for EventScroll
[src]
fn clone(&self) -> EventScroll
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for EventScroll
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> ToGlibPtr<'a, *const GdkEventScroll> for EventScroll
[src]
type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *const GdkEventScroll, Self>
[src]
Transfer: none. Read more
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
Transfer: container. Read more
fn to_glib_full(&self) -> P
[src]
Transfer: full. Read more
impl<'a> ToGlibPtrMut<'a, *mut GdkEventScroll> for EventScroll
[src]
type Storage = &'a mut Self
fn to_glib_none_mut(&'a mut self) -> StashMut<'a, *mut GdkEventScroll, Self>
[src]
Transfer: none. Read more
impl FromGlibPtrNone<*mut GdkEventScroll> for EventScroll
[src]
unsafe fn from_glib_none(ptr: *mut GdkEventScroll) -> Self
[src]
impl FromGlibPtrBorrow<*mut GdkEventScroll> for EventScroll
[src]
unsafe fn from_glib_borrow(ptr: *mut GdkEventScroll) -> Self
[src]
impl FromGlibPtrFull<*mut GdkEventScroll> for EventScroll
[src]
unsafe fn from_glib_full(ptr: *mut GdkEventScroll) -> Self
[src]
impl AsRef<GdkEventScroll> for EventScroll
[src]
fn as_ref(&self) -> &GdkEventScroll
[src]
Performs the conversion.
impl AsMut<GdkEventScroll> for EventScroll
[src]
fn as_mut(&mut self) -> &mut GdkEventScroll
[src]
Performs the conversion.
impl Deref for EventScroll
[src]
type Target = Event
The resulting type after dereferencing.
fn deref(&self) -> &Event
[src]
Dereferences the value.