winit-sonoma-fix/src/platform_impl/web
Amr Bashir 94688a62f0
On Windows and macOS, add API to enable/disable window controls (#2537)
* On Windows and macOS, add API to enable/disable window controls

* fix build

* missing import

* use `WindowButtons` flags

* rename to `[set_]enabled_buttons`

* add example, fix windows impl for minimize

* macOS: Fix button enabling close/minimize while disabling maximized

* Update src/platform_impl/windows/window.rs

Co-authored-by: Kirill Chibisov <contact@kchibisov.com>

* compose the flags on a sep line, use `bool::then`

Co-authored-by: Mads Marquart <mads@marquart.dk>
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
2022-11-29 11:03:51 +01:00
..
event_loop Only build, but don't run tests in MSRV CI (#2558) 2022-11-23 13:07:58 +01:00
web_sys WindowBuilderExtWebSys::with_prevent_default disables scrolling on both mobile and desktop (previously just desktop) (#2216) 2022-09-04 05:45:30 +02:00
device.rs Rename internal structs for consistency (#2149) 2022-03-18 14:09:39 +01:00
error.rs Fix web errors (#1040) 2019-07-10 18:54:54 -04:00
mod.rs Simplify internal type construction 2022-09-21 11:04:28 +03:00
monitor.rs Simplify internal type construction 2022-09-21 11:04:28 +03:00
window.rs On Windows and macOS, add API to enable/disable window controls (#2537) 2022-11-29 11:03:51 +01:00