pub enum UiEvent {
Click,
Changed(EventValue),
Submit,
FocusIn,
FocusOut,
WindowResized(Size),
WindowCloseRequested,
MetricsChanged,
Scrolled(Point),
Pointer(PointerEvent),
Custom(AnyValue),
}Expand description
Something that happened in the native UI.
Variants§
Click
Changed(EventValue)
The user changed a control’s value. The native widget already shows it.
Submit
FocusIn
FocusOut
WindowResized(Size)
WindowCloseRequested
MetricsChanged
Platform metrics changed (text size, color scheme, …).
Scrolled(Point)
A ScrollView’s scroll offset changed (by the user or by ScrollTo).
Pointer(PointerEvent)
A pointer event on a drawn custom widget, in its coordinates.
Custom(AnyValue)
An event of a custom widget or native view, of its own type.
Trait Implementations§
impl StructuralPartialEq for UiEvent
Auto Trait Implementations§
impl !RefUnwindSafe for UiEvent
impl !Send for UiEvent
impl !Sync for UiEvent
impl !UnwindSafe for UiEvent
impl Freeze for UiEvent
impl Unpin for UiEvent
impl UnsafeUnpin for UiEvent
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