Skip to content

Commit 5acba65

Browse files
authored
Merge pull request #1327 from iced-rs/update-docs
Update documentation
2 parents a17a710 + 7e111f2 commit 5acba65

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+755
-187
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Thank you for considering contributing to Iced! Feel free to read [the ecosystem overview] and [the roadmap] to get an idea of the current state of the library.
44

5-
The main advice for new contributors is to share your ideas with the community. Introduce yourself over our [Discord server] or [start a discussion in an issue](https://github.com/hecrj/iced/issues) explaining what you have in mind (do not be afraid of duplicated issues!). If you want to talk directly to me (@hecrj), you can also find me on Discord (`lone_scientist#9554`).
5+
The main advice for new contributors is to share your ideas with the community. Introduce yourself over our [Discord server] or [start a discussion in an issue](https://github.com/iced-rs/iced/issues) explaining what you have in mind (do not be afraid of duplicated issues!). If you want to talk directly to me (@hecrj), you can also find me on Discord (`lone_scientist#9554`).
66

77
This is a very important step. It helps to coordinate work, get on the same page, and start building trust. Please, do not skip it! Remember that [Code is the Easy Part] and also [The Hard Parts of Open Source]!
88

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ iced_wgpu = { version = "0.4", path = "wgpu", features = ["webgl"], optional = t
116116

117117
[package.metadata.docs.rs]
118118
rustdoc-args = ["--cfg", "docsrs"]
119-
features = ["image", "svg", "canvas", "qr_code"]
119+
features = ["image", "svg", "canvas", "qr_code", "pure"]

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
<img src="docs/logo.svg" width="140px" />
44

5-
# iced
5+
# Iced
66

77
[![Documentation](https://docs.rs/iced/badge.svg)][documentation]
88
[![Crates.io](https://img.shields.io/crates/v/iced.svg)](https://crates.io/crates/iced)
9-
[![License](https://img.shields.io/crates/l/iced.svg)](https://github.com/hecrj/iced/blob/master/LICENSE)
9+
[![License](https://img.shields.io/crates/l/iced.svg)](https://github.com/iced-rs/iced/blob/master/LICENSE)
1010
[![Downloads](https://img.shields.io/crates/d/iced.svg)](https://crates.io/crates/iced)
11-
[![Test Status](https://github.com/hecrj/iced/workflows/Test/badge.svg?event=push)](https://github.com/hecrj/iced/actions)
11+
[![Test Status](https://github.com/iced-rs/iced/workflows/Test/badge.svg?event=push)](https://github.com/iced-rs/iced/actions)
1212
[![Discord Server](https://img.shields.io/discord/628993209984614400?label=&labelColor=6A7EC2&logo=discord&logoColor=ffffff&color=7389D8)](https://discord.gg/3xZJ65GAhd)
1313

1414
A cross-platform GUI library for Rust focused on simplicity and type-safety.
@@ -40,11 +40,11 @@ Inspired by [Elm].
4040
* A [windowing shell]
4141
* A [web runtime] leveraging the DOM
4242

43-
__iced is currently experimental software.__ [Take a look at the roadmap],
43+
__Iced is currently experimental software.__ [Take a look at the roadmap],
4444
[check out the issues], and [feel free to contribute!]
4545

4646
[Cross-platform support]: https://raw.githubusercontent.com/iced-rs/iced/master/docs/images/todos_desktop.jpg
47-
[the Web]: https://iced.rs/
47+
[the Web]: https://github.com/iced-rs/iced_web
4848
[text inputs]: https://gfycat.com/alertcalmcrow-rust-gui
4949
[scrollables]: https://gfycat.com/perkybaggybaboon-rust-gui
5050
[Debug overlay with performance metrics]: https://gfycat.com/incredibledarlingbee
@@ -69,13 +69,13 @@ Add `iced` as a dependency in your `Cargo.toml`:
6969
iced = "0.3"
7070
```
7171

72-
__iced moves fast and the `master` branch can contain breaking changes!__ If
72+
__Iced moves fast and the `master` branch can contain breaking changes!__ If
7373
you want to learn about a specific release, check out [the release list].
7474

7575
[the release list]: https://github.com/iced-rs/iced/releases
7676

7777
## Overview
78-
Inspired by [The Elm Architecture], iced expects you to split user interfaces
78+
Inspired by [The Elm Architecture], Iced expects you to split user interfaces
7979
into four different concepts:
8080

8181
* __State__ — the state of your application
@@ -165,7 +165,7 @@ impl Counter {
165165
}
166166
```
167167

168-
And that's everything! We just wrote a whole user interface. iced is now able
168+
And that's everything! We just wrote a whole user interface. Iced is now able
169169
to:
170170

171171
1. Take the result of our __view logic__ and layout its widgets.
@@ -176,7 +176,7 @@ to:
176176
Browse the [documentation] and the [examples] to learn more!
177177

178178
## Implementation details
179-
iced was originally born as an attempt at bringing the simplicity of [Elm] and
179+
Iced was originally born as an attempt at bringing the simplicity of [Elm] and
180180
[The Elm Architecture] into [Coffee], a 2D game engine I am working on.
181181

182182
The core of the library was implemented during May 2019 in [this pull request].
@@ -189,7 +189,7 @@ end-user-oriented GUI library, while keeping [the ecosystem] modular:
189189

190190
<p align="center">
191191
<a href="ECOSYSTEM.md">
192-
<img alt="iced ecosystem" src="docs/graphs/ecosystem.png" width="80%">
192+
<img alt="The Iced Ecosystem" src="docs/graphs/ecosystem.png" width="80%">
193193
</a>
194194
</p>
195195

@@ -222,7 +222,7 @@ iced = { version = "0.3", default-features = false, features = ["glow"] }
222222
but if you don't, right now there's no software fallback, so it means your hardware
223223
doesn't support Iced.
224224

225-
[built-in renderer]: https://github.com/hecrj/iced/blob/master/ECOSYSTEM.md#Renderers
225+
[built-in renderer]: https://github.com/iced-rs/iced/blob/master/ECOSYSTEM.md#Renderers
226226

227227
## Contributing / Feedback
228228
Contributions are greatly appreciated! If you want to contribute, please
@@ -234,15 +234,15 @@ awesome folks) over the `#games-and-graphics` and `#gui-and-ui` channels in
234234
the [Rust Community Discord]. I go by `lone_scientist#9554` there.
235235

236236
## Sponsors
237-
The development of iced is sponsored by the [Cryptowatch] team at [Kraken.com]
237+
The development of Iced is sponsored by the [Cryptowatch] team at [Kraken.com]
238238

239239
[documentation]: https://docs.rs/iced/
240-
[examples]: https://github.com/hecrj/iced/tree/master/examples
240+
[examples]: https://github.com/iced-rs/iced/tree/master/examples
241241
[Coffee]: https://github.com/hecrj/coffee
242242
[Elm]: https://elm-lang.org/
243243
[The Elm Architecture]: https://guide.elm-lang.org/architecture/
244-
[the current issues]: https://github.com/hecrj/iced/issues
245-
[contributing guidelines]: https://github.com/hecrj/iced/blob/master/CONTRIBUTING.md
244+
[the current issues]: https://github.com/iced-rs/iced/issues
245+
[contributing guidelines]: https://github.com/iced-rs/iced/blob/master/CONTRIBUTING.md
246246
[Discord server]: https://discord.gg/3xZJ65GAhd
247247
[Rust Community Discord]: https://bit.ly/rust-community
248248
[Cryptowatch]: https://cryptowat.ch/charts

core/src/keyboard/modifiers.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,29 @@ impl Modifiers {
4141
};
4242

4343
/// Returns true if the [`SHIFT`] key is pressed in the [`Modifiers`].
44+
///
45+
/// [`SHIFT`]: Self::SHIFT
4446
pub fn shift(self) -> bool {
4547
self.contains(Self::SHIFT)
4648
}
4749

4850
/// Returns true if the [`CTRL`] key is pressed in the [`Modifiers`].
51+
///
52+
/// [`CTRL`]: Self::CTRL
4953
pub fn control(self) -> bool {
5054
self.contains(Self::CTRL)
5155
}
5256

5357
/// Returns true if the [`ALT`] key is pressed in the [`Modifiers`].
58+
///
59+
/// [`ALT`]: Self::ALT
5460
pub fn alt(self) -> bool {
5561
self.contains(Self::ALT)
5662
}
5763

5864
/// Returns true if the [`LOGO`] key is pressed in the [`Modifiers`].
65+
///
66+
/// [`LOGO`]: Self::LOGO
5967
pub fn logo(self) -> bool {
6068
self.contains(Self::LOGO)
6169
}

core/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
//! ![The foundations of the Iced ecosystem](https://github.com/iced-rs/iced/blob/0525d76ff94e828b7b21634fa94a747022001c83/docs/graphs/foundations.png?raw=true)
88
//!
99
//! [Iced]: https://github.com/iced-rs/iced
10-
//! [`iced_native`]: https://github.com/iced-rs/iced/tree/master/native
11-
//! [`iced_web`]: https://github.com/iced-rs/iced/tree/master/web
10+
//! [`iced_native`]: https://github.com/iced-rs/iced/tree/0.4/native
11+
//! [`iced_web`]: https://github.com/iced-rs/iced_web
12+
#![doc(
13+
html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
14+
)]
1215
#![deny(missing_docs)]
1316
#![deny(missing_debug_implementations)]
1417
#![deny(unused_results)]

futures/src/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl<T> Command<T> {
1717
Self(Internal::None)
1818
}
1919

20-
/// Creates a [`Command`] that performs a single [`Action`].
20+
/// Creates a [`Command`] that performs a single action.
2121
pub const fn single(action: T) -> Self {
2222
Self(Internal::Single(action))
2323
}

futures/src/runtime.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ use std::marker::PhantomData;
99
///
1010
/// If you have an [`Executor`], a [`Runtime`] can be leveraged to run any
1111
/// [`Command`] or [`Subscription`] and get notified of the results!
12+
///
13+
/// [`Command`]: crate::Command
1214
#[derive(Debug)]
1315
pub struct Runtime<Hasher, Event, Executor, Sender, Message> {
1416
executor: Executor,
@@ -51,10 +53,12 @@ where
5153
self.executor.enter(f)
5254
}
5355

54-
/// Spawns a [`Command`] in the [`Runtime`].
56+
/// Spawns a [`Future`] in the [`Runtime`].
5557
///
5658
/// The resulting `Message` will be forwarded to the `Sender` of the
5759
/// [`Runtime`].
60+
///
61+
/// [`Future`]: BoxFuture
5862
pub fn spawn(&mut self, future: BoxFuture<Message>) {
5963
use futures::{FutureExt, SinkExt};
6064

futures/src/subscription.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ impl<I, O, H> std::fmt::Debug for Subscription<I, O, H> {
125125
/// - [`stopwatch`], a watch with start/stop and reset buttons showcasing how
126126
/// to listen to time.
127127
///
128-
/// [examples]: https://github.com/iced-rs/iced/tree/0.3/examples
129-
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.3/examples/download_progress
130-
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.3/examples/stopwatch
128+
/// [examples]: https://github.com/iced-rs/iced/tree/0.4/examples
129+
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.4/examples/download_progress
130+
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.4/examples/stopwatch
131131
pub trait Recipe<Hasher: std::hash::Hasher, Event> {
132132
/// The events that will be produced by a [`Subscription`] with this
133133
/// [`Recipe`].

glow/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# `iced_glow`
22
[![Documentation](https://docs.rs/iced_glow/badge.svg)][documentation]
33
[![Crates.io](https://img.shields.io/crates/v/iced_glow.svg)](https://crates.io/crates/iced_glow)
4-
[![License](https://img.shields.io/crates/l/iced_glow.svg)](https://github.com/hecrj/iced/blob/master/LICENSE)
4+
[![License](https://img.shields.io/crates/l/iced_glow.svg)](https://github.com/iced-rs/iced/blob/master/LICENSE)
55
[![Discord Server](https://img.shields.io/discord/628993209984614400?label=&labelColor=6A7EC2&logo=discord&logoColor=ffffff&color=7389D8)](https://discord.gg/3xZJ65GAhd)
66

77
`iced_glow` is a [`glow`] renderer for [`iced_native`]. This renderer supports OpenGL 3.0+ and OpenGL ES 2.0.
88

9-
This is renderer is mostly used as a fallback for hardware that doesn't support [`wgpu`] (Vulkan, Metal or DX12).
9+
This renderer is mostly used as a fallback for hardware that doesn't support [`wgpu`] (Vulkan, Metal or DX12).
1010

1111
Currently, `iced_glow` supports the following primitives:
1212
- Text, which is rendered using [`glow_glyph`]. No shaping at all.
@@ -34,7 +34,7 @@ iced_glow = "0.2"
3434
__Iced moves fast and the `master` branch can contain breaking changes!__ If
3535
you want to learn about a specific release, check out [the release list].
3636

37-
[the release list]: https://github.com/hecrj/iced/releases
37+
[the release list]: https://github.com/iced-rs/iced/releases
3838

3939
## Current limitations
4040

glow/src/backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use iced_native::{Font, Size};
1313
/// A [`glow`] graphics backend for [`iced`].
1414
///
1515
/// [`glow`]: https://github.com/grovesNL/glow
16-
/// [`iced`]: https://github.com/hecrj/iced
16+
/// [`iced`]: https://github.com/iced-rs/iced
1717
#[derive(Debug)]
1818
pub struct Backend {
1919
quad_pipeline: quad::Pipeline,

glow/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! A [`glow`] renderer for [`iced_native`].
22
//!
3-
//! ![The native path of the Iced ecosystem](https://github.com/hecrj/iced/blob/0525d76ff94e828b7b21634fa94a747022001c83/docs/graphs/native.png?raw=true)
3+
//! ![The native path of the Iced ecosystem](https://github.com/iced-rs/iced/blob/0525d76ff94e828b7b21634fa94a747022001c83/docs/graphs/native.png?raw=true)
44
//!
55
//! [`glow`]: https://github.com/grovesNL/glow
6-
//! [`iced_native`]: https://github.com/hecrj/iced/tree/master/native
6+
//! [`iced_native`]: https://github.com/iced-rs/iced/tree/0.4/native
77
#![doc(
88
html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
99
)]
@@ -37,5 +37,5 @@ pub use iced_native::{Alignment, Background, Color, Command, Length, Vector};
3737
/// A [`glow`] graphics renderer for [`iced`].
3838
///
3939
/// [`glow`]: https://github.com/grovesNL/glow
40-
/// [`iced`]: https://github.com/hecrj/iced
40+
/// [`iced`]: https://github.com/iced-rs/iced
4141
pub type Renderer = iced_graphics::Renderer<Backend>;

graphics/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! A bunch of backend-agnostic types that can be leveraged to build a renderer
22
//! for [`iced`].
33
//!
4-
//! ![The native path of the Iced ecosystem](https://github.com/hecrj/iced/blob/0525d76ff94e828b7b21634fa94a747022001c83/docs/graphs/native.png?raw=true)
4+
//! ![The native path of the Iced ecosystem](https://github.com/iced-rs/iced/blob/0525d76ff94e828b7b21634fa94a747022001c83/docs/graphs/native.png?raw=true)
55
//!
6-
//! [`iced`]: https://github.com/hecrj/iced
6+
//! [`iced`]: https://github.com/iced-rs/iced
77
#![doc(
88
html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
99
)]

graphics/src/widget/canvas.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ use std::marker::PhantomData;
5151
/// - [`solar_system`], an animated solar system drawn using the [`Canvas`] widget
5252
/// and showcasing how to compose different transforms.
5353
///
54-
/// [examples]: https://github.com/hecrj/iced/tree/master/examples
55-
/// [`clock`]: https://github.com/hecrj/iced/tree/master/examples/clock
56-
/// [`game_of_life`]: https://github.com/hecrj/iced/tree/master/examples/game_of_life
57-
/// [`solar_system`]: https://github.com/hecrj/iced/tree/master/examples/solar_system
54+
/// [examples]: https://github.com/iced-rs/iced/tree/0.4/examples
55+
/// [`clock`]: https://github.com/iced-rs/iced/tree/0.4/examples/clock
56+
/// [`game_of_life`]: https://github.com/iced-rs/iced/tree/0.4/examples/game_of_life
57+
/// [`solar_system`]: https://github.com/iced-rs/iced/tree/0.4/examples/solar_system
5858
///
5959
/// ## Drawing a simple circle
6060
/// If you want to get a quick overview, here's how we can draw a simple circle:

graphics/src/widget/pure/canvas/program.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ use crate::Rectangle;
1010
///
1111
/// [`Canvas`]: crate::widget::Canvas
1212
pub trait Program<Message> {
13-
/// The internal [`State`] mutated by the [`Program`].
13+
/// The internal state mutated by the [`Program`].
1414
type State: Default + 'static;
1515

16-
/// Updates the state of the [`Program`].
16+
/// Updates the [`State`](Self::State) of the [`Program`].
1717
///
1818
/// When a [`Program`] is used in a [`Canvas`], the runtime will call this
1919
/// method for each [`Event`].

graphics/src/window/compositor.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ pub trait Compositor: Sized {
4040

4141
/// Presents the [`Renderer`] primitives to the next frame of the given [`Surface`].
4242
///
43-
/// [`SwapChain`]: Self::SwapChain
43+
/// [`Renderer`]: Self::Renderer
44+
/// [`Surface`]: Self::Surface
4445
fn present<T: AsRef<str>>(
4546
&mut self,
4647
renderer: &mut Self::Renderer,
@@ -51,7 +52,7 @@ pub trait Compositor: Sized {
5152
) -> Result<(), SurfaceError>;
5253
}
5354

54-
/// Result of an unsuccessful call to [`Compositor::draw`].
55+
/// Result of an unsuccessful call to [`Compositor::present`].
5556
#[derive(Clone, PartialEq, Eq, Debug, Error)]
5657
pub enum SurfaceError {
5758
/// A timeout was encountered while trying to acquire the next frame.

lazy/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
#![doc(
2+
html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
3+
)]
4+
#![cfg_attr(docsrs, feature(doc_cfg))]
15
pub mod component;
26
pub mod responsive;
37

48
#[cfg(feature = "pure")]
9+
#[cfg_attr(docsrs, doc(cfg(feature = "pure")))]
510
pub mod pure;
611

712
pub use component::Component;

native/src/command/action.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ use std::fmt;
1010
/// [`Command`]: crate::Command
1111
pub enum Action<T> {
1212
/// Run a [`Future`] to completion.
13+
///
14+
/// [`Future`]: iced_futures::BoxFuture
1315
Future(iced_futures::BoxFuture<T>),
1416

1517
/// Run a clipboard action.
@@ -21,6 +23,8 @@ pub enum Action<T> {
2123

2224
impl<T> Action<T> {
2325
/// Applies a transformation to the result of a [`Command`].
26+
///
27+
/// [`Command`]: crate::Command
2428
pub fn map<A>(
2529
self,
2630
f: impl Fn(T) -> A + 'static + MaybeSend + Sync,

native/src/image.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::hash::{Hash, Hasher as _};
55
use std::path::PathBuf;
66
use std::sync::Arc;
77

8-
/// An [`Image`] handle.
8+
/// A handle of some image data.
99
#[derive(Debug, Clone)]
1010
pub struct Handle {
1111
id: u64,
@@ -79,7 +79,7 @@ impl Hash for Handle {
7979
}
8080
}
8181

82-
/// The data of an [`Image`].
82+
/// The data of a raster image.
8383
#[derive(Clone, Hash)]
8484
pub enum Data {
8585
/// File data

native/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
//! - Build a new renderer, see the [renderer] module.
2424
//! - Build a custom widget, start at the [`Widget`] trait.
2525
//!
26-
//! [`iced_core`]: https://github.com/iced-rs/iced/tree/master/core
27-
//! [`iced_winit`]: https://github.com/iced-rs/iced/tree/master/winit
26+
//! [`iced_core`]: https://github.com/iced-rs/iced/tree/0.4/core
27+
//! [`iced_winit`]: https://github.com/iced-rs/iced/tree/0.4/winit
2828
//! [`druid`]: https://github.com/xi-editor/druid
2929
//! [`raw-window-handle`]: https://github.com/rust-windowing/raw-window-handle
3030
//! [renderer]: crate::renderer

native/src/overlay.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ where
6363
event::Status::Ignored
6464
}
6565

66-
/// Returns the current [`mouse::Interaction`] of the [`Widget`].
66+
/// Returns the current [`mouse::Interaction`] of the [`Overlay`].
6767
///
6868
/// By default, it returns [`mouse::Interaction::Idle`].
6969
fn mouse_interaction(

0 commit comments

Comments
 (0)