Skip to content

v0.3.0

Choose a tag to compare

@ecton ecton released this 12 May 15:21
· 25 commits to main since this release
400ff14

Breaking Changes

  • This crate no longer specifies a specific raw-window-handle flag for winit.
    This crate will maintain feature flags that allow picking whatever versions
    winit is exposing. As of writing this note, the choices are rwh_05 and
    rwh_06. rwh_05 was the feature that was activated in v0.2.0.
  • winit has been updated to 0.30.0.
  • Window::id now returns Option<WindowId>, as a window may be opened before
    the event loop has been started.
  • WindowBehavior::build, WindowBehavior::build_with, WindowBehavior::open,
    and WindowBehavior::open_with now require exclusive references to the
    application.
  • These gesture events have been renamed to match winit's updated nomenclature:
    • WindowBehavior::touchpad_magnify -> WindowBehavior::pinch_gesture
    • WindowBehavior::smart_magnify -> WindowBehavior::double_tap_gesture

Changed

  • All &Appplication bounds now are ?Sized, enabling &dyn Application
    parameters.
  • Redraw requests from winit now block the event loop thread until the window
    has been repainted.

Added

  • AsApplication now provides as_application_mut.
  • WindowBeahvior::pan_gesture is a new event provided by winit.