winit/src/platform_impl/macos
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
..
appkit Add WindowBuilder::with_parent_window (#2548) 2022-12-22 01:07:13 +01:00
util Do fullscreen logic synchronously on main thread (#2575) 2022-11-30 14:49:18 +01:00
app.rs Refactor macOS to use new objc2 features (#2465) 2022-09-08 16:45:29 +02:00
app_delegate.rs macOS: Fix ApplicationDelegate::init (#2566) 2022-11-23 15:23:06 +01:00
app_state.rs On macOS, add EventLoopBuilderExtMacOS::with_activate_ignoring_other_apps (#2551) 2022-11-23 13:42:46 +01:00
event.rs Refactor macOS to use new objc2 features (#2465) 2022-09-08 16:45:29 +02:00
event_loop.rs On macOS, add EventLoopBuilderExtMacOS::with_activate_ignoring_other_apps (#2551) 2022-11-23 13:42:46 +01:00
ffi.rs Refactor macOS to use new objc2 features (#2465) 2022-09-08 16:45:29 +02:00
menu.rs Only build, but don't run tests in MSRV CI (#2558) 2022-11-23 13:07:58 +01:00
mod.rs macOS: Run tasks synchronously on main thread instead of asynchronously (#2574) 2022-11-30 14:30:32 +01:00
monitor.rs Don't panic when getting refresh rate failed (#2533) 2022-11-29 11:28:46 +01:00
observer.rs Fix runloop entry (#2480) 2022-09-08 21:56:53 +02:00
view.rs Refactor SharedState so that it is no longer behind an Arc (#2573) 2022-11-29 12:58:35 +01:00
window.rs Add WindowBuilder::with_parent_window (#2548) 2022-12-22 01:07:13 +01:00
window_delegate.rs Refactor SharedState so that it is no longer behind an Arc (#2573) 2022-11-29 12:58:35 +01:00