Structs§
- AnyDrag
- Receives any
Event::Drag(...)variant (both source and target events). - AnyDrag
Source - Receives any
Event::Drag(DragEvent::Source(...))variant. - AnyDrag
Target - Receives any
Event::Drag(DragEvent::Target(...))variant. - AnyFile
Drag - Receives any
Event::FileDragvariant. - AnyFocus
- Receives any
Event::Focusvariant. - AnyIme
- Receives any
Event::Imevariant. - AnyKey
- Receives any
Event::Keyvariant. - AnyPointer
- Receives any
Event::Pointervariant. - AnyUpdate
Phase - Receives any
Event::Window(WindowEvent::UpdatePhase)variant. - AnyWindow
- Receives any
Event::Windowvariant. - Click
- Receives
Event::InteractionClickvariant — a synthetic click generated from a pointer Down+Up sequence or a keyboard trigger (Space/Enteron the focused element). - Double
Click - Receives
Event::InteractionDoubleClickvariant — fired when two rapid pointer clicks occur (pointer up count > 1). Dispatched immediately after the secondClick. - Drag
Cancel - Receives
DragSourceEvent::Cancel— sent to the element being dragged when the drag is cancelled. Cancellation occurs when: - DragEnd
- Receives
DragSourceEvent::End— sent to the element being dragged when the pointer is released.other_elementisSome(target_id)if released over a drop target, orNoneif released without a target under the pointer. - Drag
Move - Receives
DragSourceEvent::Move— sent to the element being dragged as the pointer moves during the drag. - Drag
Source Enter - Receives
DragSourceEvent::Enter— sent to the element being dragged when it enters a potential drop target.other_elementidentifies the drop target that was entered. - Drag
Source Leave - Receives
DragSourceEvent::Leave— sent to the element being dragged when it leaves a potential drop target.other_elementidentifies the drop target that was left. - Drag
Start - Receives
DragSourceEvent::Start— sent to the element being dragged when the drag begins (pointer has moved beyond the drag threshold while a button is held down). - Drag
Target Drop - Receives
DragTargetEvent::Drop— sent to a drop target when a dragged element is released over it.other_elementidentifies the element being dragged. - Drag
Target Enter - Receives
DragTargetEvent::Enter— sent to a drop target when a dragged element enters its bounds.other_elementidentifies the element being dragged. - Drag
Target Leave - Receives
DragTargetEvent::Leave— sent to a drop target when a dragged element leaves its bounds.other_elementidentifies the element being dragged. - Drag
Target Move - Receives
DragTargetEvent::Move— sent to a drop target as the pointer moves while a dragged element is over it.other_elementidentifies the element being dragged. - Event
KeyInfo - Event
Listener Key - Extracted
- Receives
Event::Extracted. This isn’t useful. Don’t use this. - File
Drag Drop - Receives
FileDragEvent::Drop— fired when files are dropped onto a view. - File
Drag Enter - Receives
FileDragEvent::Enter— fired when files being dragged enter a view’s bounds. - File
Drag Leave - Receives
FileDragEvent::Leave— fired when files being dragged leave a view’s bounds. - File
Drag Move - Receives
FileDragEvent::Move— fired as files are dragged over a view. - Focus
Gained - Listens for when an element or its descendants gain focus.
- Focus
Lost - Listens for when an element or its descendants lose focus.
- Gained
Pointer Capture - Receives
PointerCaptureEvent::Gained— fired after a view successfully gains pointer capture (following acx.request_pointer_capture()call in aPointerDownhandler). - ImeCommit
- Receives
Event::ImeCommitvariant — fired when IME composition produces final text. - ImeDelete
Surrounding - Receives
Event::ImeDeleteSurroundingvariant — fired when the IME requests that text surrounding the cursor be deleted (before/after selection). - ImeDisabled
- Receives
Event::ImeDisabledvariant — fired when IME composition ends. - ImeEnabled
- Receives
Event::ImeEnabledvariant — fired when IME composition is activated. - ImePreedit
- Receives
Event::ImePreeditvariant — fired when the IME composition text updates. - KeyDown
- Receives
Event::KeywithKeyState::Down— fired when a key is pressed. - KeyUp
- Receives
Event::KeywithKeyState::Up— fired when a key is released. - Lost
Pointer Capture - Receives
PointerCaptureEvent::Lost— fired when a view loses pointer capture (onPointerUp,PointerCancel, or explicit release). - Pinch
Gesture - Receives
Event::PointerGesturevariant — fired for touchpad pinch/zoom gestures. - Pointer
Cancel - Receives
Event::PointerCancelvariant — fired when a pointer gesture is cancelled by the system (e.g., window loses focus, touch is interrupted). - Pointer
Down - Receives
Event::PointerDownvariant — fired when a pointer button is pressed. - Pointer
Enter - Receives
Event::PointerEntervariant — fired when the pointer enters a view’s bounds. - Pointer
Leave - Receives
Event::PointerLeavevariant — fired when the pointer leaves a view’s bounds. - Pointer
Move - Receives
Event::PointerMovevariant — fired when the pointer moves. - Pointer
Up - Receives
Event::PointerUpvariant — fired when a pointer button is released. - Pointer
Wheel - Receives
Event::PointerScrollvariant — fired for scroll wheel or touchpad scroll. - Secondary
Click - Receives
Event::InteractionSecondaryClickvariant — fired when a secondary (right) pointer button click is detected. - Theme
Changed - Receives
Event::WindowThemeChangedvariant — fired when the system theme changes (e.g., light to dark mode). - Update
Phase BoxTree Commit - Receives
Event::Window(UpdatePhase(BoxTreeCommit))— fired when box tree changes are being committed (finalized before painting). - Update
Phase BoxTree Pending Updates - Receives
Event::Window(UpdatePhase(BoxTreePendingUpdates))— fired when incremental box tree changes for specific views are being processed. - Update
Phase BoxTree Update - Receives
Event::Window(UpdatePhase(BoxTreeUpdate))— fired when the box tree is being updated from layout results. - Update
Phase Complete - Receives
Event::Window(UpdatePhase(Complete))— fired when the entire update cycle is complete and the window is ready for painting if needed. - Update
Phase Layout - Receives
Event::Window(UpdatePhase(Layout))— fired during the layout computation phase. - Update
Phase Paint Present - Receives
Event::Window(UpdatePhase(PaintPresent))— fired when the entire update cycle is complete and the window is ready for painting if needed. - Update
Phase Processing Messages - Receives
Event::Window(UpdatePhase(ProcessingMessages))— fired at the start of the update cycle’s message processing phase. - Update
Phase Style - Receives
Event::Window(UpdatePhase(Style))— fired during the style resolution phase. - Window
Change Under Cursor - Receives
Event::WindowChangeUnderCursorvariant — fired when the element under the cursor changes (e.g., after a layout update or view tree change at the current pointer position). - Window
Close Requested - Receives
Event::WindowCloseRequestedvariant — fired when the system requests that the window close. - Window
Closed - Receives
Event::WindowClosedvariant — fired when the window is closed. - Window
Gained Focus - Receives
Event::WindowFocusGainedvariant — fired when the window gains OS-level input focus (distinct from view-level focus tracked byFocusGained). - Window
Lost Focus - Receives
Event::WindowFocusLostvariant — fired when the window loses OS-level input focus (distinct from view-level focus tracked byFocusLost). - Window
Maximize Changed - Receives
Event::WindowMaximizeChangedvariant — fired when the window’s maximized state changes. The boolean istrueif now maximized. - Window
Moved - Receives
Event::WindowMovedvariant — fired when the window is moved. - Window
Resized - Receives
Event::WindowResizedvariant — fired when the window size changes. - Window
Scale Changed - Receives
Event::WindowScaleChangedvariant — fired when the window’s DPI scale factor changes (e.g., when moved to a different display).