pub enum UiEventPayload {
Show 13 variants
Click,
PointerDown {
pointer: PointerData,
},
PointerMove {
pointer: PointerData,
},
PointerUp {
pointer: PointerData,
},
Wheel {
delta: WheelDelta,
},
Keyboard {
event: KeyboardEvent,
},
Input {
text: String,
},
CompositionStart,
CompositionUpdate {
text: String,
cursor: Option<Range<usize>>,
},
CompositionEnd,
Focus,
Blur,
Change {
value: Option<String>,
},
}Variants§
Click
PointerDown
Fields
§
pointer: PointerDataPointerMove
Fields
§
pointer: PointerDataPointerUp
Fields
§
pointer: PointerDataWheel
Fields
§
delta: WheelDeltaKeyboard
Fields
§
event: KeyboardEventInput
CompositionStart
CompositionUpdate
CompositionEnd
Focus
Blur
Change
Implementations§
Source§impl UiEventPayload
impl UiEventPayload
pub const fn kind(&self) -> UiEventKind
Trait Implementations§
Source§impl Clone for UiEventPayload
impl Clone for UiEventPayload
Source§fn clone(&self) -> UiEventPayload
fn clone(&self) -> UiEventPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UiEventPayload
impl Debug for UiEventPayload
impl Eq for UiEventPayload
Source§impl PartialEq for UiEventPayload
impl PartialEq for UiEventPayload
impl StructuralPartialEq for UiEventPayload
Auto Trait Implementations§
impl Freeze for UiEventPayload
impl RefUnwindSafe for UiEventPayload
impl Send for UiEventPayload
impl Sync for UiEventPayload
impl Unpin for UiEventPayload
impl UnsafeUnpin for UiEventPayload
impl UnwindSafe for UiEventPayload
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