From ff9395838b5075eb357082f7bb9a6f9a58d7864b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 9 Nov 2022 23:56:12 +0100 Subject: Expose `window` commands in `iced::window` --- src/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/window.rs b/src/window.rs index eb5e17a6..2018053f 100644 --- a/src/window.rs +++ b/src/window.rs @@ -9,4 +9,4 @@ pub use position::Position; pub use settings::Settings; #[cfg(not(target_arch = "wasm32"))] -pub use crate::runtime::window::{move_to, resize}; +pub use crate::runtime::window::*; -- cgit From 1480ab20306e463b69b2229dcd5e81d4c66b2a64 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 10 Nov 2022 00:10:53 +0100 Subject: Fix broken documentation links --- src/application.rs | 3 +-- src/overlay.rs | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/application.rs b/src/application.rs index 23ce034e..ae5e948f 100644 --- a/src/application.rs +++ b/src/application.rs @@ -148,9 +148,8 @@ pub trait Application: Sized { Self::Theme::default() } - /// Returns the current [`Style`] of the [`Theme`]. + /// Returns the current `Style` of the [`Theme`]. /// - /// [`Style`]: ::Style /// [`Theme`]: Self::Theme fn style(&self) -> ::Style { ::Style::default() diff --git a/src/overlay.rs b/src/overlay.rs index a7003751..c0f4c492 100644 --- a/src/overlay.rs +++ b/src/overlay.rs @@ -3,6 +3,8 @@ /// A generic [`Overlay`]. /// /// This is an alias of an `iced_native` element with a default `Renderer`. +/// +/// [`Overlay`]: iced_native::Overlay pub type Element<'a, Message, Renderer = crate::Renderer> = iced_native::overlay::Element<'a, Message, Renderer>; -- cgit From a6298ba12c038d5eaddca9327abb385aa72a82e9 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 10 Nov 2022 18:14:40 +0100 Subject: Fix outdated links in documentation --- src/application.rs | 18 +++++++++--------- src/lib.rs | 6 +++--- src/sandbox.rs | 22 +++++++++++----------- src/widget.rs | 2 +- 4 files changed, 24 insertions(+), 24 deletions(-) (limited to 'src') diff --git a/src/application.rs b/src/application.rs index ae5e948f..0f514f66 100644 --- a/src/application.rs +++ b/src/application.rs @@ -39,15 +39,15 @@ pub use iced_native::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.4/examples -/// [`clock`]: https://github.com/iced-rs/iced/tree/0.4/examples/clock -/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.4/examples/download_progress -/// [`events`]: https://github.com/iced-rs/iced/tree/0.4/examples/events -/// [`game_of_life`]: https://github.com/iced-rs/iced/tree/0.4/examples/game_of_life -/// [`pokedex`]: https://github.com/iced-rs/iced/tree/0.4/examples/pokedex -/// [`solar_system`]: https://github.com/iced-rs/iced/tree/0.4/examples/solar_system -/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.4/examples/stopwatch -/// [`todos`]: https://github.com/iced-rs/iced/tree/0.4/examples/todos +/// [The repository has a bunch of examples]: https://github.com/iced-rs/iced/tree/0.5/examples +/// [`clock`]: https://github.com/iced-rs/iced/tree/0.5/examples/clock +/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.5/examples/download_progress +/// [`events`]: https://github.com/iced-rs/iced/tree/0.5/examples/events +/// [`game_of_life`]: https://github.com/iced-rs/iced/tree/0.5/examples/game_of_life +/// [`pokedex`]: https://github.com/iced-rs/iced/tree/0.5/examples/pokedex +/// [`solar_system`]: https://github.com/iced-rs/iced/tree/0.5/examples/solar_system +/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.5/examples/stopwatch +/// [`todos`]: https://github.com/iced-rs/iced/tree/0.5/examples/todos /// [`Sandbox`]: crate::Sandbox /// [`Canvas`]: crate::widget::Canvas /// [PokéAPI]: https://pokeapi.co/ diff --git a/src/lib.rs b/src/lib.rs index b86780f1..4d0484a7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,11 +26,11 @@ //! [Modular ecosystem]: https://github.com/iced-rs/iced/blob/master/ECOSYSTEM.md //! [renderer-agnostic native runtime]: https://github.com/iced-rs/iced/0.4/master/native //! [`wgpu`]: https://github.com/gfx-rs/wgpu-rs -//! [built-in renderer]: https://github.com/iced-rs/iced/tree/0.4/wgpu -//! [windowing shell]: https://github.com/iced-rs/iced/tree/0.4/winit +//! [built-in renderer]: https://github.com/iced-rs/iced/tree/0.5/wgpu +//! [windowing shell]: https://github.com/iced-rs/iced/tree/0.5/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.4/examples +//! [examples]: https://github.com/iced-rs/iced/tree/0.5/examples //! [repository]: https://github.com/iced-rs/iced //! //! # Overview diff --git a/src/sandbox.rs b/src/sandbox.rs index bdb6ad5a..dc69b6bb 100644 --- a/src/sandbox.rs +++ b/src/sandbox.rs @@ -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.4/examples -/// [`bezier_tool`]: https://github.com/iced-rs/iced/tree/0.4/examples/bezier_tool -/// [`counter`]: https://github.com/iced-rs/iced/tree/0.4/examples/counter -/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.4/examples/custom_widget -/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.4/examples/geometry -/// [`pane_grid`]: https://github.com/iced-rs/iced/tree/0.4/examples/pane_grid -/// [`progress_bar`]: https://github.com/iced-rs/iced/tree/0.4/examples/progress_bar -/// [`styling`]: https://github.com/iced-rs/iced/tree/0.4/examples/styling -/// [`svg`]: https://github.com/iced-rs/iced/tree/0.4/examples/svg -/// [`tour`]: https://github.com/iced-rs/iced/tree/0.4/examples/tour +/// [The repository has a bunch of examples]: https://github.com/iced-rs/iced/tree/0.5/examples +/// [`bezier_tool`]: https://github.com/iced-rs/iced/tree/0.5/examples/bezier_tool +/// [`counter`]: https://github.com/iced-rs/iced/tree/0.5/examples/counter +/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.5/examples/custom_widget +/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.5/examples/geometry +/// [`pane_grid`]: https://github.com/iced-rs/iced/tree/0.5/examples/pane_grid +/// [`progress_bar`]: https://github.com/iced-rs/iced/tree/0.5/examples/progress_bar +/// [`styling`]: https://github.com/iced-rs/iced/tree/0.5/examples/styling +/// [`svg`]: https://github.com/iced-rs/iced/tree/0.5/examples/svg +/// [`tour`]: https://github.com/iced-rs/iced/tree/0.5/examples/tour /// [`Canvas widget`]: crate::widget::Canvas /// [the overview]: index.html#overview -/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/0.4/wgpu +/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/0.5/wgpu /// [`Svg` widget]: crate::widget::Svg /// [Ghostscript Tiger]: https://commons.wikimedia.org/wiki/File:Ghostscript_Tiger.svg /// diff --git a/src/widget.rs b/src/widget.rs index 9f09cb8f..8c8ea216 100644 --- a/src/widget.rs +++ b/src/widget.rs @@ -56,7 +56,7 @@ pub mod pane_grid { //! 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.4/examples/pane_grid + //! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.5/examples/pane_grid pub use iced_native::widget::pane_grid::{ Axis, Configuration, Direction, DragEvent, Line, Node, Pane, ResizeEvent, Split, State, StyleSheet, -- cgit From c4bca3f2af7ae9b2c8dfc3af48ab73dad852ed34 Mon Sep 17 00:00:00 2001 From: Cory Forsstrom Date: Fri, 11 Nov 2022 08:43:36 -0800 Subject: Add text input operations --- src/widget.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/widget.rs b/src/widget.rs index 8c8ea216..7c67a599 100644 --- a/src/widget.rs +++ b/src/widget.rs @@ -120,7 +120,8 @@ pub mod toggler { pub mod text_input { //! Display fields that can be filled with text. pub use iced_native::widget::text_input::{ - focus, Appearance, Id, StyleSheet, + focus, move_cursor_to, move_cursor_to_end, move_cursor_to_front, + select_all, Appearance, Id, StyleSheet, }; /// A field that can be filled with text. -- cgit