Point repository links to 0.4 branch in documentation
This commit is contained in:
parent
a17a7103d3
commit
ac35fe3edf
17 changed files with 55 additions and 55 deletions
|
|
@ -7,8 +7,8 @@
|
||||||
//! 
|
//! 
|
||||||
//!
|
//!
|
||||||
//! [Iced]: https://github.com/iced-rs/iced
|
//! [Iced]: https://github.com/iced-rs/iced
|
||||||
//! [`iced_native`]: https://github.com/iced-rs/iced/tree/master/native
|
//! [`iced_native`]: https://github.com/iced-rs/iced/tree/0.4/native
|
||||||
//! [`iced_web`]: https://github.com/iced-rs/iced/tree/master/web
|
//! [`iced_web`]: https://github.com/iced-rs/iced/tree/0.4/web
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
#![deny(missing_debug_implementations)]
|
#![deny(missing_debug_implementations)]
|
||||||
#![deny(unused_results)]
|
#![deny(unused_results)]
|
||||||
|
|
|
||||||
|
|
@ -125,9 +125,9 @@ impl<I, O, H> std::fmt::Debug for Subscription<I, O, H> {
|
||||||
/// - [`stopwatch`], a watch with start/stop and reset buttons showcasing how
|
/// - [`stopwatch`], a watch with start/stop and reset buttons showcasing how
|
||||||
/// to listen to time.
|
/// to listen to time.
|
||||||
///
|
///
|
||||||
/// [examples]: https://github.com/iced-rs/iced/tree/0.3/examples
|
/// [examples]: https://github.com/iced-rs/iced/tree/0.4/examples
|
||||||
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.3/examples/download_progress
|
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.4/examples/download_progress
|
||||||
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.3/examples/stopwatch
|
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.4/examples/stopwatch
|
||||||
pub trait Recipe<Hasher: std::hash::Hasher, Event> {
|
pub trait Recipe<Hasher: std::hash::Hasher, Event> {
|
||||||
/// The events that will be produced by a [`Subscription`] with this
|
/// The events that will be produced by a [`Subscription`] with this
|
||||||
/// [`Recipe`].
|
/// [`Recipe`].
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
//! 
|
//! 
|
||||||
//!
|
//!
|
||||||
//! [`glow`]: https://github.com/grovesNL/glow
|
//! [`glow`]: https://github.com/grovesNL/glow
|
||||||
//! [`iced_native`]: https://github.com/hecrj/iced/tree/master/native
|
//! [`iced_native`]: https://github.com/hecrj/iced/tree/0.4/native
|
||||||
#![doc(
|
#![doc(
|
||||||
html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
|
html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
|
||||||
)]
|
)]
|
||||||
|
|
|
||||||
|
|
@ -51,10 +51,10 @@ use std::marker::PhantomData;
|
||||||
/// - [`solar_system`], an animated solar system drawn using the [`Canvas`] widget
|
/// - [`solar_system`], an animated solar system drawn using the [`Canvas`] widget
|
||||||
/// and showcasing how to compose different transforms.
|
/// and showcasing how to compose different transforms.
|
||||||
///
|
///
|
||||||
/// [examples]: https://github.com/hecrj/iced/tree/master/examples
|
/// [examples]: https://github.com/hecrj/iced/tree/0.4/examples
|
||||||
/// [`clock`]: https://github.com/hecrj/iced/tree/master/examples/clock
|
/// [`clock`]: https://github.com/hecrj/iced/tree/0.4/examples/clock
|
||||||
/// [`game_of_life`]: https://github.com/hecrj/iced/tree/master/examples/game_of_life
|
/// [`game_of_life`]: https://github.com/hecrj/iced/tree/0.4/examples/game_of_life
|
||||||
/// [`solar_system`]: https://github.com/hecrj/iced/tree/master/examples/solar_system
|
/// [`solar_system`]: https://github.com/hecrj/iced/tree/0.4/examples/solar_system
|
||||||
///
|
///
|
||||||
/// ## Drawing a simple circle
|
/// ## Drawing a simple circle
|
||||||
/// If you want to get a quick overview, here's how we can draw a simple circle:
|
/// If you want to get a quick overview, here's how we can draw a simple circle:
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@
|
||||||
//! - Build a new renderer, see the [renderer] module.
|
//! - Build a new renderer, see the [renderer] module.
|
||||||
//! - Build a custom widget, start at the [`Widget`] trait.
|
//! - Build a custom widget, start at the [`Widget`] trait.
|
||||||
//!
|
//!
|
||||||
//! [`iced_core`]: https://github.com/iced-rs/iced/tree/master/core
|
//! [`iced_core`]: https://github.com/iced-rs/iced/tree/0.4/core
|
||||||
//! [`iced_winit`]: https://github.com/iced-rs/iced/tree/master/winit
|
//! [`iced_winit`]: https://github.com/iced-rs/iced/tree/0.4/winit
|
||||||
//! [`druid`]: https://github.com/xi-editor/druid
|
//! [`druid`]: https://github.com/xi-editor/druid
|
||||||
//! [`raw-window-handle`]: https://github.com/rust-windowing/raw-window-handle
|
//! [`raw-window-handle`]: https://github.com/rust-windowing/raw-window-handle
|
||||||
//! [renderer]: crate::renderer
|
//! [renderer]: crate::renderer
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ use crate::{Clipboard, Element, Layout, Point, Rectangle, Shell, Size};
|
||||||
/// The [`integration` example] uses a [`UserInterface`] to integrate Iced in
|
/// The [`integration` example] uses a [`UserInterface`] to integrate Iced in
|
||||||
/// an existing graphical application.
|
/// an existing graphical application.
|
||||||
///
|
///
|
||||||
/// [`integration` example]: https://github.com/iced-rs/iced/tree/0.3/examples/integration
|
/// [`integration` example]: https://github.com/iced-rs/iced/tree/0.4/examples/integration
|
||||||
#[allow(missing_debug_implementations)]
|
#[allow(missing_debug_implementations)]
|
||||||
pub struct UserInterface<'a, Message, Renderer> {
|
pub struct UserInterface<'a, Message, Renderer> {
|
||||||
root: Element<'a, Message, Renderer>,
|
root: Element<'a, Message, Renderer>,
|
||||||
|
|
|
||||||
|
|
@ -93,12 +93,12 @@ use crate::{Clipboard, Layout, Length, Point, Rectangle, Shell};
|
||||||
/// - [`geometry`], a custom widget showcasing how to draw geometry with the
|
/// - [`geometry`], a custom widget showcasing how to draw geometry with the
|
||||||
/// `Mesh2D` primitive in [`iced_wgpu`].
|
/// `Mesh2D` primitive in [`iced_wgpu`].
|
||||||
///
|
///
|
||||||
/// [examples]: https://github.com/iced-rs/iced/tree/0.3/examples
|
/// [examples]: https://github.com/iced-rs/iced/tree/0.4/examples
|
||||||
/// [`bezier_tool`]: https://github.com/iced-rs/iced/tree/0.3/examples/bezier_tool
|
/// [`bezier_tool`]: https://github.com/iced-rs/iced/tree/0.4/examples/bezier_tool
|
||||||
/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.3/examples/custom_widget
|
/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.4/examples/custom_widget
|
||||||
/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.3/examples/geometry
|
/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.4/examples/geometry
|
||||||
/// [`lyon`]: https://github.com/nical/lyon
|
/// [`lyon`]: https://github.com/nical/lyon
|
||||||
/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/0.3/wgpu
|
/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/0.4/wgpu
|
||||||
pub trait Widget<Message, Renderer>
|
pub trait Widget<Message, Renderer>
|
||||||
where
|
where
|
||||||
Renderer: crate::Renderer,
|
Renderer: crate::Renderer,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
|
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
|
||||||
//! drag and drop, and hotkey support.
|
//! drag and drop, and hotkey support.
|
||||||
//!
|
//!
|
||||||
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.3/examples/pane_grid
|
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.4/examples/pane_grid
|
||||||
mod axis;
|
mod axis;
|
||||||
mod configuration;
|
mod configuration;
|
||||||
mod content;
|
mod content;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
|
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
|
||||||
//! drag and drop, and hotkey support.
|
//! drag and drop, and hotkey support.
|
||||||
//!
|
//!
|
||||||
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.3/examples/pane_grid
|
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.4/examples/pane_grid
|
||||||
mod content;
|
mod content;
|
||||||
mod title_bar;
|
mod title_bar;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,15 +37,15 @@ use crate::{Color, Command, Element, Executor, Settings, Subscription};
|
||||||
/// to listen to time.
|
/// to listen to time.
|
||||||
/// - [`todos`], a todos tracker inspired by [TodoMVC].
|
/// - [`todos`], a todos tracker inspired by [TodoMVC].
|
||||||
///
|
///
|
||||||
/// [The repository has a bunch of examples]: https://github.com/hecrj/iced/tree/0.3/examples
|
/// [The repository has a bunch of examples]: https://github.com/hecrj/iced/tree/0.4/examples
|
||||||
/// [`clock`]: https://github.com/hecrj/iced/tree/0.3/examples/clock
|
/// [`clock`]: https://github.com/hecrj/iced/tree/0.4/examples/clock
|
||||||
/// [`download_progress`]: https://github.com/hecrj/iced/tree/0.3/examples/download_progress
|
/// [`download_progress`]: https://github.com/hecrj/iced/tree/0.4/examples/download_progress
|
||||||
/// [`events`]: https://github.com/hecrj/iced/tree/0.3/examples/events
|
/// [`events`]: https://github.com/hecrj/iced/tree/0.4/examples/events
|
||||||
/// [`game_of_life`]: https://github.com/hecrj/iced/tree/0.3/examples/game_of_life
|
/// [`game_of_life`]: https://github.com/hecrj/iced/tree/0.4/examples/game_of_life
|
||||||
/// [`pokedex`]: https://github.com/hecrj/iced/tree/0.3/examples/pokedex
|
/// [`pokedex`]: https://github.com/hecrj/iced/tree/0.4/examples/pokedex
|
||||||
/// [`solar_system`]: https://github.com/hecrj/iced/tree/0.3/examples/solar_system
|
/// [`solar_system`]: https://github.com/hecrj/iced/tree/0.4/examples/solar_system
|
||||||
/// [`stopwatch`]: https://github.com/hecrj/iced/tree/0.3/examples/stopwatch
|
/// [`stopwatch`]: https://github.com/hecrj/iced/tree/0.4/examples/stopwatch
|
||||||
/// [`todos`]: https://github.com/hecrj/iced/tree/0.3/examples/todos
|
/// [`todos`]: https://github.com/hecrj/iced/tree/0.4/examples/todos
|
||||||
/// [`Sandbox`]: crate::Sandbox
|
/// [`Sandbox`]: crate::Sandbox
|
||||||
/// [`Canvas`]: crate::widget::Canvas
|
/// [`Canvas`]: crate::widget::Canvas
|
||||||
/// [PokéAPI]: https://pokeapi.co/
|
/// [PokéAPI]: https://pokeapi.co/
|
||||||
|
|
|
||||||
10
src/lib.rs
10
src/lib.rs
|
|
@ -24,13 +24,13 @@
|
||||||
//! [scrollables]: https://gfycat.com/perkybaggybaboon-rust-gui
|
//! [scrollables]: https://gfycat.com/perkybaggybaboon-rust-gui
|
||||||
//! [Debug overlay with performance metrics]: https://gfycat.com/incredibledarlingbee
|
//! [Debug overlay with performance metrics]: https://gfycat.com/incredibledarlingbee
|
||||||
//! [Modular ecosystem]: https://github.com/hecrj/iced/blob/master/ECOSYSTEM.md
|
//! [Modular ecosystem]: https://github.com/hecrj/iced/blob/master/ECOSYSTEM.md
|
||||||
//! [renderer-agnostic native runtime]: https://github.com/hecrj/iced/tree/master/native
|
//! [renderer-agnostic native runtime]: https://github.com/hecrj/iced/0.4/master/native
|
||||||
//! [`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
//! [`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
||||||
//! [built-in renderer]: https://github.com/hecrj/iced/tree/master/wgpu
|
//! [built-in renderer]: https://github.com/hecrj/iced/tree/0.4/wgpu
|
||||||
//! [windowing shell]: https://github.com/hecrj/iced/tree/master/winit
|
//! [windowing shell]: https://github.com/hecrj/iced/tree/0.4/winit
|
||||||
//! [`dodrio`]: https://github.com/fitzgen/dodrio
|
//! [`dodrio`]: https://github.com/fitzgen/dodrio
|
||||||
//! [web runtime]: https://github.com/hecrj/iced/tree/master/web
|
//! [web runtime]: https://github.com/hecrj/iced/tree/0.4/web
|
||||||
//! [examples]: https://github.com/hecrj/iced/tree/0.3/examples
|
//! [examples]: https://github.com/hecrj/iced/tree/0.4/examples
|
||||||
//! [repository]: https://github.com/hecrj/iced
|
//! [repository]: https://github.com/hecrj/iced
|
||||||
//!
|
//!
|
||||||
//! # Overview
|
//! # Overview
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ pub mod pane_grid {
|
||||||
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
|
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
|
||||||
//! drag and drop, and hotkey support.
|
//! drag and drop, and hotkey support.
|
||||||
//!
|
//!
|
||||||
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.3/examples/pane_grid
|
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.4/examples/pane_grid
|
||||||
pub use iced_pure::widget::pane_grid::{
|
pub use iced_pure::widget::pane_grid::{
|
||||||
Axis, Configuration, Direction, DragEvent, Line, Node, Pane,
|
Axis, Configuration, Direction, DragEvent, Line, Node, Pane,
|
||||||
ResizeEvent, Split, State, StyleSheet,
|
ResizeEvent, Split, State, StyleSheet,
|
||||||
|
|
|
||||||
|
|
@ -35,19 +35,19 @@ use crate::{
|
||||||
/// - [`tour`], a simple UI tour that can run both on native platforms and the
|
/// - [`tour`], a simple UI tour that can run both on native platforms and the
|
||||||
/// web!
|
/// web!
|
||||||
///
|
///
|
||||||
/// [The repository has a bunch of examples]: https://github.com/hecrj/iced/tree/0.3/examples
|
/// [The repository has a bunch of examples]: https://github.com/hecrj/iced/tree/0.4/examples
|
||||||
/// [`bezier_tool`]: https://github.com/hecrj/iced/tree/0.3/examples/bezier_tool
|
/// [`bezier_tool`]: https://github.com/hecrj/iced/tree/0.4/examples/bezier_tool
|
||||||
/// [`counter`]: https://github.com/hecrj/iced/tree/0.3/examples/counter
|
/// [`counter`]: https://github.com/hecrj/iced/tree/0.4/examples/counter
|
||||||
/// [`custom_widget`]: https://github.com/hecrj/iced/tree/0.3/examples/custom_widget
|
/// [`custom_widget`]: https://github.com/hecrj/iced/tree/0.4/examples/custom_widget
|
||||||
/// [`geometry`]: https://github.com/hecrj/iced/tree/0.3/examples/geometry
|
/// [`geometry`]: https://github.com/hecrj/iced/tree/0.4/examples/geometry
|
||||||
/// [`pane_grid`]: https://github.com/hecrj/iced/tree/0.3/examples/pane_grid
|
/// [`pane_grid`]: https://github.com/hecrj/iced/tree/0.4/examples/pane_grid
|
||||||
/// [`progress_bar`]: https://github.com/hecrj/iced/tree/0.3/examples/progress_bar
|
/// [`progress_bar`]: https://github.com/hecrj/iced/tree/0.4/examples/progress_bar
|
||||||
/// [`styling`]: https://github.com/hecrj/iced/tree/0.3/examples/styling
|
/// [`styling`]: https://github.com/hecrj/iced/tree/0.4/examples/styling
|
||||||
/// [`svg`]: https://github.com/hecrj/iced/tree/0.3/examples/svg
|
/// [`svg`]: https://github.com/hecrj/iced/tree/0.4/examples/svg
|
||||||
/// [`tour`]: https://github.com/hecrj/iced/tree/0.3/examples/tour
|
/// [`tour`]: https://github.com/hecrj/iced/tree/0.4/examples/tour
|
||||||
/// [`Canvas widget`]: crate::widget::Canvas
|
/// [`Canvas widget`]: crate::widget::Canvas
|
||||||
/// [the overview]: index.html#overview
|
/// [the overview]: index.html#overview
|
||||||
/// [`iced_wgpu`]: https://github.com/hecrj/iced/tree/0.3/wgpu
|
/// [`iced_wgpu`]: https://github.com/hecrj/iced/tree/0.4/wgpu
|
||||||
/// [`Svg` widget]: crate::widget::Svg
|
/// [`Svg` widget]: crate::widget::Svg
|
||||||
/// [Ghostscript Tiger]: https://commons.wikimedia.org/wiki/File:Ghostscript_Tiger.svg
|
/// [Ghostscript Tiger]: https://commons.wikimedia.org/wiki/File:Ghostscript_Tiger.svg
|
||||||
///
|
///
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ pub mod pane_grid {
|
||||||
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
|
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
|
||||||
//! drag and drop, and hotkey support.
|
//! drag and drop, and hotkey support.
|
||||||
//!
|
//!
|
||||||
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.3/examples/pane_grid
|
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.4/examples/pane_grid
|
||||||
pub use iced_native::widget::pane_grid::{
|
pub use iced_native::widget::pane_grid::{
|
||||||
Axis, Configuration, Direction, DragEvent, Line, Node, Pane,
|
Axis, Configuration, Direction, DragEvent, Line, Node, Pane,
|
||||||
ResizeEvent, Split, State, StyleSheet,
|
ResizeEvent, Split, State, StyleSheet,
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
//! - Meshes of triangles, useful to draw geometry freely.
|
//! - Meshes of triangles, useful to draw geometry freely.
|
||||||
//!
|
//!
|
||||||
//! [Iced]: https://github.com/iced-rs/iced
|
//! [Iced]: https://github.com/iced-rs/iced
|
||||||
//! [`iced_native`]: https://github.com/iced-rs/iced/tree/master/native
|
//! [`iced_native`]: https://github.com/iced-rs/iced/tree/0.4/native
|
||||||
//! [`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
//! [`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
||||||
//! [WebGPU API]: https://gpuweb.github.io/gpuweb/
|
//! [WebGPU API]: https://gpuweb.github.io/gpuweb/
|
||||||
//! [`wgpu_glyph`]: https://github.com/hecrj/wgpu_glyph
|
//! [`wgpu_glyph`]: https://github.com/hecrj/wgpu_glyph
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
//! Convert [`winit`] types into [`iced_native`] types, and viceversa.
|
//! Convert [`winit`] types into [`iced_native`] types, and viceversa.
|
||||||
//!
|
//!
|
||||||
//! [`winit`]: https://github.com/rust-windowing/winit
|
//! [`winit`]: https://github.com/rust-windowing/winit
|
||||||
//! [`iced_native`]: https://github.com/hecrj/iced/tree/master/native
|
//! [`iced_native`]: https://github.com/hecrj/iced/tree/0.4/native
|
||||||
use crate::keyboard;
|
use crate::keyboard;
|
||||||
use crate::mouse;
|
use crate::mouse;
|
||||||
use crate::touch;
|
use crate::touch;
|
||||||
|
|
@ -208,7 +208,7 @@ pub fn visible(mode: Mode) -> bool {
|
||||||
/// Converts a `MouseCursor` from [`iced_native`] to a [`winit`] cursor icon.
|
/// Converts a `MouseCursor` from [`iced_native`] to a [`winit`] cursor icon.
|
||||||
///
|
///
|
||||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||||
/// [`iced_native`]: https://github.com/hecrj/iced/tree/master/native
|
/// [`iced_native`]: https://github.com/hecrj/iced/tree/0.4/native
|
||||||
pub fn mouse_interaction(
|
pub fn mouse_interaction(
|
||||||
interaction: mouse::Interaction,
|
interaction: mouse::Interaction,
|
||||||
) -> winit::window::CursorIcon {
|
) -> winit::window::CursorIcon {
|
||||||
|
|
@ -232,7 +232,7 @@ pub fn mouse_interaction(
|
||||||
/// Converts a `MouseButton` from [`winit`] to an [`iced_native`] mouse button.
|
/// Converts a `MouseButton` from [`winit`] to an [`iced_native`] mouse button.
|
||||||
///
|
///
|
||||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||||
/// [`iced_native`]: https://github.com/hecrj/iced/tree/master/native
|
/// [`iced_native`]: https://github.com/hecrj/iced/tree/0.4/native
|
||||||
pub fn mouse_button(mouse_button: winit::event::MouseButton) -> mouse::Button {
|
pub fn mouse_button(mouse_button: winit::event::MouseButton) -> mouse::Button {
|
||||||
match mouse_button {
|
match mouse_button {
|
||||||
winit::event::MouseButton::Left => mouse::Button::Left,
|
winit::event::MouseButton::Left => mouse::Button::Left,
|
||||||
|
|
@ -248,7 +248,7 @@ pub fn mouse_button(mouse_button: winit::event::MouseButton) -> mouse::Button {
|
||||||
/// modifiers state.
|
/// modifiers state.
|
||||||
///
|
///
|
||||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||||
/// [`iced_native`]: https://github.com/hecrj/iced/tree/master/native
|
/// [`iced_native`]: https://github.com/hecrj/iced/tree/0.4/native
|
||||||
pub fn modifiers(
|
pub fn modifiers(
|
||||||
modifiers: winit::event::ModifiersState,
|
modifiers: winit::event::ModifiersState,
|
||||||
) -> keyboard::Modifiers {
|
) -> keyboard::Modifiers {
|
||||||
|
|
@ -275,7 +275,7 @@ pub fn cursor_position(
|
||||||
/// Converts a `Touch` from [`winit`] to an [`iced_native`] touch event.
|
/// Converts a `Touch` from [`winit`] to an [`iced_native`] touch event.
|
||||||
///
|
///
|
||||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||||
/// [`iced_native`]: https://github.com/hecrj/iced/tree/master/native
|
/// [`iced_native`]: https://github.com/hecrj/iced/tree/0.4/native
|
||||||
pub fn touch_event(
|
pub fn touch_event(
|
||||||
touch: winit::event::Touch,
|
touch: winit::event::Touch,
|
||||||
scale_factor: f64,
|
scale_factor: f64,
|
||||||
|
|
@ -306,7 +306,7 @@ pub fn touch_event(
|
||||||
/// Converts a `VirtualKeyCode` from [`winit`] to an [`iced_native`] key code.
|
/// Converts a `VirtualKeyCode` from [`winit`] to an [`iced_native`] key code.
|
||||||
///
|
///
|
||||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||||
/// [`iced_native`]: https://github.com/hecrj/iced/tree/master/native
|
/// [`iced_native`]: https://github.com/hecrj/iced/tree/0.4/native
|
||||||
pub fn key_code(
|
pub fn key_code(
|
||||||
virtual_keycode: winit::event::VirtualKeyCode,
|
virtual_keycode: winit::event::VirtualKeyCode,
|
||||||
) -> keyboard::KeyCode {
|
) -> keyboard::KeyCode {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
//! Additionally, a [`conversion`] module is available for users that decide to
|
//! Additionally, a [`conversion`] module is available for users that decide to
|
||||||
//! implement a custom event loop.
|
//! implement a custom event loop.
|
||||||
//!
|
//!
|
||||||
//! [`iced_native`]: https://github.com/hecrj/iced/tree/master/native
|
//! [`iced_native`]: https://github.com/hecrj/iced/tree/0.4/native
|
||||||
//! [`winit`]: https://github.com/rust-windowing/winit
|
//! [`winit`]: https://github.com/rust-windowing/winit
|
||||||
//! [`conversion`]: crate::conversion
|
//! [`conversion`]: crate::conversion
|
||||||
#![doc(
|
#![doc(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue