Struct animate::ButtonEvent[][src]

pub struct ButtonEvent(_);

Methods from Deref<Target = Event>

pub fn put(&self)[src]

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

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

Returns the associated Window if applicable.

pub fn set_device(&mut self, device: Option<&InputDevice>)[src]

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

pub fn set_source_device(&mut self, device: Option<&InputDevice>)[src]

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

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<ClutterButtonEvent> for ButtonEvent[src]

impl AsRef<ClutterButtonEvent> for ButtonEvent[src]

impl Clone for ButtonEvent[src]

impl Debug for ButtonEvent[src]

impl Deref for ButtonEvent[src]

type Target = Event

The resulting type after dereferencing.

impl DerefMut for ButtonEvent[src]

impl Eq for ButtonEvent[src]

impl FromEvent for ButtonEvent[src]

impl FromGlibPtrBorrow<*mut ClutterButtonEvent> for ButtonEvent[src]

impl FromGlibPtrFull<*mut ClutterButtonEvent> for ButtonEvent[src]

impl FromGlibPtrNone<*mut ClutterButtonEvent> for ButtonEvent[src]

impl Hash for ButtonEvent[src]

impl Ord for ButtonEvent[src]

impl PartialEq<ButtonEvent> for ButtonEvent[src]

impl PartialOrd<ButtonEvent> for ButtonEvent[src]

impl StructuralEq for ButtonEvent[src]

impl StructuralPartialEq for ButtonEvent[src]

impl<'a> ToGlibPtr<'a, *const ClutterButtonEvent> for ButtonEvent[src]

type Storage = &'a Self

impl<'a> ToGlibPtrMut<'a, *mut ClutterButtonEvent> for ButtonEvent[src]

type Storage = &'a mut Self

Auto Trait Implementations

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<T> From<T> for T[src]

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

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,