Skip to main content

Module el

Module el 

Source

Structs§

AnyDrag
Receives any Event::Drag(...) variant (both source and target events).
AnyDragSource
Receives any Event::Drag(DragEvent::Source(...)) variant.
AnyDragTarget
Receives any Event::Drag(DragEvent::Target(...)) variant.
AnyFileDrag
Receives any Event::FileDrag variant.
AnyFocus
Receives any Event::Focus variant.
AnyIme
Receives any Event::Ime variant.
AnyKey
Receives any Event::Key variant.
AnyPointer
Receives any Event::Pointer variant.
AnyUpdatePhase
Receives any Event::Window(WindowEvent::UpdatePhase) variant.
AnyWindow
Receives any Event::Window variant.
Click
Receives Event::Interaction Click variant — a synthetic click generated from a pointer Down+Up sequence or a keyboard trigger (Space/Enter on the focused element).
DoubleClick
Receives Event::Interaction DoubleClick variant — fired when two rapid pointer clicks occur (pointer up count > 1). Dispatched immediately after the second Click.
DragCancel
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_element is Some(target_id) if released over a drop target, or None if released without a target under the pointer.
DragMove
Receives DragSourceEvent::Move — sent to the element being dragged as the pointer moves during the drag.
DragSourceEnter
Receives DragSourceEvent::Enter — sent to the element being dragged when it enters a potential drop target. other_element identifies the drop target that was entered.
DragSourceLeave
Receives DragSourceEvent::Leave — sent to the element being dragged when it leaves a potential drop target. other_element identifies the drop target that was left.
DragStart
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).
DragTargetDrop
Receives DragTargetEvent::Drop — sent to a drop target when a dragged element is released over it. other_element identifies the element being dragged.
DragTargetEnter
Receives DragTargetEvent::Enter — sent to a drop target when a dragged element enters its bounds. other_element identifies the element being dragged.
DragTargetLeave
Receives DragTargetEvent::Leave — sent to a drop target when a dragged element leaves its bounds. other_element identifies the element being dragged.
DragTargetMove
Receives DragTargetEvent::Move — sent to a drop target as the pointer moves while a dragged element is over it. other_element identifies the element being dragged.
EventKeyInfo
EventListenerKey
Extracted
Receives Event::Extracted. This isn’t useful. Don’t use this.
FileDragDrop
Receives FileDragEvent::Drop — fired when files are dropped onto a view.
FileDragEnter
Receives FileDragEvent::Enter — fired when files being dragged enter a view’s bounds.
FileDragLeave
Receives FileDragEvent::Leave — fired when files being dragged leave a view’s bounds.
FileDragMove
Receives FileDragEvent::Move — fired as files are dragged over a view.
FocusGained
Listens for when an element or its descendants gain focus.
FocusLost
Listens for when an element or its descendants lose focus.
GainedPointerCapture
Receives PointerCaptureEvent::Gained — fired after a view successfully gains pointer capture (following a cx.request_pointer_capture() call in a PointerDown handler).
ImeCommit
Receives Event::Ime Commit variant — fired when IME composition produces final text.
ImeDeleteSurrounding
Receives Event::Ime DeleteSurrounding variant — fired when the IME requests that text surrounding the cursor be deleted (before/after selection).
ImeDisabled
Receives Event::Ime Disabled variant — fired when IME composition ends.
ImeEnabled
Receives Event::Ime Enabled variant — fired when IME composition is activated.
ImePreedit
Receives Event::Ime Preedit variant — fired when the IME composition text updates.
KeyDown
Receives Event::Key with KeyState::Down — fired when a key is pressed.
KeyUp
Receives Event::Key with KeyState::Up — fired when a key is released.
LostPointerCapture
Receives PointerCaptureEvent::Lost — fired when a view loses pointer capture (on PointerUp, PointerCancel, or explicit release).
PinchGesture
Receives Event::Pointer Gesture variant — fired for touchpad pinch/zoom gestures.
PointerCancel
Receives Event::Pointer Cancel variant — fired when a pointer gesture is cancelled by the system (e.g., window loses focus, touch is interrupted).
PointerDown
Receives Event::Pointer Down variant — fired when a pointer button is pressed.
PointerEnter
Receives Event::Pointer Enter variant — fired when the pointer enters a view’s bounds.
PointerLeave
Receives Event::Pointer Leave variant — fired when the pointer leaves a view’s bounds.
PointerMove
Receives Event::Pointer Move variant — fired when the pointer moves.
PointerUp
Receives Event::Pointer Up variant — fired when a pointer button is released.
PointerWheel
Receives Event::Pointer Scroll variant — fired for scroll wheel or touchpad scroll.
SecondaryClick
Receives Event::Interaction SecondaryClick variant — fired when a secondary (right) pointer button click is detected.
ThemeChanged
Receives Event::Window ThemeChanged variant — fired when the system theme changes (e.g., light to dark mode).
UpdatePhaseBoxTreeCommit
Receives Event::Window(UpdatePhase(BoxTreeCommit)) — fired when box tree changes are being committed (finalized before painting).
UpdatePhaseBoxTreePendingUpdates
Receives Event::Window(UpdatePhase(BoxTreePendingUpdates)) — fired when incremental box tree changes for specific views are being processed.
UpdatePhaseBoxTreeUpdate
Receives Event::Window(UpdatePhase(BoxTreeUpdate)) — fired when the box tree is being updated from layout results.
UpdatePhaseComplete
Receives Event::Window(UpdatePhase(Complete)) — fired when the entire update cycle is complete and the window is ready for painting if needed.
UpdatePhaseLayout
Receives Event::Window(UpdatePhase(Layout)) — fired during the layout computation phase.
UpdatePhasePaintPresent
Receives Event::Window(UpdatePhase(PaintPresent)) — fired when the entire update cycle is complete and the window is ready for painting if needed.
UpdatePhaseProcessingMessages
Receives Event::Window(UpdatePhase(ProcessingMessages)) — fired at the start of the update cycle’s message processing phase.
UpdatePhaseStyle
Receives Event::Window(UpdatePhase(Style)) — fired during the style resolution phase.
WindowChangeUnderCursor
Receives Event::Window ChangeUnderCursor variant — fired when the element under the cursor changes (e.g., after a layout update or view tree change at the current pointer position).
WindowCloseRequested
Receives Event::Window CloseRequested variant — fired when the system requests that the window close.
WindowClosed
Receives Event::Window Closed variant — fired when the window is closed.
WindowGainedFocus
Receives Event::Window FocusGained variant — fired when the window gains OS-level input focus (distinct from view-level focus tracked by FocusGained).
WindowLostFocus
Receives Event::Window FocusLost variant — fired when the window loses OS-level input focus (distinct from view-level focus tracked by FocusLost).
WindowMaximizeChanged
Receives Event::Window MaximizeChanged variant — fired when the window’s maximized state changes. The boolean is true if now maximized.
WindowMoved
Receives Event::Window Moved variant — fired when the window is moved.
WindowResized
Receives Event::Window Resized variant — fired when the window size changes.
WindowScaleChanged
Receives Event::Window ScaleChanged variant — fired when the window’s DPI scale factor changes (e.g., when moved to a different display).

Traits§

EventListenerTrait