From a88aae5e04e0a92457e5dd617a86af823e90af6c Mon Sep 17 00:00:00 2001 From: Malte Veerman Date: Fri, 6 Dec 2019 19:37:56 +0100 Subject: Added an `Icon` widget to native. --- src/native.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/native.rs') diff --git a/src/native.rs b/src/native.rs index 3537dd52..b24518a2 100644 --- a/src/native.rs +++ b/src/native.rs @@ -80,11 +80,16 @@ pub mod widget { pub use iced_winit::image::{Handle, Image}; } + pub mod icon { + //! Display icons in your user interface. + pub use iced_winit::icon::Icon; + } + pub use iced_winit::{Checkbox, Radio, Text}; #[doc(no_inline)] pub use { - button::Button, image::Image, scrollable::Scrollable, slider::Slider, + button::Button, icon::Icon, image::Image, scrollable::Scrollable, slider::Slider, text_input::TextInput, }; -- cgit From 5696afcadd5b3b89a532f4205efac30d8a24d558 Mon Sep 17 00:00:00 2001 From: Malte Veerman Date: Wed, 11 Dec 2019 22:13:29 +0100 Subject: Ran cargo_fmt over changed files. --- src/native.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/native.rs') diff --git a/src/native.rs b/src/native.rs index b24518a2..e52b63d3 100644 --- a/src/native.rs +++ b/src/native.rs @@ -89,8 +89,8 @@ pub mod widget { #[doc(no_inline)] pub use { - button::Button, icon::Icon, image::Image, scrollable::Scrollable, slider::Slider, - text_input::TextInput, + button::Button, icon::Icon, image::Image, scrollable::Scrollable, + slider::Slider, text_input::TextInput, }; /// A container that distributes its contents vertically. -- cgit From 27717bc70c3947f553a8b75da9789fe967994a31 Mon Sep 17 00:00:00 2001 From: Malte Veerman Date: Thu, 12 Dec 2019 01:25:18 +0100 Subject: Renamed `Icon` widget to `Svg` and gave it separate width and height. The aspect ratio is now preserved like in the `Image` widget. --- src/native.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/native.rs') diff --git a/src/native.rs b/src/native.rs index e52b63d3..8c86ec7e 100644 --- a/src/native.rs +++ b/src/native.rs @@ -80,17 +80,17 @@ pub mod widget { pub use iced_winit::image::{Handle, Image}; } - pub mod icon { + pub mod svg { //! Display icons in your user interface. - pub use iced_winit::icon::Icon; + pub use iced_winit::svg::Svg; } pub use iced_winit::{Checkbox, Radio, Text}; #[doc(no_inline)] pub use { - button::Button, icon::Icon, image::Image, scrollable::Scrollable, - slider::Slider, text_input::TextInput, + button::Button, image::Image, scrollable::Scrollable, + slider::Slider, svg::Svg, text_input::TextInput, }; /// A container that distributes its contents vertically. -- cgit From 6ba2461445e68127ef686d2b9d79eb7a09f42a86 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 15 Dec 2019 06:28:44 +0100 Subject: Update `Svg` documentation --- src/native.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/native.rs') diff --git a/src/native.rs b/src/native.rs index 8c86ec7e..c6ddf25b 100644 --- a/src/native.rs +++ b/src/native.rs @@ -81,16 +81,16 @@ pub mod widget { } pub mod svg { - //! Display icons in your user interface. - pub use iced_winit::svg::Svg; + //! Display vector graphics in your user interface. + pub use iced_winit::svg::{Handle, Svg}; } pub use iced_winit::{Checkbox, Radio, Text}; #[doc(no_inline)] pub use { - button::Button, image::Image, scrollable::Scrollable, - slider::Slider, svg::Svg, text_input::TextInput, + button::Button, image::Image, scrollable::Scrollable, slider::Slider, + svg::Svg, text_input::TextInput, }; /// A container that distributes its contents vertically. -- cgit