Point doc links to 0.12 branch
This commit is contained in:
parent
7555487503
commit
e9862f8913
10 changed files with 42 additions and 42 deletions
|
|
@ -33,12 +33,12 @@ use crate::{Clipboard, Length, Rectangle, Shell, Size, Vector};
|
|||
/// - [`geometry`], a custom widget showcasing how to draw geometry with the
|
||||
/// `Mesh2D` primitive in [`iced_wgpu`].
|
||||
///
|
||||
/// [examples]: https://github.com/iced-rs/iced/tree/0.10/examples
|
||||
/// [`bezier_tool`]: https://github.com/iced-rs/iced/tree/0.10/examples/bezier_tool
|
||||
/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.10/examples/custom_widget
|
||||
/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.10/examples/geometry
|
||||
/// [examples]: https://github.com/iced-rs/iced/tree/0.12/examples
|
||||
/// [`bezier_tool`]: https://github.com/iced-rs/iced/tree/0.12/examples/bezier_tool
|
||||
/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.12/examples/custom_widget
|
||||
/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.12/examples/geometry
|
||||
/// [`lyon`]: https://github.com/nical/lyon
|
||||
/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/0.10/wgpu
|
||||
/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/0.12/wgpu
|
||||
pub trait Widget<Message, Theme, Renderer>
|
||||
where
|
||||
Renderer: crate::Renderer,
|
||||
|
|
|
|||
|
|
@ -138,9 +138,9 @@ impl<Message> std::fmt::Debug for Subscription<Message> {
|
|||
/// - [`stopwatch`], a watch with start/stop and reset buttons showcasing how
|
||||
/// to listen to time.
|
||||
///
|
||||
/// [examples]: https://github.com/iced-rs/iced/tree/0.10/examples
|
||||
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.10/examples/download_progress
|
||||
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.10/examples/stopwatch
|
||||
/// [examples]: https://github.com/iced-rs/iced/tree/0.12/examples
|
||||
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.12/examples/download_progress
|
||||
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.12/examples/stopwatch
|
||||
pub trait Recipe {
|
||||
/// The events that will be produced by a [`Subscription`] with this
|
||||
/// [`Recipe`].
|
||||
|
|
@ -378,7 +378,7 @@ where
|
|||
/// Check out the [`websocket`] example, which showcases this pattern to maintain a `WebSocket`
|
||||
/// connection open.
|
||||
///
|
||||
/// [`websocket`]: https://github.com/iced-rs/iced/tree/0.10/examples/websocket
|
||||
/// [`websocket`]: https://github.com/iced-rs/iced/tree/0.12/examples/websocket
|
||||
pub fn channel<I, Fut, Message>(
|
||||
id: I,
|
||||
size: usize,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
//!
|
||||
//! `iced_runtime` takes [`iced_core`] and builds a native runtime on top of it.
|
||||
//!
|
||||
//! [`iced_core`]: https://github.com/iced-rs/iced/tree/0.10/core
|
||||
//! [`iced_core`]: https://github.com/iced-rs/iced/tree/0.12/core
|
||||
#![doc(
|
||||
html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
|
||||
)]
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use crate::overlay;
|
|||
/// The [`integration`] example uses a [`UserInterface`] to integrate Iced in an
|
||||
/// existing graphical application.
|
||||
///
|
||||
/// [`integration`]: https://github.com/iced-rs/iced/tree/0.10/examples/integration
|
||||
/// [`integration`]: https://github.com/iced-rs/iced/tree/0.12/examples/integration
|
||||
#[allow(missing_debug_implementations)]
|
||||
pub struct UserInterface<'a, Message, Theme, Renderer> {
|
||||
root: Element<'a, Message, Theme, Renderer>,
|
||||
|
|
|
|||
|
|
@ -39,15 +39,15 @@ pub use crate::style::application::{Appearance, StyleSheet};
|
|||
/// to listen to time.
|
||||
/// - [`todos`], a todos tracker inspired by [TodoMVC].
|
||||
///
|
||||
/// [The repository has a bunch of examples]: https://github.com/iced-rs/iced/tree/0.10/examples
|
||||
/// [`clock`]: https://github.com/iced-rs/iced/tree/0.10/examples/clock
|
||||
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.10/examples/download_progress
|
||||
/// [`events`]: https://github.com/iced-rs/iced/tree/0.10/examples/events
|
||||
/// [`game_of_life`]: https://github.com/iced-rs/iced/tree/0.10/examples/game_of_life
|
||||
/// [`pokedex`]: https://github.com/iced-rs/iced/tree/0.10/examples/pokedex
|
||||
/// [`solar_system`]: https://github.com/iced-rs/iced/tree/0.10/examples/solar_system
|
||||
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.10/examples/stopwatch
|
||||
/// [`todos`]: https://github.com/iced-rs/iced/tree/0.10/examples/todos
|
||||
/// [The repository has a bunch of examples]: https://github.com/iced-rs/iced/tree/0.12/examples
|
||||
/// [`clock`]: https://github.com/iced-rs/iced/tree/0.12/examples/clock
|
||||
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.12/examples/download_progress
|
||||
/// [`events`]: https://github.com/iced-rs/iced/tree/0.12/examples/events
|
||||
/// [`game_of_life`]: https://github.com/iced-rs/iced/tree/0.12/examples/game_of_life
|
||||
/// [`pokedex`]: https://github.com/iced-rs/iced/tree/0.12/examples/pokedex
|
||||
/// [`solar_system`]: https://github.com/iced-rs/iced/tree/0.12/examples/solar_system
|
||||
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.12/examples/stopwatch
|
||||
/// [`todos`]: https://github.com/iced-rs/iced/tree/0.12/examples/todos
|
||||
/// [`Sandbox`]: crate::Sandbox
|
||||
/// [`Canvas`]: crate::widget::Canvas
|
||||
/// [PokéAPI]: https://pokeapi.co/
|
||||
|
|
|
|||
|
|
@ -24,13 +24,13 @@
|
|||
//! [scrollables]: https://iced.rs/examples/scrollable.mp4
|
||||
//! [Debug overlay with performance metrics]: https://iced.rs/examples/debug.mp4
|
||||
//! [Modular ecosystem]: https://github.com/iced-rs/iced/blob/master/ECOSYSTEM.md
|
||||
//! [renderer-agnostic native runtime]: https://github.com/iced-rs/iced/tree/0.10/runtime
|
||||
//! [renderer-agnostic native runtime]: https://github.com/iced-rs/iced/tree/0.12/runtime
|
||||
//! [`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
||||
//! [built-in renderer]: https://github.com/iced-rs/iced/tree/0.10/wgpu
|
||||
//! [windowing shell]: https://github.com/iced-rs/iced/tree/0.10/winit
|
||||
//! [built-in renderer]: https://github.com/iced-rs/iced/tree/0.12/wgpu
|
||||
//! [windowing shell]: https://github.com/iced-rs/iced/tree/0.12/winit
|
||||
//! [`dodrio`]: https://github.com/fitzgen/dodrio
|
||||
//! [web runtime]: https://github.com/iced-rs/iced_web
|
||||
//! [examples]: https://github.com/iced-rs/iced/tree/0.10/examples
|
||||
//! [examples]: https://github.com/iced-rs/iced/tree/0.12/examples
|
||||
//! [repository]: https://github.com/iced-rs/iced
|
||||
//!
|
||||
//! # Overview
|
||||
|
|
|
|||
|
|
@ -34,19 +34,19 @@ use crate::{Application, Command, Element, Error, Settings, Subscription};
|
|||
/// - [`tour`], a simple UI tour that can run both on native platforms and the
|
||||
/// web!
|
||||
///
|
||||
/// [The repository has a bunch of examples]: https://github.com/iced-rs/iced/tree/0.10/examples
|
||||
/// [`bezier_tool`]: https://github.com/iced-rs/iced/tree/0.10/examples/bezier_tool
|
||||
/// [`counter`]: https://github.com/iced-rs/iced/tree/0.10/examples/counter
|
||||
/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.10/examples/custom_widget
|
||||
/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.10/examples/geometry
|
||||
/// [`pane_grid`]: https://github.com/iced-rs/iced/tree/0.10/examples/pane_grid
|
||||
/// [`progress_bar`]: https://github.com/iced-rs/iced/tree/0.10/examples/progress_bar
|
||||
/// [`styling`]: https://github.com/iced-rs/iced/tree/0.10/examples/styling
|
||||
/// [`svg`]: https://github.com/iced-rs/iced/tree/0.10/examples/svg
|
||||
/// [`tour`]: https://github.com/iced-rs/iced/tree/0.10/examples/tour
|
||||
/// [The repository has a bunch of examples]: https://github.com/iced-rs/iced/tree/0.12/examples
|
||||
/// [`bezier_tool`]: https://github.com/iced-rs/iced/tree/0.12/examples/bezier_tool
|
||||
/// [`counter`]: https://github.com/iced-rs/iced/tree/0.12/examples/counter
|
||||
/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.12/examples/custom_widget
|
||||
/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.12/examples/geometry
|
||||
/// [`pane_grid`]: https://github.com/iced-rs/iced/tree/0.12/examples/pane_grid
|
||||
/// [`progress_bar`]: https://github.com/iced-rs/iced/tree/0.12/examples/progress_bar
|
||||
/// [`styling`]: https://github.com/iced-rs/iced/tree/0.12/examples/styling
|
||||
/// [`svg`]: https://github.com/iced-rs/iced/tree/0.12/examples/svg
|
||||
/// [`tour`]: https://github.com/iced-rs/iced/tree/0.12/examples/tour
|
||||
/// [`Canvas widget`]: crate::widget::Canvas
|
||||
/// [the overview]: index.html#overview
|
||||
/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/0.10/wgpu
|
||||
/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/0.12/wgpu
|
||||
/// [`Svg` widget]: crate::widget::Svg
|
||||
/// [Ghostscript Tiger]: https://commons.wikimedia.org/wiki/File:Ghostscript_Tiger.svg
|
||||
///
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
|
||||
//! drag and drop, and hotkey support.
|
||||
//!
|
||||
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.10/examples/pane_grid
|
||||
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.12/examples/pane_grid
|
||||
mod axis;
|
||||
mod configuration;
|
||||
mod content;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
//! Additionally, a [`conversion`] module is available for users that decide to
|
||||
//! implement a custom event loop.
|
||||
//!
|
||||
//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.10/runtime
|
||||
//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.12/runtime
|
||||
//! [`winit`]: https://github.com/rust-windowing/winit
|
||||
//! [`conversion`]: crate::conversion
|
||||
#![doc(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue