SAppEvent

Struct SAppEvent 

Source
pub struct SAppEvent {
Show 16 fields pub event_type: SAppEventType, pub frame_count: u32, pub key_code: SAppKeycode, pub char_code: u32, pub modifiers: SAppModifier, pub mouse_button: SAppMouseButton, pub mouse_x: f32, pub mouse_y: f32, pub scroll_x: f32, pub scroll_y: f32, pub num_touches: i32, pub touches: [SAppTouchPoint; 8], pub window_width: i32, pub window_height: i32, pub framebuffer_width: i32, pub framebuffer_height: i32,
}

Fields§

§event_type: SAppEventType§frame_count: u32§key_code: SAppKeycode§char_code: u32§modifiers: SAppModifier§mouse_button: SAppMouseButton§mouse_x: f32§mouse_y: f32§scroll_x: f32§scroll_y: f32§num_touches: i32§touches: [SAppTouchPoint; 8]§window_width: i32§window_height: i32§framebuffer_width: i32§framebuffer_height: i32

Trait Implementations§

Source§

impl Debug for SAppEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.