@@ -502,38 +502,66 @@ impl AppLifecycle {
502
502
all( feature = "serialize" , feature = "bevy_reflect" ) ,
503
503
reflect( Serialize , Deserialize )
504
504
) ]
505
- #[ expect( missing_docs, reason = "Not all docs are written yet, see #3492." ) ]
506
505
pub enum WindowEvent {
506
+ /// An application lifecycle event.
507
507
AppLifecycle ( AppLifecycle ) ,
508
+ /// The user's cursor has entered a window.
508
509
CursorEntered ( CursorEntered ) ,
510
+ ///The user's cursor has left a window.
509
511
CursorLeft ( CursorLeft ) ,
512
+ /// The user's cursor has moved inside a window.
510
513
CursorMoved ( CursorMoved ) ,
514
+ /// A file drag and drop event.
511
515
FileDragAndDrop ( FileDragAndDrop ) ,
516
+ /// An Input Method Editor event.
512
517
Ime ( Ime ) ,
518
+ /// A redraw of all of the application's windows has been requested.
513
519
RequestRedraw ( RequestRedraw ) ,
520
+ /// The window's OS-reported scale factor has changed.
514
521
WindowBackendScaleFactorChanged ( WindowBackendScaleFactorChanged ) ,
522
+ /// The OS has requested that a window be closed.
515
523
WindowCloseRequested ( WindowCloseRequested ) ,
524
+ /// A new window has been created.
516
525
WindowCreated ( WindowCreated ) ,
526
+ /// A window has been destroyed by the underlying windowing system.
517
527
WindowDestroyed ( WindowDestroyed ) ,
528
+ /// A window has received or lost focus.
518
529
WindowFocused ( WindowFocused ) ,
530
+ /// A window has been moved.
519
531
WindowMoved ( WindowMoved ) ,
532
+ /// A window has started or stopped being occluded.
520
533
WindowOccluded ( WindowOccluded ) ,
534
+ /// A window's logical size has changed.
521
535
WindowResized ( WindowResized ) ,
536
+ /// A window's scale factor has changed.
522
537
WindowScaleFactorChanged ( WindowScaleFactorChanged ) ,
538
+ /// Sent for windows that are using the system theme when the system theme changes.
523
539
WindowThemeChanged ( WindowThemeChanged ) ,
524
540
541
+ /// The state of a mouse button has changed.
525
542
MouseButtonInput ( MouseButtonInput ) ,
543
+ /// The physical position of a pointing device has changed.
526
544
MouseMotion ( MouseMotion ) ,
545
+ /// The mouse wheel has moved.
527
546
MouseWheel ( MouseWheel ) ,
528
547
548
+ /// A two finger pinch gesture.
529
549
PinchGesture ( PinchGesture ) ,
550
+ /// A two finger rotation gesture.
530
551
RotationGesture ( RotationGesture ) ,
552
+ /// A double tap gesture.
531
553
DoubleTapGesture ( DoubleTapGesture ) ,
554
+ /// A pan gesture.
532
555
PanGesture ( PanGesture ) ,
533
556
557
+ /// A touch input state change.
534
558
TouchInput ( TouchInput ) ,
535
559
560
+ /// A keyboard input.
536
561
KeyboardInput ( KeyboardInput ) ,
562
+ /// Sent when focus has been lost for all Bevy windows.
563
+ ///
564
+ /// Used to clear pressed key state.
537
565
KeyboardFocusLost ( KeyboardFocusLost ) ,
538
566
}
539
567
0 commit comments