deny(missing_docs) for bevy_window (#19655)
# Objective Write some more boilerplate-y docs, to get one crate closer to closing https://github.com/bevyengine/bevy/issues/3492.
This commit is contained in:
parent
b129764924
commit
d2e1f725db
@ -502,38 +502,66 @@ impl AppLifecycle {
|
|||||||
all(feature = "serialize", feature = "bevy_reflect"),
|
all(feature = "serialize", feature = "bevy_reflect"),
|
||||||
reflect(Serialize, Deserialize)
|
reflect(Serialize, Deserialize)
|
||||||
)]
|
)]
|
||||||
#[expect(missing_docs, reason = "Not all docs are written yet, see #3492.")]
|
|
||||||
pub enum WindowEvent {
|
pub enum WindowEvent {
|
||||||
|
/// An application lifecycle event.
|
||||||
AppLifecycle(AppLifecycle),
|
AppLifecycle(AppLifecycle),
|
||||||
|
/// The user's cursor has entered a window.
|
||||||
CursorEntered(CursorEntered),
|
CursorEntered(CursorEntered),
|
||||||
|
///The user's cursor has left a window.
|
||||||
CursorLeft(CursorLeft),
|
CursorLeft(CursorLeft),
|
||||||
|
/// The user's cursor has moved inside a window.
|
||||||
CursorMoved(CursorMoved),
|
CursorMoved(CursorMoved),
|
||||||
|
/// A file drag and drop event.
|
||||||
FileDragAndDrop(FileDragAndDrop),
|
FileDragAndDrop(FileDragAndDrop),
|
||||||
|
/// An Input Method Editor event.
|
||||||
Ime(Ime),
|
Ime(Ime),
|
||||||
|
/// A redraw of all of the application's windows has been requested.
|
||||||
RequestRedraw(RequestRedraw),
|
RequestRedraw(RequestRedraw),
|
||||||
|
/// The window's OS-reported scale factor has changed.
|
||||||
WindowBackendScaleFactorChanged(WindowBackendScaleFactorChanged),
|
WindowBackendScaleFactorChanged(WindowBackendScaleFactorChanged),
|
||||||
|
/// The OS has requested that a window be closed.
|
||||||
WindowCloseRequested(WindowCloseRequested),
|
WindowCloseRequested(WindowCloseRequested),
|
||||||
|
/// A new window has been created.
|
||||||
WindowCreated(WindowCreated),
|
WindowCreated(WindowCreated),
|
||||||
|
/// A window has been destroyed by the underlying windowing system.
|
||||||
WindowDestroyed(WindowDestroyed),
|
WindowDestroyed(WindowDestroyed),
|
||||||
|
/// A window has received or lost focus.
|
||||||
WindowFocused(WindowFocused),
|
WindowFocused(WindowFocused),
|
||||||
|
/// A window has been moved.
|
||||||
WindowMoved(WindowMoved),
|
WindowMoved(WindowMoved),
|
||||||
|
/// A window has started or stopped being occluded.
|
||||||
WindowOccluded(WindowOccluded),
|
WindowOccluded(WindowOccluded),
|
||||||
|
/// A window's logical size has changed.
|
||||||
WindowResized(WindowResized),
|
WindowResized(WindowResized),
|
||||||
|
/// A window's scale factor has changed.
|
||||||
WindowScaleFactorChanged(WindowScaleFactorChanged),
|
WindowScaleFactorChanged(WindowScaleFactorChanged),
|
||||||
|
/// Sent for windows that are using the system theme when the system theme changes.
|
||||||
WindowThemeChanged(WindowThemeChanged),
|
WindowThemeChanged(WindowThemeChanged),
|
||||||
|
|
||||||
|
/// The state of a mouse button has changed.
|
||||||
MouseButtonInput(MouseButtonInput),
|
MouseButtonInput(MouseButtonInput),
|
||||||
|
/// The physical position of a pointing device has changed.
|
||||||
MouseMotion(MouseMotion),
|
MouseMotion(MouseMotion),
|
||||||
|
/// The mouse wheel has moved.
|
||||||
MouseWheel(MouseWheel),
|
MouseWheel(MouseWheel),
|
||||||
|
|
||||||
|
/// A two finger pinch gesture.
|
||||||
PinchGesture(PinchGesture),
|
PinchGesture(PinchGesture),
|
||||||
|
/// A two finger rotation gesture.
|
||||||
RotationGesture(RotationGesture),
|
RotationGesture(RotationGesture),
|
||||||
|
/// A double tap gesture.
|
||||||
DoubleTapGesture(DoubleTapGesture),
|
DoubleTapGesture(DoubleTapGesture),
|
||||||
|
/// A pan gesture.
|
||||||
PanGesture(PanGesture),
|
PanGesture(PanGesture),
|
||||||
|
|
||||||
|
/// A touch input state change.
|
||||||
TouchInput(TouchInput),
|
TouchInput(TouchInput),
|
||||||
|
|
||||||
|
/// A keyboard input.
|
||||||
KeyboardInput(KeyboardInput),
|
KeyboardInput(KeyboardInput),
|
||||||
|
/// Sent when focus has been lost for all Bevy windows.
|
||||||
|
///
|
||||||
|
/// Used to clear pressed key state.
|
||||||
KeyboardFocusLost(KeyboardFocusLost),
|
KeyboardFocusLost(KeyboardFocusLost),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user