winit-sonoma-fix/examples
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
..
child_window.rs On X11, allow building window with parent 2022-10-09 23:12:23 +03:00
control_flow.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
cursor.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
cursor_grab.rs Refine Window::set_cursor_grab API 2022-06-13 09:43:14 +03:00
custom_events.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
drag_window.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
fullscreen.rs Explicitly specify minimum supported rust version 2022-07-29 14:39:41 +03:00
handling_close.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
icon.png Window icons (#497) 2018-05-07 17:36:21 -04:00
ime.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
monitor_list.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
mouse_wheel.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
multithreaded.rs Add Window::set_window_level API 2022-11-26 04:50:58 +03:00
multiwindow.rs examples/multiwindow.rs: ignore synthetic key press events 2022-07-03 22:25:08 +03:00
request_redraw.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
request_redraw_threaded.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
resizable.rs Less redundancy and improve fullscreen in examples 2022-07-01 14:07:10 +03:00
theme.rs Add Window::set_theme (#2553) 2022-11-29 10:05:51 +01:00
timer.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
touchpad_gestures.rs Add touchpad magnify and rotate gestures support for macOS (#2157) 2022-08-16 17:20:06 +02:00
transparent.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
video_modes.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
web.rs Add web_aspect_ratio example (#2209) 2022-09-03 18:26:24 +02:00
web_aspect_ratio.rs Add web_aspect_ratio example (#2209) 2022-09-03 18:26:24 +02:00
window.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
window_buttons.rs On Windows and macOS, add API to enable/disable window controls (#2537) 2022-11-29 11:03:51 +01:00
window_debug.rs Make set_device_event_filter non-mut 2022-06-10 15:39:02 +03:00
window_icon.rs Run clippy on CI 2022-06-10 13:43:33 +03:00
window_resize_increments.rs Allow changing resize increments after window creation 2022-09-03 21:50:22 +03:00
window_run_return.rs examples/window_run_return: Enable on Android (#2321) 2022-06-13 16:40:21 +02:00