winit-sonoma-fix/src/platform
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
..
android.rs Android: rework backend to use android-activity crate (#2444) 2022-11-10 17:55:19 +01:00
ios.rs Remove WindowBuilderExtIOS::with_root_view_class (#2459) 2022-11-23 15:53:06 +01:00
macos.rs On macOS, add documentEdited APIs (#2550) 2022-11-23 16:07:41 +01:00
mod.rs Split platform::unix into platform::x11 and platform::wayland 2022-09-01 08:05:32 +03:00
run_return.rs Split platform::unix into platform::x11 and platform::wayland 2022-09-01 08:05:32 +03:00
wayland.rs Add Window::set_theme (#2553) 2022-11-29 10:05:51 +01:00
web.rs Split platform::unix into platform::x11 and platform::wayland 2022-09-01 08:05:32 +03:00
windows.rs Add WindowBuilder::with_parent_window (#2548) 2022-12-22 01:07:13 +01:00
x11.rs Add WindowBuilder::with_parent_window (#2548) 2022-12-22 01:07:13 +01:00