Struct ux::Event [−][src]
pub struct Event(_);
A generic Clutter event.
Implementations
impl Event
[src]
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]
T: FromEvent,
Returns true
if the event type matches T
.
pub fn downcast<T>(self) -> Result<T, Event> where
T: FromEvent,
[src]
T: FromEvent,
Tries to downcast to a specific event type.
pub fn downcast_ref<T>(&self) -> Option<&T> where
T: FromEvent,
[src]
T: FromEvent,
Tries to downcast to a specific event type.
pub fn downcast_mut<T>(&mut self) -> Option<&mut T> where
T: FromEvent,
[src]
T: FromEvent,
Tries to downcast to a specific event type.
Trait Implementations
impl FromGlibPtrBorrow<*mut ClutterAnyEvent> for Event
[src]
impl FromGlibPtrBorrow<*mut ClutterAnyEvent> for Event
[src]pub unsafe fn from_glib_borrow(ptr: *mut ClutterAnyEvent) -> Borrowed<Event>
[src]
impl FromGlibPtrFull<*mut ClutterAnyEvent> for Event
[src]
impl FromGlibPtrFull<*mut ClutterAnyEvent> for Event
[src]pub unsafe fn from_glib_full(ptr: *mut ClutterAnyEvent) -> Event
[src]
impl FromGlibPtrNone<*mut ClutterAnyEvent> for Event
[src]
impl FromGlibPtrNone<*mut ClutterAnyEvent> for Event
[src]pub unsafe fn from_glib_none(ptr: *mut ClutterAnyEvent) -> Event
[src]
impl PartialOrd<Event> for Event
[src]
impl PartialOrd<Event> for Event
[src]impl StaticType for Event
[src]
impl StaticType for Event
[src]pub fn static_type() -> Type
[src]
impl StructuralEq for Event
[src]
impl StructuralEq for Event
[src]impl StructuralPartialEq for Event
[src]
impl StructuralPartialEq for Event
[src]Auto Trait Implementations
impl RefUnwindSafe for Event
impl RefUnwindSafe for Event
impl UnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]pub fn into_color(self) -> To
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,