summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorLibravatar Héctor <hector@hecrj.dev>2025-01-06 23:05:32 +0100
committerLibravatar GitHub <noreply@github.com>2025-01-06 23:05:32 +0100
commit634365564ea2bb2284561e8d300cf77a6f7db565 (patch)
treed9478965bbcb80632c6e5c2891036b616b3b8682 /core/src
parentb156087fcf10011b2ee53c74198ba9fc443a1caa (diff)
parentdd08f98f0ebb6fb59801bfa030a56267e45a509b (diff)
downloadiced-634365564ea2bb2284561e8d300cf77a6f7db565.tar.gz
iced-634365564ea2bb2284561e8d300cf77a6f7db565.tar.bz2
iced-634365564ea2bb2284561e8d300cf77a6f7db565.zip
Merge pull request #2627 from bbb651/more-window-settings
Add `maximized` and `fullscreen` to `window::Settings`
Diffstat (limited to 'core/src')
-rw-r--r--core/src/window/settings.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/window/settings.rs b/core/src/window/settings.rs
index c1f36a6c..9432eaaa 100644
--- a/core/src/window/settings.rs
+++ b/core/src/window/settings.rs
@@ -35,6 +35,12 @@ pub struct Settings {
/// The initial logical dimensions of the window.
pub size: Size,
+ /// Whether the window should start maximized.
+ pub maximized: bool,
+
+ /// Whether the window should start fullscreen.
+ pub fullscreen: bool,
+
/// The initial position of the window.
pub position: Position,
@@ -80,6 +86,8 @@ impl Default for Settings {
fn default() -> Self {
Self {
size: Size::new(1024.0, 768.0),
+ maximized: false,
+ fullscreen: false,
position: Position::default(),
min_size: None,
max_size: None,