summaryrefslogtreecommitdiffstats
path: root/winit/src/conversion.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-15 03:22:53 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-15 03:22:53 +0100
commite9862f8913becb82073b03945049da067ff096e4 (patch)
tree12b83de487117174b74f8819dd817dbdf4c8a27d /winit/src/conversion.rs
parent7555487503234cdac0646db8ed47ec652ccfe8f4 (diff)
downloadiced-e9862f8913becb82073b03945049da067ff096e4.tar.gz
iced-e9862f8913becb82073b03945049da067ff096e4.tar.bz2
iced-e9862f8913becb82073b03945049da067ff096e4.zip
Point doc links to `0.12` branch
Diffstat (limited to 'winit/src/conversion.rs')
-rw-r--r--winit/src/conversion.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/winit/src/conversion.rs b/winit/src/conversion.rs
index ef789296..478dbddd 100644
--- a/winit/src/conversion.rs
+++ b/winit/src/conversion.rs
@@ -1,7 +1,7 @@
//! Convert [`winit`] types into [`iced_runtime`] types, and viceversa.
//!
//! [`winit`]: https://github.com/rust-windowing/winit
-//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.10/runtime
+//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.12/runtime
use crate::core::keyboard;
use crate::core::mouse;
use crate::core::touch;
@@ -392,7 +392,7 @@ pub fn mouse_interaction(
/// Converts a `MouseButton` from [`winit`] to an [`iced`] mouse button.
///
/// [`winit`]: https://github.com/rust-windowing/winit
-/// [`iced`]: https://github.com/iced-rs/iced/tree/0.10
+/// [`iced`]: https://github.com/iced-rs/iced/tree/0.12
pub fn mouse_button(mouse_button: winit::event::MouseButton) -> mouse::Button {
match mouse_button {
winit::event::MouseButton::Left => mouse::Button::Left,
@@ -408,7 +408,7 @@ pub fn mouse_button(mouse_button: winit::event::MouseButton) -> mouse::Button {
/// state.
///
/// [`winit`]: https://github.com/rust-windowing/winit
-/// [`iced`]: https://github.com/iced-rs/iced/tree/0.10
+/// [`iced`]: https://github.com/iced-rs/iced/tree/0.12
pub fn modifiers(
modifiers: winit::keyboard::ModifiersState,
) -> keyboard::Modifiers {
@@ -435,7 +435,7 @@ pub fn cursor_position(
/// Converts a `Touch` from [`winit`] to an [`iced`] touch event.
///
/// [`winit`]: https://github.com/rust-windowing/winit
-/// [`iced`]: https://github.com/iced-rs/iced/tree/0.10
+/// [`iced`]: https://github.com/iced-rs/iced/tree/0.12
pub fn touch_event(
touch: winit::event::Touch,
scale_factor: f64,
@@ -466,7 +466,7 @@ pub fn touch_event(
/// Converts a `VirtualKeyCode` from [`winit`] to an [`iced`] key code.
///
/// [`winit`]: https://github.com/rust-windowing/winit
-/// [`iced`]: https://github.com/iced-rs/iced/tree/0.10
+/// [`iced`]: https://github.com/iced-rs/iced/tree/0.12
pub fn key(key: winit::keyboard::Key) -> keyboard::Key {
use keyboard::key::Named;
use winit::keyboard::NamedKey;