Bump versions 🎉
This commit is contained in:
parent
78dc341ea8
commit
126aef88e7
24 changed files with 101 additions and 87 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "iced"
|
name = "iced"
|
||||||
version = "0.9.0"
|
version = "0.10.0"
|
||||||
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A cross-platform GUI library inspired by Elm"
|
description = "A cross-platform GUI library inspired by Elm"
|
||||||
|
|
@ -61,11 +61,11 @@ members = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
iced_core = { version = "0.9", path = "core" }
|
iced_core = { version = "0.10", path = "core" }
|
||||||
iced_futures = { version = "0.6", path = "futures" }
|
iced_futures = { version = "0.7", path = "futures" }
|
||||||
iced_renderer = { version = "0.1", path = "renderer" }
|
iced_renderer = { version = "0.1", path = "renderer" }
|
||||||
iced_widget = { version = "0.1", path = "widget" }
|
iced_widget = { version = "0.1", path = "widget" }
|
||||||
iced_winit = { version = "0.9", path = "winit", features = ["application"] }
|
iced_winit = { version = "0.10", path = "winit", features = ["application"] }
|
||||||
thiserror = "1"
|
thiserror = "1"
|
||||||
|
|
||||||
[dependencies.image_rs]
|
[dependencies.image_rs]
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ __Iced is currently experimental software.__ [Take a look at the roadmap],
|
||||||
Add `iced` as a dependency in your `Cargo.toml`:
|
Add `iced` as a dependency in your `Cargo.toml`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
iced = "0.9"
|
iced = "0.10"
|
||||||
```
|
```
|
||||||
|
|
||||||
If your project is using a Rust edition older than 2021, then you will need to
|
If your project is using a Rust edition older than 2021, then you will need to
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "iced_core"
|
name = "iced_core"
|
||||||
version = "0.9.0"
|
version = "0.10.0"
|
||||||
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "The essential concepts of Iced"
|
description = "The essential concepts of Iced"
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,11 @@
|
||||||
//! The core library of [Iced].
|
//! The core library of [Iced].
|
||||||
//!
|
//!
|
||||||
//! This library holds basic types that can be reused and re-exported in
|
//! This library holds basic types that can be reused and re-exported in
|
||||||
//! different runtime implementations. For instance, both [`iced_native`] and
|
//! different runtime implementations.
|
||||||
//! [`iced_web`] are built on top of `iced_core`.
|
|
||||||
//!
|
//!
|
||||||
//! 
|
//! 
|
||||||
//!
|
//!
|
||||||
//! [Iced]: https://github.com/iced-rs/iced
|
//! [Iced]: https://github.com/iced-rs/iced
|
||||||
//! [`iced_native`]: https://github.com/iced-rs/iced/tree/0.9/native
|
|
||||||
//! [`iced_web`]: https://github.com/iced-rs/iced_web
|
|
||||||
#![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"
|
||||||
)]
|
)]
|
||||||
|
|
|
||||||
|
|
@ -33,12 +33,12 @@ use crate::{Clipboard, Length, 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.9/examples
|
/// [examples]: https://github.com/iced-rs/iced/tree/0.10/examples
|
||||||
/// [`bezier_tool`]: https://github.com/iced-rs/iced/tree/0.9/examples/bezier_tool
|
/// [`bezier_tool`]: https://github.com/iced-rs/iced/tree/0.10/examples/bezier_tool
|
||||||
/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.9/examples/custom_widget
|
/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.10/examples/custom_widget
|
||||||
/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.9/examples/geometry
|
/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.10/examples/geometry
|
||||||
/// [`lyon`]: https://github.com/nical/lyon
|
/// [`lyon`]: https://github.com/nical/lyon
|
||||||
/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/0.9/wgpu
|
/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/0.10/wgpu
|
||||||
pub trait Widget<Message, Renderer>
|
pub trait Widget<Message, Renderer>
|
||||||
where
|
where
|
||||||
Renderer: crate::Renderer,
|
Renderer: crate::Renderer,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "iced_futures"
|
name = "iced_futures"
|
||||||
version = "0.6.0"
|
version = "0.7.0"
|
||||||
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Commands, subscriptions, and runtimes for Iced"
|
description = "Commands, subscriptions, and runtimes for Iced"
|
||||||
|
|
@ -17,7 +17,7 @@ thread-pool = ["futures/thread-pool"]
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
||||||
[dependencies.iced_core]
|
[dependencies.iced_core]
|
||||||
version = "0.9"
|
version = "0.10"
|
||||||
path = "../core"
|
path = "../core"
|
||||||
|
|
||||||
[dependencies.futures]
|
[dependencies.futures]
|
||||||
|
|
|
||||||
|
|
@ -128,9 +128,9 @@ impl<Message> std::fmt::Debug for Subscription<Message> {
|
||||||
/// - [`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.9/examples
|
/// [examples]: https://github.com/iced-rs/iced/tree/0.10/examples
|
||||||
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.9/examples/download_progress
|
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.10/examples/download_progress
|
||||||
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.9/examples/stopwatch
|
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.10/examples/stopwatch
|
||||||
pub trait Recipe {
|
pub trait Recipe {
|
||||||
/// The events that will be produced by a [`Subscription`] with this
|
/// The events that will be produced by a [`Subscription`] with this
|
||||||
/// [`Recipe`].
|
/// [`Recipe`].
|
||||||
|
|
@ -413,7 +413,7 @@ where
|
||||||
/// Check out the [`websocket`] example, which showcases this pattern to maintain a WebSocket
|
/// Check out the [`websocket`] example, which showcases this pattern to maintain a WebSocket
|
||||||
/// connection open.
|
/// connection open.
|
||||||
///
|
///
|
||||||
/// [`websocket`]: https://github.com/iced-rs/iced/tree/0.9/examples/websocket
|
/// [`websocket`]: https://github.com/iced-rs/iced/tree/0.10/examples/websocket
|
||||||
pub fn channel<I, Fut, Message>(
|
pub fn channel<I, Fut, Message>(
|
||||||
id: I,
|
id: I,
|
||||||
size: usize,
|
size: usize,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "iced_graphics"
|
name = "iced_graphics"
|
||||||
version = "0.8.0"
|
version = "0.9.0"
|
||||||
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A bunch of backend-agnostic types that can be leveraged to build a renderer for Iced"
|
description = "A bunch of backend-agnostic types that can be leveraged to build a renderer for Iced"
|
||||||
|
|
@ -29,7 +29,7 @@ version = "1.4"
|
||||||
features = ["derive"]
|
features = ["derive"]
|
||||||
|
|
||||||
[dependencies.iced_core]
|
[dependencies.iced_core]
|
||||||
version = "0.9"
|
version = "0.10"
|
||||||
path = "../core"
|
path = "../core"
|
||||||
|
|
||||||
[dependencies.image]
|
[dependencies.image]
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,14 @@
|
||||||
[package]
|
[package]
|
||||||
name = "iced_renderer"
|
name = "iced_renderer"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
description = "The official renderer for Iced"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/iced-rs/iced"
|
||||||
|
documentation = "https://docs.rs/iced_renderer"
|
||||||
|
keywords = ["gui", "ui", "graphics", "interface", "widgets"]
|
||||||
|
categories = ["gui"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
wgpu = ["iced_wgpu"]
|
wgpu = ["iced_wgpu"]
|
||||||
|
|
@ -17,7 +24,7 @@ thiserror = "1"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
||||||
[dependencies.iced_graphics]
|
[dependencies.iced_graphics]
|
||||||
version = "0.8"
|
version = "0.9"
|
||||||
path = "../graphics"
|
path = "../graphics"
|
||||||
|
|
||||||
[dependencies.iced_tiny_skia]
|
[dependencies.iced_tiny_skia]
|
||||||
|
|
@ -25,6 +32,6 @@ version = "0.1"
|
||||||
path = "../tiny_skia"
|
path = "../tiny_skia"
|
||||||
|
|
||||||
[dependencies.iced_wgpu]
|
[dependencies.iced_wgpu]
|
||||||
version = "0.10"
|
version = "0.11"
|
||||||
path = "../wgpu"
|
path = "../wgpu"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ name = "iced_runtime"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A renderer-agnostic library for native GUIs"
|
description = "The renderer-agnostic runtime for Iced"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/iced-rs/iced"
|
repository = "https://github.com/iced-rs/iced"
|
||||||
|
|
||||||
|
|
@ -14,10 +14,10 @@ debug = []
|
||||||
thiserror = "1"
|
thiserror = "1"
|
||||||
|
|
||||||
[dependencies.iced_core]
|
[dependencies.iced_core]
|
||||||
version = "0.9"
|
version = "0.10"
|
||||||
path = "../core"
|
path = "../core"
|
||||||
|
|
||||||
[dependencies.iced_futures]
|
[dependencies.iced_futures]
|
||||||
version = "0.6"
|
version = "0.7"
|
||||||
path = "../futures"
|
path = "../futures"
|
||||||
features = ["thread-pool"]
|
features = ["thread-pool"]
|
||||||
|
|
|
||||||
|
|
@ -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/0.9/core
|
//! [`iced_core`]: https://github.com/iced-rs/iced/tree/0.10/core
|
||||||
//! [`iced_winit`]: https://github.com/iced-rs/iced/tree/0.9/winit
|
//! [`iced_winit`]: https://github.com/iced-rs/iced/tree/0.10/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
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ use crate::overlay;
|
||||||
/// The [`integration`] example uses a [`UserInterface`] to integrate Iced in an
|
/// The [`integration`] example uses a [`UserInterface`] to integrate Iced in an
|
||||||
/// existing graphical application.
|
/// existing graphical application.
|
||||||
///
|
///
|
||||||
/// [`integration`]: https://github.com/iced-rs/iced/tree/0.9/examples/integration
|
/// [`integration`]: https://github.com/iced-rs/iced/tree/0.10/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>,
|
||||||
|
|
|
||||||
|
|
@ -39,15 +39,15 @@ pub use crate::style::application::{Appearance, StyleSheet};
|
||||||
/// 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/iced-rs/iced/tree/0.9/examples
|
/// [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.9/examples/clock
|
/// [`clock`]: https://github.com/iced-rs/iced/tree/0.10/examples/clock
|
||||||
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.9/examples/download_progress
|
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.10/examples/download_progress
|
||||||
/// [`events`]: https://github.com/iced-rs/iced/tree/0.9/examples/events
|
/// [`events`]: https://github.com/iced-rs/iced/tree/0.10/examples/events
|
||||||
/// [`game_of_life`]: https://github.com/iced-rs/iced/tree/0.9/examples/game_of_life
|
/// [`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.9/examples/pokedex
|
/// [`pokedex`]: https://github.com/iced-rs/iced/tree/0.10/examples/pokedex
|
||||||
/// [`solar_system`]: https://github.com/iced-rs/iced/tree/0.9/examples/solar_system
|
/// [`solar_system`]: https://github.com/iced-rs/iced/tree/0.10/examples/solar_system
|
||||||
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.9/examples/stopwatch
|
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.10/examples/stopwatch
|
||||||
/// [`todos`]: https://github.com/iced-rs/iced/tree/0.9/examples/todos
|
/// [`todos`]: https://github.com/iced-rs/iced/tree/0.10/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/
|
||||||
|
|
|
||||||
|
|
@ -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/iced-rs/iced/blob/master/ECOSYSTEM.md
|
//! [Modular ecosystem]: https://github.com/iced-rs/iced/blob/master/ECOSYSTEM.md
|
||||||
//! [renderer-agnostic native runtime]: https://github.com/iced-rs/iced/tree/0.9/native
|
//! [renderer-agnostic native runtime]: https://github.com/iced-rs/iced/tree/0.10/runtime
|
||||||
//! [`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
//! [`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
||||||
//! [built-in renderer]: https://github.com/iced-rs/iced/tree/0.9/wgpu
|
//! [built-in renderer]: https://github.com/iced-rs/iced/tree/0.10/wgpu
|
||||||
//! [windowing shell]: https://github.com/iced-rs/iced/tree/0.9/winit
|
//! [windowing shell]: https://github.com/iced-rs/iced/tree/0.10/winit
|
||||||
//! [`dodrio`]: https://github.com/fitzgen/dodrio
|
//! [`dodrio`]: https://github.com/fitzgen/dodrio
|
||||||
//! [web runtime]: https://github.com/iced-rs/iced_web
|
//! [web runtime]: https://github.com/iced-rs/iced_web
|
||||||
//! [examples]: https://github.com/iced-rs/iced/tree/0.9/examples
|
//! [examples]: https://github.com/iced-rs/iced/tree/0.10/examples
|
||||||
//! [repository]: https://github.com/iced-rs/iced
|
//! [repository]: https://github.com/iced-rs/iced
|
||||||
//!
|
//!
|
||||||
//! # Overview
|
//! # 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
|
/// - [`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/iced-rs/iced/tree/0.9/examples
|
/// [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.9/examples/bezier_tool
|
/// [`bezier_tool`]: https://github.com/iced-rs/iced/tree/0.10/examples/bezier_tool
|
||||||
/// [`counter`]: https://github.com/iced-rs/iced/tree/0.9/examples/counter
|
/// [`counter`]: https://github.com/iced-rs/iced/tree/0.10/examples/counter
|
||||||
/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.9/examples/custom_widget
|
/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.10/examples/custom_widget
|
||||||
/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.9/examples/geometry
|
/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.10/examples/geometry
|
||||||
/// [`pane_grid`]: https://github.com/iced-rs/iced/tree/0.9/examples/pane_grid
|
/// [`pane_grid`]: https://github.com/iced-rs/iced/tree/0.10/examples/pane_grid
|
||||||
/// [`progress_bar`]: https://github.com/iced-rs/iced/tree/0.9/examples/progress_bar
|
/// [`progress_bar`]: https://github.com/iced-rs/iced/tree/0.10/examples/progress_bar
|
||||||
/// [`styling`]: https://github.com/iced-rs/iced/tree/0.9/examples/styling
|
/// [`styling`]: https://github.com/iced-rs/iced/tree/0.10/examples/styling
|
||||||
/// [`svg`]: https://github.com/iced-rs/iced/tree/0.9/examples/svg
|
/// [`svg`]: https://github.com/iced-rs/iced/tree/0.10/examples/svg
|
||||||
/// [`tour`]: https://github.com/iced-rs/iced/tree/0.9/examples/tour
|
/// [`tour`]: https://github.com/iced-rs/iced/tree/0.10/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/iced-rs/iced/tree/0.9/wgpu
|
/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/0.10/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
|
||||||
///
|
///
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "iced_style"
|
name = "iced_style"
|
||||||
version = "0.8.0"
|
version = "0.9.0"
|
||||||
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "The default set of styles of Iced"
|
description = "The default set of styles of Iced"
|
||||||
|
|
@ -11,7 +11,7 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"]
|
||||||
categories = ["gui"]
|
categories = ["gui"]
|
||||||
|
|
||||||
[dependencies.iced_core]
|
[dependencies.iced_core]
|
||||||
version = "0.9"
|
version = "0.10"
|
||||||
path = "../core"
|
path = "../core"
|
||||||
features = ["palette"]
|
features = ["palette"]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,14 @@
|
||||||
[package]
|
[package]
|
||||||
name = "iced_tiny_skia"
|
name = "iced_tiny_skia"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
description = "A software renderer for Iced"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/iced-rs/iced"
|
||||||
|
documentation = "https://docs.rs/iced_tiny_skia"
|
||||||
|
keywords = ["gui", "ui", "graphics", "interface", "widgets"]
|
||||||
|
categories = ["gui"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
image = ["iced_graphics/image"]
|
image = ["iced_graphics/image"]
|
||||||
|
|
@ -19,7 +26,7 @@ kurbo = "0.9"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
||||||
[dependencies.iced_graphics]
|
[dependencies.iced_graphics]
|
||||||
version = "0.8"
|
version = "0.9"
|
||||||
path = "../graphics"
|
path = "../graphics"
|
||||||
|
|
||||||
[dependencies.twox-hash]
|
[dependencies.twox-hash]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "iced_wgpu"
|
name = "iced_wgpu"
|
||||||
version = "0.10.0"
|
version = "0.11.0"
|
||||||
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A wgpu renderer for Iced"
|
description = "A wgpu renderer for Iced"
|
||||||
|
|
@ -40,7 +40,7 @@ version = "1.9"
|
||||||
features = ["derive"]
|
features = ["derive"]
|
||||||
|
|
||||||
[dependencies.iced_graphics]
|
[dependencies.iced_graphics]
|
||||||
version = "0.8"
|
version = "0.9"
|
||||||
path = "../graphics"
|
path = "../graphics"
|
||||||
|
|
||||||
[dependencies.glam]
|
[dependencies.glam]
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,22 @@
|
||||||
//! A [`wgpu`] renderer for [`iced_native`].
|
//! A [`wgpu`] renderer for [Iced].
|
||||||
//!
|
//!
|
||||||
//! 
|
//! 
|
||||||
//!
|
//!
|
||||||
//! For now, it is the default renderer of [Iced] in native platforms.
|
|
||||||
//!
|
|
||||||
//! [`wgpu`] supports most modern graphics backends: Vulkan, Metal, DX11, and
|
//! [`wgpu`] supports most modern graphics backends: Vulkan, Metal, DX11, and
|
||||||
//! DX12 (OpenGL and WebGL are still WIP). Additionally, it will support the
|
//! DX12 (OpenGL and WebGL are still WIP). Additionally, it will support the
|
||||||
//! incoming [WebGPU API].
|
//! incoming [WebGPU API].
|
||||||
//!
|
//!
|
||||||
//! Currently, `iced_wgpu` supports the following primitives:
|
//! Currently, `iced_wgpu` supports the following primitives:
|
||||||
//! - Text, which is rendered using [`wgpu_glyph`]. No shaping at all.
|
//! - Text, which is rendered using [`glyphon`].
|
||||||
//! - Quads or rectangles, with rounded borders and a solid background color.
|
//! - Quads or rectangles, with rounded borders and a solid background color.
|
||||||
//! - Clip areas, useful to implement scrollables or hide overflowing content.
|
//! - Clip areas, useful to implement scrollables or hide overflowing content.
|
||||||
//! - Images and SVG, loaded from memory or the file system.
|
//! - Images and SVG, loaded from memory or the file system.
|
||||||
//! - 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/0.9/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
|
//! [`glyphon`]: https://github.com/grovesNL/glyphon
|
||||||
#![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"
|
||||||
)]
|
)]
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,14 @@
|
||||||
[package]
|
[package]
|
||||||
name = "iced_widget"
|
name = "iced_widget"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
description = "The built-in widgets for Iced"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/iced-rs/iced"
|
||||||
|
documentation = "https://docs.rs/iced_widget"
|
||||||
|
keywords = ["gui", "ui", "graphics", "interface", "widgets"]
|
||||||
|
categories = ["gui"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
lazy = ["ouroboros"]
|
lazy = ["ouroboros"]
|
||||||
|
|
@ -24,7 +31,7 @@ version = "0.1"
|
||||||
path = "../renderer"
|
path = "../renderer"
|
||||||
|
|
||||||
[dependencies.iced_style]
|
[dependencies.iced_style]
|
||||||
version = "0.8"
|
version = "0.9"
|
||||||
path = "../style"
|
path = "../style"
|
||||||
|
|
||||||
[dependencies.ouroboros]
|
[dependencies.ouroboros]
|
||||||
|
|
|
||||||
|
|
@ -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.9/examples/pane_grid
|
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.10/examples/pane_grid
|
||||||
mod axis;
|
mod axis;
|
||||||
mod configuration;
|
mod configuration;
|
||||||
mod content;
|
mod content;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "iced_winit"
|
name = "iced_winit"
|
||||||
version = "0.9.1"
|
version = "0.10.0"
|
||||||
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A winit runtime for Iced"
|
description = "A winit runtime for Iced"
|
||||||
|
|
@ -39,11 +39,11 @@ version = "0.1"
|
||||||
path = "../runtime"
|
path = "../runtime"
|
||||||
|
|
||||||
[dependencies.iced_graphics]
|
[dependencies.iced_graphics]
|
||||||
version = "0.8"
|
version = "0.9"
|
||||||
path = "../graphics"
|
path = "../graphics"
|
||||||
|
|
||||||
[dependencies.iced_style]
|
[dependencies.iced_style]
|
||||||
version = "0.8"
|
version = "0.9"
|
||||||
path = "../style"
|
path = "../style"
|
||||||
|
|
||||||
[dependencies.tracing]
|
[dependencies.tracing]
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
//! Convert [`winit`] types into [`iced_native`] types, and viceversa.
|
//! Convert [`winit`] types into [`iced_runtime`] types, and viceversa.
|
||||||
//!
|
//!
|
||||||
//! [`winit`]: https://github.com/rust-windowing/winit
|
//! [`winit`]: https://github.com/rust-windowing/winit
|
||||||
//! [`iced_native`]: https://github.com/iced-rs/iced/tree/0.9/native
|
//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.10/runtime
|
||||||
use crate::core::keyboard;
|
use crate::core::keyboard;
|
||||||
use crate::core::mouse;
|
use crate::core::mouse;
|
||||||
use crate::core::touch;
|
use crate::core::touch;
|
||||||
|
|
@ -229,10 +229,9 @@ pub fn mode(mode: Option<winit::window::Fullscreen>) -> window::Mode {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Converts a `MouseCursor` from [`iced_native`] to a [`winit`] cursor icon.
|
/// Converts a [`mouse::Interaction`] to a [`winit`] cursor icon.
|
||||||
///
|
///
|
||||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||||
/// [`iced_native`]: https://github.com/iced-rs/iced/tree/0.9/native
|
|
||||||
pub fn mouse_interaction(
|
pub fn mouse_interaction(
|
||||||
interaction: mouse::Interaction,
|
interaction: mouse::Interaction,
|
||||||
) -> winit::window::CursorIcon {
|
) -> winit::window::CursorIcon {
|
||||||
|
|
@ -254,10 +253,10 @@ pub fn mouse_interaction(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Converts a `MouseButton` from [`winit`] to an [`iced_native`] mouse button.
|
/// Converts a `MouseButton` from [`winit`] to an [`iced`] mouse button.
|
||||||
///
|
///
|
||||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||||
/// [`iced_native`]: https://github.com/iced-rs/iced/tree/0.9/native
|
/// [`iced`]: https://github.com/iced-rs/iced/tree/0.10
|
||||||
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,
|
||||||
|
|
@ -267,11 +266,11 @@ pub fn mouse_button(mouse_button: winit::event::MouseButton) -> mouse::Button {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Converts some `ModifiersState` from [`winit`] to an [`iced_native`]
|
/// Converts some `ModifiersState` from [`winit`] to an [`iced`] modifiers
|
||||||
/// modifiers state.
|
/// state.
|
||||||
///
|
///
|
||||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||||
/// [`iced_native`]: https://github.com/iced-rs/iced/tree/0.9/native
|
/// [`iced`]: https://github.com/iced-rs/iced/tree/0.10
|
||||||
pub fn modifiers(
|
pub fn modifiers(
|
||||||
modifiers: winit::event::ModifiersState,
|
modifiers: winit::event::ModifiersState,
|
||||||
) -> keyboard::Modifiers {
|
) -> keyboard::Modifiers {
|
||||||
|
|
@ -295,10 +294,10 @@ pub fn cursor_position(
|
||||||
Point::new(logical_position.x, logical_position.y)
|
Point::new(logical_position.x, logical_position.y)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Converts a `Touch` from [`winit`] to an [`iced_native`] touch event.
|
/// Converts a `Touch` from [`winit`] to an [`iced`] touch event.
|
||||||
///
|
///
|
||||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||||
/// [`iced_native`]: https://github.com/iced-rs/iced/tree/0.9/native
|
/// [`iced`]: https://github.com/iced-rs/iced/tree/0.10
|
||||||
pub fn touch_event(
|
pub fn touch_event(
|
||||||
touch: winit::event::Touch,
|
touch: winit::event::Touch,
|
||||||
scale_factor: f64,
|
scale_factor: f64,
|
||||||
|
|
@ -326,10 +325,10 @@ pub fn touch_event(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Converts a `VirtualKeyCode` from [`winit`] to an [`iced_native`] key code.
|
/// Converts a `VirtualKeyCode` from [`winit`] to an [`iced`] key code.
|
||||||
///
|
///
|
||||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||||
/// [`iced_native`]: https://github.com/iced-rs/iced/tree/0.9/native
|
/// [`iced`]: https://github.com/iced-rs/iced/tree/0.10
|
||||||
pub fn key_code(
|
pub fn key_code(
|
||||||
virtual_keycode: winit::event::VirtualKeyCode,
|
virtual_keycode: winit::event::VirtualKeyCode,
|
||||||
) -> keyboard::KeyCode {
|
) -> keyboard::KeyCode {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
//!
|
//!
|
||||||
//! 
|
//! 
|
||||||
//!
|
//!
|
||||||
//! `iced_winit` offers some convenient abstractions on top of [`iced_native`]
|
//! `iced_winit` offers some convenient abstractions on top of [`iced_runtime`]
|
||||||
//! to quickstart development when using [`winit`].
|
//! to quickstart development when using [`winit`].
|
||||||
//!
|
//!
|
||||||
//! It exposes a renderer-agnostic [`Application`] trait that can be implemented
|
//! It exposes a renderer-agnostic [`Application`] trait that can be implemented
|
||||||
|
|
@ -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/iced-rs/iced/tree/0.9/native
|
//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.10/runtime
|
||||||
//! [`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