#[repr(C)]pub union sfEvent {
Show 13 fields
pub type_: sfEventType,
pub size: sfSizeEvent,
pub key: sfKeyEvent,
pub text: sfTextEvent,
pub mouseMove: sfMouseMoveEvent,
pub mouseButton: sfMouseButtonEvent,
pub mouseWheel: sfMouseWheelEvent,
pub mouseWheelScroll: sfMouseWheelScrollEvent,
pub joystickMove: sfJoystickMoveEvent,
pub joystickButton: sfJoystickButtonEvent,
pub joystickConnect: sfJoystickConnectEvent,
pub touch: sfTouchEvent,
pub sensor: sfSensorEvent,
/* private fields */
}Fields§
§type_: sfEventType§size: sfSizeEvent§key: sfKeyEvent§text: sfTextEvent§mouseMove: sfMouseMoveEvent§mouseButton: sfMouseButtonEvent§mouseWheel: sfMouseWheelEvent§mouseWheelScroll: sfMouseWheelScrollEvent§joystickMove: sfJoystickMoveEvent§joystickButton: sfJoystickButtonEvent§joystickConnect: sfJoystickConnectEvent§touch: sfTouchEvent§sensor: sfSensorEventTrait Implementations§
Auto Trait Implementations§
impl Freeze for sfEvent
impl RefUnwindSafe for sfEvent
impl Send for sfEvent
impl Sync for sfEvent
impl Unpin for sfEvent
impl UnwindSafe for sfEvent
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