This repository has been archived by the owner on Jul 22, 2023. It is now read-only.
Update Rust crate winit to 0.27.5 - autoclosed #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.26.1
->0.27.5
Release Notes
rust-windowing/winit
v0.27.5
Compare Source
Ime::Preedit
pointing to invalid bytes.v0.27.4
Compare Source
ReceivedCharacter
events on system keybindings.v0.27.3
Compare Source
WindowExtWindows::set_undecorated_shadow
andWindowBuilderExtWindows::with_undecorated_shadow
to draw the drop shadow behind a borderless window.Ime::Preedit
not being sent on IME reset.raw-window-handle
leading to compilation failures.Ime::Preedit
event will be sent beforeIme::Commit
to help clearing preedit.v0.27.2
Compare Source
Window
now (additionally) implements the old version (0.4
) of theHasRawWindowHandle
traitEventLoopWindowTarget::set_device_event_filter
.WindowEvent::RedrawRequested
being delayed by a frame.v0.27.1
Compare Source
1.57.0
and now explicitly tested.v0.27.0
Compare Source
ndk-glue
'sNativeWindow
lock is now held betweenEvent::Resumed
andEvent::Suspended
.EventLoopExtWebSys
with aspawn
method to start the event loop without throwing an exception.WindowEvent::Occluded(bool)
, currently implemented on macOS and X11.docs.rs
for iOS and Android as well.WindowAttributes
struct, since all its functionality is accessible fromWindowBuilder
.WindowBuilder::transparent
getter to check if the user settransparent
attribute.Event::LoopDestroyed
on CMD+Q.set_cursor_hittest
to let the window ignore mouse events.WindowExtWindows::set_skip_taskbar
andWindowBuilderExtWindows::with_skip_taskbar
.EventLoopBuilderExtWindows::with_msg_hook
.set_ime_position
after moving the window.Window::is_visible
.Window::is_resizable
.Window::is_decorated
.ControlFlow
wasWait
DeviceEvent::MouseMotion
.ndk
version to 0.6, ndk-sys tov0.3
,ndk-glue
to0.6
.WINIT_LINK_COLORSYNC
environment variable.Exit
variant ofControlFlow
toExitWithCode
, which holds a value to control the exit code after running. Add anExit
constant which aliases toExitWithCode(0)
instead to avoid major breakage. This shouldn't affect most existing programs.EventLoopBuilder
, which allows you to create and tweak the settings of an event loop before creating it.EventLoop::with_user_event
; useEventLoopBuilder::with_user_event
instead.EventLoopExtMacOS
withEventLoopBuilderExtMacOS
(which also has renamed methods).EventLoopExtWindows
withEventLoopBuilderExtWindows
(which also has renamed methods).EventLoopExtUnix
withEventLoopBuilderExtUnix
(which also has renamed methods).winit::platform::windows
have changed. AllHANDLE
-like types e.g.HWND
andHMENU
were converted from winapi types or*mut c_void
toisize
. This was done to be consistent with the type definitions in windows-sys and to not expose internal dependencies.EventLoop::run_return
invocations.WindowBuilder::with_fullscreen
virtual_keycode
forKeyboardInput
events is now filled in where a suitable match is found.ControlFlow
to set its value.TouchPhase::Ended
always reporting the location of the first touch down, unless the compositorsent a cancel or frame event.
RedrawEventsCleared
even if there are no redraw events, consistent with other platforms.Window::with_app_id
andWindow::with_class
withWindow::with_name
onWindowBuilderExtUnix
.WindowBuilderExtUnix::with_wayland_csd_theme
to set color theme in builder.WindowExtUnix::wayland_set_csd_theme
to set color theme when creating a window.WINIT_WAYLAND_CSD_THEME
env variable was added, it can be used to set "dark"/"light" theme in apps that don't expose theme setting.wayland-csd-adwaita
feature that enables proper CSD with title rendering using FreeType system library.wayland-csd-adwaita-notitle
feature that enables CSD but without title rendering.Window::set_inner_size
after callingWindow:set_resizable(false)
.WindowEvent::Ime
supported on desktop platforms.Window::set_ime_allowed
supported on desktop platforms.Window::set_ime_allowed
and newWindowEvent::Ime
events are handled.WindowEvent::Resized
is now emitted inframeDidChange
instead ofwindowDidResize
.EventLoopWindowTarget::set_device_event_filter
to set the filter level.Default
onEventLoop<()>
.Eq
forFullscreen
,Theme
, andUserAttentionType
.Window::set_cursor_grab
now acceptsCursorGrabMode
to control grabbing behavior.Window::set_cursor_position
.WindowBuilder::with_disallow_hidpi
, setting true or false by the user no matter the SO default value.EventLoopBuilder::build
will now panic when theEventLoop
is being created more than once.From<u64>
forWindowId
andFrom<WindowId>
foru64
.MonitorHandle::refresh_rate_millihertz
to get monitor's refresh rate.VideoMode::refresh_rate
withVideoMode::refresh_rate_millihertz
providing better precision.with_prevent_default
andwith_focusable
toWindowBuilderExtWebSys
to control whether events should be propagated.raw-window-handle
tov0.5
and implementHasRawDisplayHandle
forWindow
andEventLoopWindowTarget
.register_xlib_error_hook
intowinit::platform::unix
to subscribe for errors comming from Xlib.ndk
andndk-glue
dependencies to the recently released0.7.0
.Resumed
event. Applications are recommended to lazily initialize graphics state and windows on first resume for portability.MouseScrollDelta
to match the direction of vertical scrolling. A positive X value now means moving the content to the right. The meaning of vertical scrolling stays the same: a positive Y value means moving the content down.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.