winit/src
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
..
platform Add Window::set_theme (#2553) 2022-11-29 10:05:51 +01:00
platform_impl On Windows and macOS, add API to enable/disable window controls (#2537) 2022-11-29 11:03:51 +01:00
dpi.rs Windows: respect min/max sizes when creating the window (#2393) 2022-08-04 23:03:55 +02:00
error.rs Always use f as the argument name for &mut std::fmt::Formatter (#1023) 2019-07-09 17:49:07 -04:00
event.rs Rework theme API 2022-10-18 21:34:36 +03:00
event_loop.rs Android: rework backend to use android-activity crate (#2444) 2022-11-10 17:55:19 +01:00
icon.rs Documentation cleanup (#2328) 2022-06-11 18:57:19 +02:00
lib.rs Generate docs.rs documentation with doc_auto_cfg (#2358) 2022-10-25 00:02:52 +02: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