diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/application.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/application.rs b/src/application.rs index 7b292e23..5d16b40f 100644 --- a/src/application.rs +++ b/src/application.rs @@ -212,6 +212,13 @@ impl<P: Program> Application<P> { self } + /// Sets the [`window::Settings`] of the [`Application`]. + /// + /// Overwrites any previous [`window::Settings`]. + pub fn window(self, window: window::Settings) -> Self { + Self { window, ..self } + } + /// Sets the [`window::Settings::position`] to [`window::Position::Centered`] in the [`Application`]. pub fn centered(self) -> Self { Self { @@ -288,7 +295,7 @@ impl<P: Program> Application<P> { ..self } } - + /// Sets the [`window::Settings::level`] of the [`Application`]. pub fn level(self, level: window::Level) -> Self { Self { |