Skip to content

Commit

Permalink
Note the status quo on RedrawRequested
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jan 21, 2023
1 parent a867032 commit db0d918
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,16 @@ pub enum Event<'a, T: 'static> {
/// Mainly of interest to applications with mostly-static graphics that avoid redrawing unless
/// something changes, like most non-game GUIs.
///
///
/// ## Platform-specific
///
/// - **macOS / iOS:** Due to implementation difficulties, this will often, but not always, be
/// emitted directly inside `drawRect:`, with neither a preceding [`MainEventsCleared`] nor
/// subsequent `RedrawEventsCleared`. See [#2640] for work on this.
///
/// [`MainEventsCleared`]: Self::MainEventsCleared
/// [`RedrawEventsCleared`]: Self::RedrawEventsCleared
/// [#2640]: https://github.com/rust-windowing/winit/issues/2640
RedrawRequested(WindowId),

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

0 comments on commit db0d918

Please sign in to comment.