[]Struct gtk::EventControllerMotion

pub struct EventControllerMotion(_, _);

EventControllerMotion is an event controller meant for situations where you need to track the position of the pointer.

This object was added in 3.24.

Feature: v3_24

Implements

EventControllerExt, glib::object::ObjectExt

Implementations

impl EventControllerMotion[src]

pub fn new<P: IsA<Widget>>(widget: &P) -> EventControllerMotion[src]

Creates a new event controller that will handle motion events for the given widget.

Feature: v3_24

widget

a Widget

Returns

a new EventControllerMotion

pub fn connect_enter<F: Fn(&EventControllerMotion, f64, f64) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Signals that the pointer has entered the widget.

x

the x coordinate

y

the y coordinate

pub fn connect_leave<F: Fn(&EventControllerMotion) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Signals that pointer has left the widget.

pub fn connect_motion<F: Fn(&EventControllerMotion, f64, f64) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Emitted when the pointer moves inside the widget.

x

the x coordinate

y

the y coordinate

Trait Implementations

impl Clone for EventControllerMotion

impl Debug for EventControllerMotion

impl Display for EventControllerMotion[src]

impl Eq for EventControllerMotion

impl Hash for EventControllerMotion

impl IsA<EventController> for EventControllerMotion

impl Ord for EventControllerMotion

impl<T: ObjectType> PartialEq<T> for EventControllerMotion

impl<T: ObjectType> PartialOrd<T> for EventControllerMotion

impl StaticType for EventControllerMotion

Auto Trait Implementations

impl RefUnwindSafe for EventControllerMotion

impl !Send for EventControllerMotion

impl !Sync for EventControllerMotion

impl Unpin for EventControllerMotion

impl UnwindSafe for EventControllerMotion

Blanket Implementations

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

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

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

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

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

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.