Skip to content

Commit 7c3d34d

Browse files
committed
Add doc comment for handle_window_event
1 parent f69ff61 commit 7c3d34d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ impl WinitPlatform {
157157
_ => (),
158158
}
159159
}
160+
161+
/// Handles a winit window event.
162+
///
163+
/// This function performs the following actions (depends on the event):
164+
///
165+
/// * window size / dpi factor changes are applied
166+
/// * keyboard state is updated
167+
/// * mouse state is updated
160168
pub fn handle_window_event(&mut self, io: &mut Io, window: &Window, event: &WindowEvent) {
161169
match *event {
162170
WindowEvent::Resized(physical_size) => {

0 commit comments

Comments
 (0)