mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Correct RequestRedraw documentation (#8640)
# Objective - Since the `RequestRedraw` event triggers the bevy app to run `update` in `bevy_app::app::App`, the documentation should state that all the windows in the application and its sub-apps are going to get redrawn, rather than a single window. ## Solution - Change `RequestRedraw` documentation in `bevy_window` to mention every window.
This commit is contained in:
parent
335afbf77a
commit
c475a2a954
1 changed files with 2 additions and 3 deletions
|
@ -24,9 +24,8 @@ pub struct WindowResized {
|
|||
pub height: f32,
|
||||
}
|
||||
|
||||
// TODO: This would redraw all windows ? If yes, update docs to reflect this
|
||||
/// An event that indicates the window should redraw, even if its control flow is set to `Wait` and
|
||||
/// there have been no window events.
|
||||
/// An event that indicates all of the application's windows should be redrawn,
|
||||
/// even if their control flow is set to `Wait` and there have been no window events.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Reflect, FromReflect)]
|
||||
#[reflect(Debug, PartialEq)]
|
||||
#[cfg_attr(
|
||||
|
|
Loading…
Reference in a new issue