summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorLibravatar bbb651 <bar.ye651@gmail.com>2024-10-04 21:20:43 +0300
committerLibravatar bbb651 <bar.ye651@gmail.com>2024-10-04 21:20:43 +0300
commitdd08f98f0ebb6fb59801bfa030a56267e45a509b (patch)
tree2c05243605c469e418110e4f9c14f4d3ad3342c4 /core/src
parent13c649881edfda9ab0215c7353a5236e07ef749d (diff)
downloadiced-dd08f98f0ebb6fb59801bfa030a56267e45a509b.tar.gz
iced-dd08f98f0ebb6fb59801bfa030a56267e45a509b.tar.bz2
iced-dd08f98f0ebb6fb59801bfa030a56267e45a509b.zip
Add `window::Settings::fullscreen`
Corresponds to `winit::window::WindowAttributes::with_fullscreen`. Currently only allows to set `Fullscreen::Borderless(None)` meaning borderless on the current monitor, exclusive fullscreen does not make sense for a GUI and iced does not expose monitors yet.
Diffstat (limited to 'core/src')
-rw-r--r--core/src/window/settings.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/window/settings.rs b/core/src/window/settings.rs
index 13822e82..e87fcc83 100644
--- a/core/src/window/settings.rs
+++ b/core/src/window/settings.rs
@@ -37,6 +37,9 @@ pub struct Settings {
/// 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,
@@ -83,6 +86,7 @@ impl Default for Settings {
Self {
size: Size::new(1024.0, 768.0),
maximized: false,
+ fullscreen: false,
position: Position::default(),
min_size: None,
max_size: None,