#[repr(C)]pub struct TaggedEvent {
pub ty: EventType2,
/* private fields */
}
Fields§
§ty: EventType2
Implementations§
Source§impl TaggedEvent
impl TaggedEvent
pub fn new_key(key: KeyInput) -> Self
pub fn new_mouse(mouse: MouseInput) -> Self
pub fn new_touch(touch: TouchInput) -> Self
pub fn new_axis(axis: AxisInput) -> Self
pub fn new_raw_midi(raw_midi: RawMidiInput) -> Self
pub fn key(&self) -> Option<KeyInput>
pub fn mouse_v0(&self) -> Option<MouseInput>
pub fn mouse(&self) -> Option<MouseInput>
pub fn touch_v0(&self) -> Option<TouchInput>
pub fn touch(&self) -> Option<TouchInput>
pub fn axis(&self) -> Option<AxisInput>
pub fn raw_midi(&self) -> Option<RawMidiInput>
Trait Implementations§
Source§impl CheckedBitPattern for TaggedEvent
impl CheckedBitPattern for TaggedEvent
Source§type Bits = TaggedEventBits
type Bits = TaggedEventBits
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &TaggedEventBits) -> bool
fn is_valid_bit_pattern(bits: &TaggedEventBits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Clone for TaggedEvent
impl Clone for TaggedEvent
Source§fn clone(&self) -> TaggedEvent
fn clone(&self) -> TaggedEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for TaggedEvent
impl NoUninit for TaggedEvent
Auto Trait Implementations§
impl Freeze for TaggedEvent
impl RefUnwindSafe for TaggedEvent
impl Send for TaggedEvent
impl Sync for TaggedEvent
impl Unpin for TaggedEvent
impl UnwindSafe for TaggedEvent
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