File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77- ** Breaking:** Remove deprecated ` HasRawWindowHandle ` and ` HasRawDisplayHandle ` traits.
88- ** Breaking:** Remove ` UiKitWindowHandle::ui_view_controller ` field, retrieve this from the UIView's responder chain instead.
99- ** Breaking:** Rename ` Web* ` handles to ` WasmBindgen* ` , to make it clearer that these are specific to ` wasm-bindgen ` .
10+ - ** Breaking:** Rename ` DisplayHandle ` helpers ` appkit ` and ` uikit ` to ` app_kit ` and ` ui_kit ` respectively for consistency.
1011* Improve documentation on AppKit and UIKit handles.
1112
1213## 0.6.2 (2024-05-17)
Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ impl DisplayHandle<'static> {
4747 /// ```
4848 /// # use raw_window_handle::{DisplayHandle, HasDisplayHandle};
4949 /// # fn do_something(rwh: impl HasDisplayHandle) { let _ = rwh; }
50- /// let handle = DisplayHandle::appkit ();
50+ /// let handle = DisplayHandle::app_kit ();
5151 /// do_something(handle);
5252 /// ```
53- pub fn appkit ( ) -> Self {
53+ pub fn app_kit ( ) -> Self {
5454 // SAFETY: No data is borrowed.
5555 unsafe { Self :: borrow_raw ( AppKitDisplayHandle :: new ( ) . into ( ) ) }
5656 }
Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ impl DisplayHandle<'static> {
4747 /// ```
4848 /// # use raw_window_handle::{DisplayHandle, HasDisplayHandle};
4949 /// # fn do_something(rwh: impl HasDisplayHandle) { let _ = rwh; }
50- /// let handle = DisplayHandle::uikit ();
50+ /// let handle = DisplayHandle::ui_kit ();
5151 /// do_something(handle);
5252 /// ```
53- pub fn uikit ( ) -> Self {
53+ pub fn ui_kit ( ) -> Self {
5454 // SAFETY: No data is borrowed.
5555 unsafe { Self :: borrow_raw ( UiKitDisplayHandle :: new ( ) . into ( ) ) }
5656 }
You can’t perform that action at this time.
0 commit comments