winit-sonoma-fix/examples
Ngo Iok Ui (Wu Yu Wei) da7422c6e1
Add WindowBuilder::with_parent_window (#2548)
* On macOS, add `WindowBuilderExtMacOS::with_parent_window`

* Replace Parent with Option<Id<NSWindow, Shared>>

* Add addChildWindow method on NSWindow instead

* Update with_parent_window to be unsafe fn

* Add unified `with_parent_window`

* Remove `WindowBuilderExtUnix::with_parent`

* Remove `WindowBuilderExtWindows::with_parent_window`

* Clean up CI warnings

* Update CHANGELOG.md

It's `WindowBuilderExtX11` rather than `WindowBuilderExtUnix`

* Rename parent to owner

* Make with_parent_window unsafe and update its doc

* Add another way to get window on mac

* Add more documentations

* Add match arm and panic on invalid varients

* Add Xcb arm

* Update child_window example to make it safer and work in i686

* Remove duplicate entry in CHANGELOG.md

* Propogate error instead of expect

* Replace unreachable to panic

* Add platform note to X11

Co-authored-by: Wu Yu Wei <wusyong9104@gmail.com>
2022-12-22 01:07:13 +01:00
..
child_window.rs Add WindowBuilder::with_parent_window (#2548) 2022-12-22 01:07:13 +01: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 Retain WS_MAXIMZE when unminmizing a maximized window (#2581) 2022-12-09 19:33:11 +01: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