Reexport raw-window-handle versions 0.4 and 0.5 as raw_window_handle_04 and raw_window_handle_05.
Implement ApplicationHandler for &mut references and heap allocations to something that implements ApplicationHandler.
Add traits EventLoopExtWayland and EventLoopExtX11, providing methods is_wayland and is_x11 on EventLoop.
Fixed
On macOS, fix panic on exit when dropping windows outside the event loop.
On macOS, fix window dragging glitches when dragging across a monitor boundary with different scale factor.
On macOS, fix the range in Ime::Preedit.
On macOS, use the system's internal mechanisms for queuing events.
On macOS, handle events directly instead of queuing when possible.
Winit version 0.30.0
Added
Add OwnedDisplayHandle type for allowing safe display handle usage outside of
trivial cases.
Add ApplicationHandler<T> trait which mimics Event<T>.
Add WindowBuilder::with_cursor and Window::set_cursor which takes a
CursorIcon or CustomCursor.
Add Sync implementation for EventLoopProxy<T: Send>.
Add Window::default_attributes to get default WindowAttributes.
Add EventLoop::builder to get EventLoopBuilder without export.
Add CustomCursor::from_rgba to allow creating cursor images from RGBA data.
Add CustomCursorExtWebSys::from_url to allow loading cursor images from URLs.
Add CustomCursorExtWebSys::from_animation to allow creating animated
cursors from other CustomCursors.
Add {Active,}EventLoop::create_custom_cursor to load custom cursor image sources.
Add ActiveEventLoop::create_window and EventLoop::create_window.
Add CustomCursor which could be set via Window::set_cursor, implemented on
Windows, macOS, X11, Wayland, and Web.
On Web, add to toggle calling Event.preventDefault() on Window.
On iOS, add PinchGesture, DoubleTapGesture, PanGesture and RotationGesture.
on iOS, use UIGestureRecognizerDelegate for fine grained control of gesture recognizers.
On macOS, add services menu.
On Windows, add with_title_text_color, and with_corner_preference on
WindowAttributesExtWindows.
On Windows, implement resize increments.
On Windows, add AnyThread API to access window handle off the main thread.
Changed
Bump MSRV from 1.65 to 1.70.
On Wayland, bump sctk-adwaita to 0.9.0, which changed system library
crates. This change is a cascading breaking change, you must do breaking
change as well, even if you don't expose winit.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps winit from 0.29.15 to 0.30.1.
Release notes
Sourced from winit's releases.
... (truncated)
Commits
437747b
Winit version 0.30.121e266f
macOS/iOS: Various refactorings in application state (#3720)3a0928a
macOS: Improve event queuing (#3708)ad92b4f
doc: clarifyWindow::pre_present_notify
availabilitybf4445b
Handle _selected_range sent to NSTextInputClient.setMarkedText(). (#3619)391a222
Implement ApplicationHandler for&mut A
andBox\<A>
(#3709)fb4a674
Updateobjc2
tov0.2.2
(#3702)43f296b
event_loop: add is_x11 and is_wayland on EventLoop042667c
Resize when size changes on scale change on macOS3206d10
chore: explicitly use cfg_aliases 0.2.1Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show