Struct freya::elements::events::PlatformEventData
pub struct PlatformEventData { /* private fields */ }
Expand description
A platform specific event.
Implementations§
§impl PlatformEventData
impl PlatformEventData
pub fn new(event: Box<dyn Any>) -> PlatformEventData
pub fn downcast<T>(&self) -> Option<&T>where T: 'static,
pub fn downcast_mut<T>(&mut self) -> Option<&mut T>where T: 'static,
pub fn into_inner<T>(self) -> Option<T>where T: 'static,
Trait Implementations§
§impl From<&PlatformEventData> for KeyboardData
impl From<&PlatformEventData> for KeyboardData
§fn from(val: &PlatformEventData) -> KeyboardData
fn from(val: &PlatformEventData) -> KeyboardData
Converts to this type from the input type.
§impl From<&PlatformEventData> for MouseData
impl From<&PlatformEventData> for MouseData
§fn from(val: &PlatformEventData) -> MouseData
fn from(val: &PlatformEventData) -> MouseData
Converts to this type from the input type.
§impl From<&PlatformEventData> for PointerData
impl From<&PlatformEventData> for PointerData
§fn from(val: &PlatformEventData) -> PointerData
fn from(val: &PlatformEventData) -> PointerData
Converts to this type from the input type.
§impl From<&PlatformEventData> for TouchData
impl From<&PlatformEventData> for TouchData
§fn from(val: &PlatformEventData) -> TouchData
fn from(val: &PlatformEventData) -> TouchData
Converts to this type from the input type.
§impl From<&PlatformEventData> for WheelData
impl From<&PlatformEventData> for WheelData
§fn from(val: &PlatformEventData) -> WheelData
fn from(val: &PlatformEventData) -> WheelData
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PlatformEventData
impl !Send for PlatformEventData
impl !Sync for PlatformEventData
impl Unpin for PlatformEventData
impl !UnwindSafe for PlatformEventData
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.