From c910e239196655f3d5ba146aa3dc8da2b578ef8e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 16 Feb 2022 17:58:51 +0700 Subject: Expose `ContentFit` in root --- examples/tour/src/main.rs | 7 +++---- src/lib.rs | 4 ++-- src/widget.rs | 1 - 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 0c61add0..9a675168 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -1,8 +1,7 @@ use iced::{ - alignment, button, image::ContentFit, scrollable, slider, text_input, - Button, Checkbox, Color, Column, Container, Element, Image, Length, Radio, - Row, Sandbox, Scrollable, Settings, Slider, Space, Text, TextInput, - Toggler, + alignment, button, scrollable, slider, text_input, Button, Checkbox, Color, + Column, Container, ContentFit, Element, Image, Length, Radio, Row, Sandbox, + Scrollable, Settings, Slider, Space, Text, TextInput, Toggler, }; pub fn main() -> iced::Result { diff --git a/src/lib.rs b/src/lib.rs index c8047d7f..b34bb72c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -221,6 +221,6 @@ pub use settings::Settings; pub use runtime::alignment; pub use runtime::futures; pub use runtime::{ - Alignment, Background, Color, Command, Font, Length, Point, Rectangle, - Size, Subscription, Vector, + Alignment, Background, Color, Command, ContentFit, Font, Length, Point, + Rectangle, Size, Subscription, Vector, }; diff --git a/src/widget.rs b/src/widget.rs index d27e4c72..c619bcfa 100644 --- a/src/widget.rs +++ b/src/widget.rs @@ -39,7 +39,6 @@ pub mod image { pub use crate::runtime::image::Handle; pub use crate::runtime::widget::image::viewer; pub use crate::runtime::widget::image::{Image, Viewer}; - pub use crate::runtime::ContentFit; } #[cfg_attr(docsrs, doc(cfg(feature = "svg")))] -- cgit