Struct components::Event[][src]

pub struct Event(_);

A generic Clutter event.

Implementations

impl Event[src]

pub fn new(type_: EventType) -> Event[src]

Creates a new event.

pub fn get() -> Option<Event>[src]

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>(&self) -> bool where
    T: FromEvent
[src]

Returns true if the event type matches T.

pub fn downcast<T>(self) -> Result<T, Event> where
    T: FromEvent
[src]

Tries to downcast to a specific event type.

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

Tries to downcast to a specific event type.

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

Tries to downcast to a specific event type.

Trait Implementations

impl AsMut<ClutterAnyEvent> for Event[src]

impl AsRef<ClutterAnyEvent> for Event[src]

impl Clone for Event[src]

impl Debug for Event[src]

impl Eq for Event[src]

impl FromEvent for Event[src]

impl FromGlibPtrBorrow<*mut ClutterAnyEvent> for Event[src]

impl FromGlibPtrFull<*mut ClutterAnyEvent> for Event[src]

impl FromGlibPtrNone<*mut ClutterAnyEvent> for Event[src]

impl Hash for Event[src]

impl Ord for Event[src]

impl PartialEq<Event> for Event[src]

impl PartialOrd<Event> for Event[src]

impl StaticType for Event[src]

impl StructuralEq for Event[src]

impl StructuralPartialEq for Event[src]

impl<'a> ToGlibPtr<'a, *const ClutterAnyEvent> for Event[src]

type Storage = &'a Event

impl<'a> ToGlibPtrMut<'a, *mut ClutterAnyEvent> for Event[src]

type Storage = &'a mut Event

Auto Trait Implementations

impl RefUnwindSafe for Event

impl !Send for Event

impl !Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

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>, 

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

type Owned = T

The resulting type after obtaining ownership.

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

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>,