generated from loopystudios/bevy-shell-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Rust crate winit to 0.30.0 #6
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/winit-0.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
September 11, 2022 19:20
b7ebd50
to
1aaf68f
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.27.2
Update Rust crate winit to 0.27.3
Sep 11, 2022
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
3 times, most recently
from
September 20, 2022 01:03
53351ab
to
b59c259
Compare
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
3 times, most recently
from
October 10, 2022 00:27
372a84f
to
cf816bb
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.27.3
Update Rust crate winit to 0.27.4
Oct 10, 2022
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
2 times, most recently
from
October 26, 2022 15:28
063443a
to
c404447
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.27.4
Update Rust crate winit to 0.27.5
Oct 26, 2022
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
3 times, most recently
from
October 31, 2022 17:27
2384ca5
to
97f3175
Compare
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
3 times, most recently
from
November 18, 2022 14:19
d29ed5e
to
9af38f6
Compare
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
November 22, 2022 11:14
9af38f6
to
a9b5005
Compare
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
2 times, most recently
from
January 8, 2023 21:40
e081502
to
8814052
Compare
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
2 times, most recently
from
February 2, 2023 07:35
32fb73c
to
d05fe30
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.27.5
Update Rust crate winit to 0.28.0
Feb 2, 2023
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
February 2, 2023 14:19
d05fe30
to
7430d10
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.28.0
Update Rust crate winit to 0.28.1
Feb 2, 2023
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
February 9, 2023 03:06
7430d10
to
1d529f8
Compare
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
March 2, 2023 13:32
1d529f8
to
ce76479
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.28.1
Update Rust crate winit to 0.28.2
Mar 2, 2023
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
March 5, 2023 23:57
ce76479
to
c1e2d5e
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.29.6
Update Rust crate winit to 0.29.7
Dec 27, 2023
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
December 31, 2023 20:07
1a7c27b
to
a0937bf
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.29.7
Update Rust crate winit to 0.29.8
Dec 31, 2023
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
4 times, most recently
from
January 5, 2024 12:26
55d2dd3
to
7c4afea
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.29.8
Update Rust crate winit to 0.29.9
Jan 5, 2024
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
3 times, most recently
from
January 15, 2024 09:27
2f90823
to
b7da524
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.29.9
Update Rust crate winit to 0.29.10
Jan 15, 2024
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
2 times, most recently
from
January 29, 2024 15:41
572ae2f
to
04ea702
Compare
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
February 7, 2024 01:03
04ea702
to
99b24d4
Compare
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
3 times, most recently
from
February 26, 2024 12:12
aa2443d
to
194c78b
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.29.10
Update Rust crate winit to 0.29.11
Feb 26, 2024
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
March 1, 2024 13:29
194c78b
to
ba75dad
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.29.11
Update Rust crate winit to 0.29.12
Mar 1, 2024
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
March 2, 2024 12:28
ba75dad
to
632599c
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.29.12
Update Rust crate winit to 0.29.13
Mar 2, 2024
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
March 6, 2024 14:47
632599c
to
46e7917
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.29.13
Update Rust crate winit to 0.29.14
Mar 6, 2024
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
March 13, 2024 10:56
46e7917
to
902539b
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.29.14
Update Rust crate winit to 0.29.15
Mar 13, 2024
renovate
bot
force-pushed
the
renovate/winit-0.x
branch
from
April 27, 2024 16:25
902539b
to
7b0bec3
Compare
renovate
bot
changed the title
Update Rust crate winit to 0.29.15
Update Rust crate winit to 0.30.0
Apr 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
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.30.0
Release Notes
rust-windowing/winit (winit)
v0.30.5
: Winit version 0.30.5Compare Source
Added
ActiveEventLoop::system_theme()
, returning the current system theme.Error
forplatform::web::CustomCursorError
.{Active,}EventLoopExtAndroid::android_app()
to access the app used to create the loop.Fixed
feature = "rwh_04"
.WindowEvent::Cursor*
.Window::theme()
if no theme override is set.v0.30.4
: Winit version 0.30.4Compare Source
Changed
DeviceId::dummy()
andWindowId::dummy()
are no longer markedunsafe
.Fixed
WindowEvent::Resized
not usingrequestAnimationFrame
when sendingWindowEvent::RedrawRequested
and also potentially causingWindowEvent::RedrawRequested
to not be de-duplicated.
v0.30.3
: Winit version 0.30.3Compare Source
Added
EventLoopExtWebSys::(set_)poll_strategy()
to allow settingcontrol flow strategies before starting the event loop.
WaitUntilStrategy
, which allows to set different strategies forControlFlow::WaitUntil
. By default the Prioritized Task Scheduling API isused, with a fallback to
setTimeout()
with a trick to circumvent throttlingto 4ms. But an option to use a Web worker to schedule the timer is available
as well, which commonly prevents any throttling when the window is not focused.
Changed
NSWindow
instead of application-wide.Fixed
WindowBuilder::with_theme
not having any effect on the window.v0.30.2
: Winit version 0.30.2Compare Source
Fixed
EventLoopProxy::send_event()
triggering event loop immediatelywhen not called from inside the event loop. Now queues a microtask instead.
CursorIcon::Default
.InnerSizeWriter::request_inner_size()
.v0.30.1
: Winit version 0.30.1Compare Source
Added
raw-window-handle
versions 0.4 and 0.5 asraw_window_handle_04
andraw_window_handle_05
.ApplicationHandler
for&mut
references and heap allocations to something that implementsApplicationHandler
.EventLoopExtWayland
andEventLoopExtX11
, providing methodsis_wayland
andis_x11
onEventLoop
.Fixed
Ime::Preedit
.v0.30.0
: Winit version 0.30.0Compare Source
Added
OwnedDisplayHandle
type for allowing safe display handle usage outside oftrivial cases.
ApplicationHandler<T>
trait which mimicsEvent<T>
.WindowBuilder::with_cursor
andWindow::set_cursor
which takes aCursorIcon
orCustomCursor
.Sync
implementation forEventLoopProxy<T: Send>
.Window::default_attributes
to get defaultWindowAttributes
.EventLoop::builder
to getEventLoopBuilder
without export.CustomCursor::from_rgba
to allow creating cursor images from RGBA data.CustomCursorExtWebSys::from_url
to allow loading cursor images from URLs.CustomCursorExtWebSys::from_animation
to allow creating animatedcursors from other
CustomCursor
s.{Active,}EventLoop::create_custom_cursor
to load custom cursor image sources.ActiveEventLoop::create_window
andEventLoop::create_window
.CustomCursor
which could be set viaWindow::set_cursor
, implemented onWindows, macOS, X11, Wayland, and Web.
Event.preventDefault()
onWindow
.PinchGesture
,DoubleTapGesture
,PanGesture
andRotationGesture
.UIGestureRecognizerDelegate
for fine grained control of gesture recognizers.with_title_text_color
, andwith_corner_preference
onWindowAttributesExtWindows
.AnyThread
API to access window handle off the main thread.Changed
1.65
to1.70
.sctk-adwaita
to0.9.0
, which changed system librarycrates. This change is a cascading breaking change, you must do breaking
change as well, even if you don't expose winit.
TouchpadMagnify
toPinchGesture
.SmartMagnify
toDoubleTapGesture
.TouchpadRotate
toRotationGesture
.EventLoopWindowTarget
toActiveEventLoop
.platform::x11::XWindowType
toplatform::x11::WindowType
.VideoMode
toVideoModeHandle
to represent that it doesn't holdstatic data.
Debug
formatting ofWindowId
more concise.dpi
types to its own crate, and re-export it from the root crate.log
withtracing
, uselog
feature ontracing
to restore oldbehavior.
EventLoop::with_user_event
now returnsEventLoopBuilder
.HandleError::Unavailable
when a window handle is not available.RawWindowHandle::WebCanvas
instead ofRawWindowHandle::Web
.HandleError::Unavailable
when a window handle is not available.HandleError::Unavailable
when a window handle is not available.WS_CAPTION
,WS_BORDER
, andWS_EX_WINDOWEDGE
stylesfor child windows without decorations.
ndk
to0.9.0
andandroid-activity
to0.6.0
,and remove unused direct dependency on
ndk-sys
.Deprecated
Deprecate
EventLoop::run
, useEventLoop::run_app
.Deprecate
EventLoopExtRunOnDemand::run_on_demand
, useEventLoop::run_app_on_demand
.Deprecate
EventLoopExtPumpEvents::pump_events
, useEventLoopExtPumpEvents::pump_app_events
.The new
app
APIs accept a newly addedApplicationHandler<T>
instead ofFn
. The semantics are mostly the same, given that the capture list of theclosure is your new
State
. Consider the following code:To migrate this code, you should move all the captured values into some
newtype
State
and implementApplicationHandler
for this type. Finally,we move particular
match event
arms into methods onApplicationHandler
,for example:
Please submit your feedback after migrating in this issue.
Deprecate
Window::set_cursor_icon
, useWindow::set_cursor
.Removed
Remove
Window::new
, useActiveEventLoop::create_window
instead.You now have to create your windows inside the actively running event loop
(usually the
new_events(cause: StartCause::Init)
orresumed()
events),and can no longer do it before the application has properly launched.
This change is done to fix many long-standing issues on iOS and macOS, and
will improve things on Wayland once fully implemented.
To ease migration, we provide the deprecated
EventLoop::create_window
thatwill allow you to bypass this restriction in this release.
Using the migration example from above, you can change your code as follows:
Remove
Deref
implementation forEventLoop
that gaveEventLoopWindowTarget
.Remove
WindowBuilder
in favor ofWindowAttributes
.Remove Generic parameter
T
fromActiveEventLoop
.Remove
EventLoopBuilder::with_user_event
, useEventLoop::with_user_event
.Remove Redundant
EventLoopError::AlreadyRunning
.Remove
WindowAttributes::fullscreen
and expose as field directly.On X11, remove
platform::x11::XNotSupported
export.Fixed
v0.29.15
: Winit version 0.29.15Compare Source
v0.29.14
: Winit version 0.29.14Compare Source
text
andtext_with_all_modifiers
not beingNone
during compose.v0.29.13
: Winit version 0.29.13Compare Source
ControlFlow::Wait
andControlFlow::WaitUntil
.v0.29.12
: Winit version 0.29.12Compare Source
v0.29.11
: Winit version 0.29.11 [yanked]Compare Source
Occluded
event handling._XSETTINGS_SETTINGS
update.Focused(false)
being send when other seats still have window focused.Window::set_{min,max}_inner_size
not always applied.WAYLAND_SOCKET
not used when detecting platform.logical_key
andtext
not reported inKeyEvent
.KeyEventExtModifierSupplement
.NamedKey
when possible.set_cursor_grab
.set_cursor_visible
.drag_window
.drag_resize_window
.set_transparent
.set_visible
.is_visible
.set_resizable
.is_resizable
.set_maximized
.is_maximized
.set_decorations
.is_decorated
.set_window_level
.DeviceEvent::MouseMotion
.AboutToWait
.v0.29.10
: Winit version 0.29.10Compare Source
v0.29.9
: Winit version 0.29.9Compare Source
NotSupported
error not propagated when creating event loop.ArrowLeft
.v0.29.8
: Winit version 0.29.8Compare Source
ModifiersChanged
not sent from xdotool-like inputWindow::request_inner_size
being overwritten by resize.Window::inner_size
not using the correct rounding.v0.29.7
: Winit version 0.29.7Compare Source
Xft.dpi
reload during runtime.v0.29.6
: Winit version 0.29.6Compare Source
with_prevent_default(true)
.WindowEvent::Destroyed
not being delivered after destroying window.EventLoopExtRunOnDemand::run_on_demand
not working for consequent invocationv0.29.5
: Winit version 0.29.5Compare Source
Fn
.misinterpreted during a drag and drop operation.
refresh_rate_millihertz
.wl_subcompositor
is not supported.Xft.dpi
detection from Xresources.window.set_fullscreen(Some(Fullscreen::Borderless(None)))
resulting in losing previous window state when eventually exiting fullscreen usingwindow.set_fullscreen(None)
.set_ime_cursor_area
.v0.29.4
: Winit Version 0.29.4Compare Source
drag_window
anddrag_resize_window
can be called from another thread.set_control_flow
inAboutToWait
not being taken in account.Resized
event after eachScaleFactorChanged
event.wl_surface
being destroyed before associated objects.Fn
key.v0.29.3
: Winit Version 0.29.3Compare Source
PhysicalSize
passed inWindowBuilder::with_inner_size
when possible.RedrawRequsted
being always sent without decorations andsctk-adwaita
feature.configure_bounds
to constrainwith_inner_size
when compositor wants users to pick size.Cursor{Enter,Leave}
.Window::set_transparent
.Window::set_blur
.v0.29.2
: Winit Version 0.29.2Compare Source
1.60
to1.65
.Event::MemoryWarning
; implemented on iOS/Android.ndk
version to0.8.0
, ndk-sys to0.5.0
,android-activity
to0.5.0
.ControlFlow
fromPoll
toWait
.Event::RedrawRequested
toWindowEvent::RedrawRequested
.ControlFlow::Exit
toEventLoopWindowTarget::exit()
andEventLoopWindowTarget::exiting()
and removedControlFlow::ExitWithCode(_)
entirely.ControlFlow
toEventLoopWindowTarget::set_control_flow()
andEventLoopWindowTarget::control_flow()
.EventLoop::new
andEventLoopBuilder::build
now returnResult<Self, EventLoopError>
WINIT_UNIX_BACKEND
was removed in favor of standardWAYLAND_DISPLAY
andDISPLAY
variables.DeviceEvent::Text
.Event
andWindowEvent
.Window::set_inner_size
toWindow::request_inner_size
and indicate if the size was applied immediately.ActivationTokenDone
event which could be requested with the newstartup_notify
module, see its docs for more.ScaleFactorChanged
now contains a writer instead of a reference to update inner size.run() -> !
has been replaced byrun() -> Result<(), EventLoopError>
for returning errors without callingstd::process::exit()
(#2767)EventLoopExtRunReturn
/run_return
in favor ofEventLoopExtPumpEvents
/pump_events
andEventLoopExtRunOnDemand
/run_on_demand
(#2767)RedrawRequested
is no longer guaranteed to be emitted afterMainEventsCleared
, it is now platform-specific when the event is emitted after being requested viaredraw_request()
.RedrawRequested
is now driven byWM_PAINT
messages which are requested viaredraw_request()
LoopDestroyed
renamed toLoopExiting
(#2900)RedrawEventsCleared
removed (#2900)MainEventsCleared
removed (#2900)modifiers
fields.DeviceEventFilter
toDeviceEvents
reversing the behavior of variants.AboutToWait
event which is emitted when the event loop is about to block and wait for new events (#2900)EventLoopWindowTarget::set_device_event_filter
tolisten_device_events
.Window::set_ime_position
toWindow::set_ime_cursor_area
adding a way to set exclusive zone.with_x11_visual
now takes the visual ID instead of the bare pointer.MouseButton
now supportsBack
andForward
variants, emitted from mouse events on Wayland, X11, Windows, macOS and Web.instant
is now replaced byweb_time
.WindowEvent::Resized
.bitflags
crate version to2
, which changes the API on exposed types.CursorIcon::Arrow
was removed.CursorIcon::Hand
is now namedCursorIcon::Pointer
.CursorIcon
is now used from thecursor-icon
crate.WindowExtWebSys::canvas()
now returns anOption
.KeyboardInput
withKeyEvent
andRawKeyEvent
.WindowEvent::KeyboardInput
to contain aKeyEvent
.Event::Key
to contain aRawKeyEvent
.Event::ReceivedCharacter
. In its place, you should useKeyEvent.text
in combination withWindowEvent::Ime
.VirtualKeyCode
with theKey
enum.ScanCode
with theKeyCode
enum.ModifiersState::LOGO
toSUPER
andModifiersState::CTRL
toCONTROL
.PhysicalKey
wrappingKeyCode
andNativeKeyCode
.KeyCode
to refer to keys (roughly) by their physical location.NativeKeyCode
to represent rawKeyCode
s which Winit doesn'tunderstand.
Key
to represent the keys after they've been interpreted by theactive (software) keyboard layout.
NamedKey
to represent the categorized keys.NativeKey
to represent rawKey
s which Winit doesn't understand.KeyLocation
to tell apartKey
s which usually "mean" the same thing,but can appear simultaneously in different spots on the same keyboard
layout.
Window::reset_dead_keys
to enable application-controlled cancellationof dead key sequences.
KeyEventExtModifierSupplement
to expose additional (and lessportable) interpretations of a given key-press.
PhysicalKeyExtScancode
, which lets you convert between scancodes andPhysicalKey
.ModifiersChanged
now uses dedicatedModifiers
struct.raw-window-handle
trait implementations instead:platform::windows::HINSTANCE
.WindowExtWindows::hinstance
.WindowExtWindows::hwnd
.WindowExtIOS::ui_window
.WindowExtIOS::ui_view_controller
.WindowExtIOS::ui_view
.WindowExtMacOS::ns_window
.WindowExtMacOS::ns_view
.EventLoopWindowTargetExtWayland::wayland_display
.WindowExtWayland::wayland_surface
.WindowExtWayland::wayland_display
.WindowExtX11::xlib_window
.WindowExtX11::xlib_display
.WindowExtX11::xlib_screen_id
.WindowExtX11::xcb_connection
.raw-window-handle
inwindow
module.ElementState::is_pressed
.Window::pre_present_notify
to notify winit before presenting to the windowing system.Window::set_blur
to request a blur behind the window; implemented on Wayland for now.Window::show_window_menu
to request a titlebar/system menu; implemented on Wayland/Windows for now.AsFd
/AsRawFd
forEventLoop<T>
on X11 and Wayland.PartialOrd
andOrd
forMouseButton
.PartialOrd
andOrd
on types in thedpi
module.WindowBuilder
Send + Sync
.MonitorHandle
andVideoMode
usable from other threads.EventLoopBuilderExtAndroid::handle_volume_keys
to indicate that the application will handle the volume keys manually.DeviceId
to contain device id's.ModifiersChanged
not being sent.Window::outer_size
now accounts for client side decorations.Window::drag_resize_window
method.WINIT_WAYLAND_CSD_THEME
variable.TouchPhase::Canceled
being sent for moved events.Occluded
event with xdg-shell v6RedrawRequested
events so redraws will align with compositor.ControlFlow::WaitUntil
now uses the Prioritized Task Scheduling API.setTimeout()
, with a trick to circumvent throttling to 4ms, is used as a fallback.EventLoopProxy
now implementsSend
.Window
now implementsSend
andSync
.padding
,border
, andmargin
when getting or setting the canvas position.DeviceEvent::Motion
,DeviceEvent::MouseWheel
,DeviceEvent::Button
andDeviceEvent::Key
support.EventLoopWindowTargetExtWebSys
andPollStrategy
, which allows to set different strategies forControlFlow::Poll
. By default the Prioritized Task Scheduling API is used, but an option to useWindow.requestIdleCallback
is available as well. Both usesetTimeout()
, with a trick to circumvent throttling to 4ms, as a fallback.WindowBuilderExtWebSys::with_append()
to append the canvas element to the web page on creation.spawn
.ControlFlow::WaitUntil
to never wake up before the given time.DeviceEvent::MouseMotion
only being emitted for each canvas instead of the whole window.Window:::set_fullscreen
doing nothing when called outside the event loop but during transient activation.WindowBuilder
methods doing nothing.Window
methods using incorrect HTML attributes instead of CSS properties.beforeunload
event and map bfcache loading/unloading toSuspended
/Resumed
events.Window::focus_window()
.Window::set_(min|max)_inner_size()
.WindowEvent::Occluded
.MonitorHandle
.Window::is_dark_mode()
, which was replaced withWindow::theme()
.EventLoopWindowTarget::listen_device_events()
settings.Window.requestAnimationFrame()
to throttleRedrawRequested
events.Window::request_redraw
not waking the event loop when called from outside the loop.drag_resize_window
method support.DeviceEvent
.WindowBuilderExtWindows::with_class_name
to customize the internal class name.CursorEnter/Left
not being sent when grabbing the mouse.RedrawRequested
not being delivered when callingWindow::request_redraw
fromRedrawRequested
.windows-sys
version 0.48.0.with_embedded_parent_window
function to the window builder to allow embedding a window into another window.ControlFlow::Poll
andControlFlow::WaitUntil
.visual_id
in returnedraw-window-handle
.ControlFlow::Poll
toControlFlow::Poll
.WindowEvent::Occluded(false)
,WindowEvent::Occluded(true)
when application enters/leaves foreground.WindowExtMacOS
andEventLoopWindowTargetExtMacOS
.Globe
key.window.set_minimized(false)
.Window
.v0.28.7
: Winit Version 0.28.7Compare Source
v0.28.6
: Winit Version v0.28.6Compare Source
Backspace
being emitted when clearing preedit with it.v0.28.5
: Winit Version v0.28.5Compare Source
key_up
being ignored whenIme
is disabled.v0.28.4
: Winit Version v0.28.4 [yanked]Compare Source
Window::set_ime_position
from another thread.v0.28.3
: Winit Version v0.28.3Compare Source
v0.28.2
: Winit Version v0.28.2Compare Source
HasRawDisplayHandle
forEventLoop
.Window::theme
.v0.28.1
: Winit Version v0.28.1Compare Source
v0.28.0
: Winit Version v0.28.0Compare Source
Ime::Commit
persisting for all input after interacting withIme
.WindowExtMacOS::option_as_alt
andWindowExtMacOS::set_option_as_alt
.WindowBuilder::with_active
.Window::is_minimized
.register_xlib_error_hook
invocation bleeding into winit.Window::has_focus
.Window::set_minimized(false)
not working for windows minimized byWin + D
hotkey.WindowEvent::Cursor*
,WindowEvent::MouseInput
, orDeviceEvent::MouseMotion
like other platforms, but instead it firesWindowEvent::Touch
.WindowBuilder::with_parent
API in favor ofWindowBuilder::with_parent_window
.WS_MAXIMIZE
window style when un-minimizing a maximized window.Window::drag_window
.Window::set_theme
.WindowExtWayland::wayland_set_csd_theme
andWindowBuilderExtX11::with_gtk_theme_variant
.Window::set_always_on_top
and related APIs in favor ofWindow::set_window_level
.MouseButton::Other
.WindowExtMacOS::is_document_edited
andWindowExtMacOS::set_document_edited
APIs.WindowBuilderExtIOS::with_root_view_class
; instead, you should use[[view layer] addSublayer: ...]
to add an instance of the desired layer class (e.g.CAEAGLLayer
orCAMetalLayer
). Seevulkano-win
orwgpu
for examples of this.Window::set_content_protected
.EventLoopBuilderExtMacOS::with_activate_ignoring_other_apps
.WindowBuilder
not taking effect for windows created after the first one.Window::title
to query the current window title.Alt
.accepts_first_mouse
configurable.WindowBuilderExtUnix::with_resize_increments
toWindowBuilder
.Window::resize_increments
/Window::set_resize_increments
to update resize increments at runtime for X11/macOS.objc2
instead ofobjc
internally.1.57
to1.60
.platform::unix
module intoplatform::x11
andplatform::wayland
. The extension types are similarly renamed.platform::unix::WindowExtUnix::is_ready
.parking_lot
dependency.WindowEvent::TouchpadMagnify
andWindowEvent::TouchpadRotate
. Also add support for touchpad smart-magnification gesture with a new eventWindowEvent::SmartMagnify
.WindowBuilderExtWebSys::with_prevent_default
setting (enabled by default), now additionally prevents scrolling of the webpage in mobile browsers, previously it only disabled scrolling on desktop.wayland-csd-adwaita
now usesab_glyph
instead ofcrossfont
to render the title for decorations.wayland-csd-adwaita-crossfont
feature was added to usecrossfont
instead ofab_glyph
for decorations.WindowExtX11::with_parent
to create child windows.WindowBuilder::with_theme
andWindow::theme
to support per-window dark/light/system theme configuration on macos, windows and wayland.WindowEvent::ThemeChanged
.WindowBuilderExtWindows::with_theme
andWindowBuilderExtWayland::with_wayland_csd_theme
in favour ofWindowBuilder::with_theme
.WindowExtWindows::theme
in favour ofWindow::theme
.doc_auto_cfg
when generating docs on docs.rs for feature labels.android-activity
crate as a glue layer instead ofndk-glue
. See README.md#Android for more details. (#2444)raw-window-handle
version0.4
RedrawRequested
not emitted during resize.set_wait_timeout
function toControlFlow
to allow waiting for aDuration
.xlib_xconnection()
function from the private interface.drag_resize_window
method.Window::set_transparent
to provide a hint about transparency of the window on Wayland and macOS.Window::set_ime_purpose
for setting the IME purpose, currently implemented on Wayland only.v0.27.5
: Winit Version v0.27.5Compare Source
Ime::Preedit
pointing to invalid bytes.v0.27.4
: Winit Version v0.27.4Compare Source
ReceivedCharacter
events on system keybindings.v0.27.3
: Winit Version v0.27.3Compare 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
: Winit Version v0.27.2Compare 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
: Winit Version v0.27.1Compare Source
1.57.0
and now explicitly tested.v0.27.0
: Winit Version v0.27.0Compare 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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.