pub enum EventKind {
Route,
Deliver,
Consume,
Focus,
Gesture,
HitTest,
}Expand description
日志语义分类。UI 面板按 kind 着色/分组。
Variants§
Route
dispatch_event 入口:命中者 / 捕获目标 / 重定向
Deliver
deliver_event 投递到某个 element
Consume
deliver_event 返回 true = 该 element 消费了事件, 阻止冒泡
Focus
request_focus / clear_focus / set_focus_visible
Gesture
resolve_gesture_arena 产生胜者
HitTest
hit_test 结果(overlay vs main tree)
Trait Implementations§
impl Copy for EventKind
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Forget for EventKind
impl Freeze for EventKind
impl Move for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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