diff options
author | 2024-01-09 02:37:45 -0600 | |
---|---|---|
committer | 2024-01-09 02:43:25 -0600 | |
commit | 2aa2b1712dfdc93762ebe0958614154920068731 (patch) | |
tree | 96b93b09e8ba5ea28db50a2d525e0639c8a4bca5 /winit/src/application.rs | |
parent | 6c9dfbf01ec865f2ccf3b33cc8902d4e7141cd4f (diff) | |
download | iced-2aa2b1712dfdc93762ebe0958614154920068731.tar.gz iced-2aa2b1712dfdc93762ebe0958614154920068731.tar.bz2 iced-2aa2b1712dfdc93762ebe0958614154920068731.zip |
Implemented fetch_maximized and fetch_minimized
Diffstat (limited to 'winit/src/application.rs')
-rw-r--r-- | winit/src/application.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index d9700075..35a35872 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -742,9 +742,19 @@ pub fn run_command<A, C, E>( ))) .expect("Send message to event loop"); } + window::Action::FetchMaximized(_id, callback) => { + proxy + .send_event(callback(window.is_maximized())) + .expect("Send message to event loop"); + } window::Action::Maximize(_id, maximized) => { window.set_maximized(maximized); } + window::Action::FetchMinimized(_id, callback) => { + proxy + .send_event(callback(window.is_minimized())) + .expect("Send message to event loop"); + } window::Action::Minimize(_id, minimized) => { window.set_minimized(minimized); } |