gpui: Add debug assertion to Window::on_action and make docs consistent (#41202)

Improves formatting consistency across various docs, fixes some typos,
and adds a missing `debug_assert_paint` to `Window::on_action` and
`Window::on_action_when`.

Release Notes:

- N/A
This commit is contained in:
Lexi Mattick
2025-11-06 07:55:20 +00:00
committed by GitHub
parent 92cfce568b
commit 273321608f
3 changed files with 113 additions and 105 deletions
+2 -2
View File
@@ -355,7 +355,7 @@ impl Default for NavigationDirection {
}
}
/// A mouse move event from the platform
/// A mouse move event from the platform.
#[derive(Clone, Debug, Default)]
pub struct MouseMoveEvent {
/// The position of the mouse on the window.
@@ -383,7 +383,7 @@ impl MouseMoveEvent {
}
}
/// A mouse wheel event from the platform
/// A mouse wheel event from the platform.
#[derive(Clone, Debug, Default)]
pub struct ScrollWheelEvent {
/// The position of the mouse on the window.