Struct ark_api::applet::TaggedEvent
source · [−]#[repr(C)]pub struct TaggedEvent {
pub ty: EventType2,
/* private fields */
}
Fields
ty: EventType2
Implementations
sourceimpl TaggedEvent
impl TaggedEvent
pub fn new_key(key: KeyInput) -> TaggedEvent
pub fn new_mouse(mouse: MouseInput) -> TaggedEvent
pub fn new_touch(touch: TouchInput) -> TaggedEvent
pub fn new_axis(axis: AxisInput) -> TaggedEvent
pub fn new_raw_midi(raw_midi: RawMidiInput) -> TaggedEvent
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
sourceimpl CheckedBitPattern for TaggedEvent
impl CheckedBitPattern for TaggedEvent
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
. Read more
sourcefn 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
. Read more
sourceimpl Clone for TaggedEvent
impl Clone for TaggedEvent
sourcefn clone(&self) -> TaggedEvent
fn clone(&self) -> TaggedEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for TaggedEvent
impl NoUninit for TaggedEvent
Auto Trait Implementations
impl RefUnwindSafe for TaggedEvent
impl Send for TaggedEvent
impl Sync for TaggedEvent
impl Unpin for TaggedEvent
impl UnwindSafe for TaggedEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more