Code cleanup, clearer comments + removed some unnecessary dupe;
Removed `Frames` struct return for `window::frames()` since we are just redrawing every window anyways; Interface dropping;
This commit is contained in:
parent
fa068b904a
commit
8ba1843080
11 changed files with 59 additions and 103 deletions
|
|
@ -182,7 +182,7 @@ pub mod touch;
|
|||
pub mod widget;
|
||||
pub mod window;
|
||||
|
||||
#[cfg(all(not(feature = "glow"), feature = "multi_window"))]
|
||||
#[cfg(all(not(feature = "glow"), feature = "multi-window"))]
|
||||
pub mod multi_window;
|
||||
|
||||
#[cfg(all(not(feature = "glow"), feature = "wgpu"))]
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ pub trait Application: Sized {
|
|||
window: window::Id,
|
||||
) -> Element<'_, Self::Message, crate::Renderer<Self::Theme>>;
|
||||
|
||||
/// Returns the scale factor of the [`Application`].
|
||||
/// Returns the scale factor of the `window` of the [`Application`].
|
||||
///
|
||||
/// It can be used to dynamically control the size of the UI at runtime
|
||||
/// (i.e. zooming).
|
||||
|
|
@ -160,7 +160,8 @@ pub trait Application: Sized {
|
|||
false
|
||||
}
|
||||
|
||||
/// Requests that the [`window`] be closed.
|
||||
/// Returns the `Self::Message` that should be processed when a `window` is requested to
|
||||
/// be closed.
|
||||
fn close_requested(&self, window: window::Id) -> Self::Message;
|
||||
|
||||
/// Runs the [`Application`].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue