Add window method to Application
This commit is contained in:
parent
3334cf670b
commit
0785b334e7
1 changed files with 8 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue