Skip to content

Commit 8543f6d

Browse files
committed
Note the status quo on RedrawRequested
And link to #2640
1 parent f76fa73 commit 8543f6d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/event.rs

+9
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,16 @@ pub enum Event<'a, T: 'static> {
202202
/// Mainly of interest to applications with mostly-static graphics that avoid redrawing unless
203203
/// something changes, like most non-game GUIs.
204204
///
205+
///
206+
/// ## Platform-specific
207+
///
208+
/// - **macOS / iOS:** Due to implementation difficulties, this will often, but not always, be
209+
/// emitted directly inside `drawRect:`, with neither a preceding [`MainEventsCleared`] nor
210+
/// subsequent `RedrawEventsCleared`. See [#2640] for work on this.
211+
///
205212
/// [`MainEventsCleared`]: Self::MainEventsCleared
213+
/// [`RedrawEventsCleared`]: Self::RedrawEventsCleared
214+
/// [#2640]: https://github.com/rust-windowing/winit/issues/2640
206215
RedrawRequested(WindowId),
207216

208217
/// Emitted after all [`RedrawRequested`] events have been processed and control flow is about to

0 commit comments

Comments
 (0)