Struct animate::KeyEvent [−][src]
pub struct KeyEvent(_);
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<ClutterKeyEvent> for KeyEvent
[src]
fn as_mut(&mut self) -> &mut ClutterKeyEvent
[src]
impl AsRef<ClutterKeyEvent> for KeyEvent
[src]
fn as_ref(&self) -> &ClutterKeyEvent
[src]
impl Clone for KeyEvent
[src]
impl Debug for KeyEvent
[src]
impl Deref for KeyEvent
[src]
impl DerefMut for KeyEvent
[src]
impl Eq for KeyEvent
[src]
impl FromEvent for KeyEvent
[src]
impl FromGlibPtrBorrow<*mut ClutterKeyEvent> for KeyEvent
[src]
unsafe fn from_glib_borrow(ptr: *mut ClutterKeyEvent) -> Borrowed<Self>
[src]
impl FromGlibPtrFull<*mut ClutterKeyEvent> for KeyEvent
[src]
unsafe fn from_glib_full(ptr: *mut ClutterKeyEvent) -> Self
[src]
impl FromGlibPtrNone<*mut ClutterKeyEvent> for KeyEvent
[src]
unsafe fn from_glib_none(ptr: *mut ClutterKeyEvent) -> Self
[src]
impl Hash for KeyEvent
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for KeyEvent
[src]
fn cmp(&self, other: &KeyEvent) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
pub fn max(self, other: Self) -> Self#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
pub fn min(self, other: Self) -> Self#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
#[must_use]
pub fn clamp(self, min: Self, max: Self) -> Selfimpl PartialEq<KeyEvent> for KeyEvent
[src]
impl PartialOrd<KeyEvent> for KeyEvent
[src]
fn partial_cmp(&self, other: &KeyEvent) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl StructuralEq for KeyEvent
[src]
impl StructuralPartialEq for KeyEvent
[src]
impl<'a> ToGlibPtr<'a, *const ClutterKeyEvent> for KeyEvent
[src]
type Storage = &'a Self
fn to_glib_none(&'a self) -> Stash<'a, *const ClutterKeyEvent, Self>
[src]
pub fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
pub fn to_glib_full(&self) -> P
[src]
impl<'a> ToGlibPtrMut<'a, *mut ClutterKeyEvent> for KeyEvent
[src]
type Storage = &'a mut Self
fn to_glib_none_mut(&'a mut self) -> StashMut<'a, *mut ClutterKeyEvent, Self>
[src]
Auto Trait Implementations
impl RefUnwindSafe for KeyEvent
impl !Send for KeyEvent
impl !Sync for KeyEvent
impl Unpin for KeyEvent
impl UnwindSafe for KeyEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,