pub struct Event(/* private fields */);
Expand description
A generic Clutter event.
Implementations§
Source§impl Event
impl Event
pub fn get() -> Option<Event>
pub fn put(&self)
pub fn get_time(&self) -> u32
Sourcepub fn get_event_sequence(&self) -> Option<EventSequence>
pub fn get_event_sequence(&self) -> Option<EventSequence>
Returns the associated Window
if applicable.
pub fn set_device(&mut self, device: Option<&InputDevice>)
pub fn get_device(&self) -> Option<InputDevice>
pub fn set_source_device(&mut self, device: Option<&InputDevice>)
pub fn get_source_device(&self) -> Option<InputDevice>
Sourcepub fn downcast<T: FromEvent>(self) -> Result<T, Self>
pub fn downcast<T: FromEvent>(self) -> Result<T, Self>
Tries to downcast to a specific event type.
Sourcepub fn downcast_ref<T: FromEvent>(&self) -> Option<&T>
pub fn downcast_ref<T: FromEvent>(&self) -> Option<&T>
Tries to downcast to a specific event type.
Sourcepub fn downcast_mut<T: FromEvent>(&mut self) -> Option<&mut T>
pub fn downcast_mut<T: FromEvent>(&mut self) -> Option<&mut T>
Tries to downcast to a specific event type.
Trait Implementations§
Source§impl AsMut<ClutterAnyEvent> for Event
impl AsMut<ClutterAnyEvent> for Event
Source§fn as_mut(&mut self) -> &mut ClutterAnyEvent
fn as_mut(&mut self) -> &mut ClutterAnyEvent
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ClutterAnyEvent> for Event
impl AsRef<ClutterAnyEvent> for Event
Source§fn as_ref(&self) -> &ClutterAnyEvent
fn as_ref(&self) -> &ClutterAnyEvent
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl FromGlibPtrBorrow<*mut ClutterAnyEvent> for Event
impl FromGlibPtrBorrow<*mut ClutterAnyEvent> for Event
Source§unsafe fn from_glib_borrow(ptr: *mut ClutterAnyEvent) -> Borrowed<Self>
unsafe fn from_glib_borrow(ptr: *mut ClutterAnyEvent) -> Borrowed<Self>
Safety Read more
Source§impl FromGlibPtrFull<*mut ClutterAnyEvent> for Event
impl FromGlibPtrFull<*mut ClutterAnyEvent> for Event
Source§unsafe fn from_glib_full(ptr: *mut ClutterAnyEvent) -> Self
unsafe fn from_glib_full(ptr: *mut ClutterAnyEvent) -> Self
Safety Read more
Source§impl FromGlibPtrNone<*mut ClutterAnyEvent> for Event
impl FromGlibPtrNone<*mut ClutterAnyEvent> for Event
Source§unsafe fn from_glib_none(ptr: *mut ClutterAnyEvent) -> Self
unsafe fn from_glib_none(ptr: *mut ClutterAnyEvent) -> Self
Safety Read more
Source§impl Ord for Event
impl Ord for Event
Source§impl PartialOrd for Event
impl PartialOrd for Event
Source§impl StaticType for Event
impl StaticType for Event
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl<'a> ToGlibPtr<'a, *const ClutterAnyEvent> for Event
impl<'a> ToGlibPtr<'a, *const ClutterAnyEvent> for Event
type Storage = &'a Event
Source§fn to_glib_none(&'a self) -> Stash<'a, *const ClutterAnyEvent, Self>
fn to_glib_none(&'a self) -> Stash<'a, *const ClutterAnyEvent, Self>
Transfer: none. Read more
Source§fn to_glib_container(&'a self) -> Stash<'a, P, Self>
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
Transfer: container. Read more
Source§fn to_glib_full(&self) -> P
fn to_glib_full(&self) -> P
Transfer: full. Read more
Source§impl<'a> ToGlibPtrMut<'a, *mut ClutterAnyEvent> for Event
impl<'a> ToGlibPtrMut<'a, *mut ClutterAnyEvent> for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more