[][src]Struct gdk::EventMotion

pub struct EventMotion(_);

Methods

impl EventMotion[src]

pub fn get_position(&self) -> (f64, f64)[src]

pub fn get_state(&self) -> ModifierType[src]

pub fn get_time(&self) -> u32[src]

pub fn request_motions(&self)[src]

pub fn get_device(&self) -> Option<Device>[src]

pub fn get_axes(&self) -> Option<(f64, f64)>[src]

pub fn get_root(&self) -> (f64, f64)[src]

pub fn get_is_hint(&self) -> bool[src]

Methods from Deref<Target = Event>

pub fn put(&self)[src]

pub fn get_axis(&self, axis_use: AxisUse) -> Option<f64>[src]

pub fn get_button(&self) -> Option<u32>[src]

pub fn get_click_count(&self) -> Option<u32>[src]

pub fn get_coords(&self) -> Option<(f64, f64)>[src]

pub fn get_keycode(&self) -> Option<u16>[src]

pub fn get_keyval(&self) -> Option<u32>[src]

pub fn get_root_coords(&self) -> Option<(f64, f64)>[src]

pub fn get_scroll_direction(&self) -> Option<ScrollDirection>[src]

pub fn get_scroll_deltas(&self) -> Option<(f64, f64)>[src]

pub fn get_state(&self) -> Option<ModifierType>[src]

pub fn get_time(&self) -> u32[src]

pub fn get_window(&self) -> Option<Window>[src]

Returns the associated Window if applicable.

pub fn get_event_sequence(&self) -> Option<EventSequence>[src]

pub fn triggers_context_menu(&self) -> bool[src]

pub fn set_screen<'a, T: Into<Option<&'a Screen>>>(&mut self, screen: T)[src]

pub fn get_screen(&self) -> Option<Screen>[src]

pub fn set_device<'a, T: Into<Option<&'a Device>>>(&mut self, device: T)[src]

pub fn get_device(&self) -> Option<Device>[src]

pub fn set_source_device<'a, T: Into<Option<&'a Device>>>(&mut self, device: T)[src]

pub fn get_source_device(&self) -> Option<Device>[src]

pub fn get_event_type(&self) -> EventType[src]

Returns the event type.

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.

pub fn downcast_ref<T: FromEvent>(&self) -> Option<&T>[src]

Tries to downcast to a specific event type.

pub fn downcast_mut<T: FromEvent>(&mut self) -> Option<&mut T>[src]

Tries to downcast to a specific event type.

Trait Implementations

impl AsMut<GdkEventMotion> for EventMotion[src]

impl PartialEq<EventMotion> for EventMotion[src]

impl AsRef<GdkEventMotion> for EventMotion[src]

impl Ord for EventMotion[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for EventMotion[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for EventMotion[src]

impl PartialOrd<EventMotion> for EventMotion[src]

impl DerefMut for EventMotion[src]

impl Deref for EventMotion[src]

type Target = Event

The resulting type after dereferencing.

impl Hash for EventMotion[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for EventMotion[src]

impl<'a> ToGlibPtrMut<'a, *mut GdkEventMotion> for EventMotion[src]

type Storage = &'a mut Self

impl<'a> ToGlibPtr<'a, *const GdkEventMotion> for EventMotion[src]

type Storage = &'a Self

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 FromGlibPtrNone<*mut GdkEventMotion> for EventMotion[src]

impl FromGlibPtrBorrow<*mut GdkEventMotion> for EventMotion[src]

impl FromGlibPtrFull<*mut GdkEventMotion> for EventMotion[src]

Auto Trait Implementations

impl !Send for EventMotion

impl !Sync for EventMotion

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.