From ca1fcdaf1454fd3febae8e6864c9a7dec04f41b1 Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Sat, 22 Jan 2022 20:09:35 -0500 Subject: Add support for `ContentFit` for `Image` --- core/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/src/lib.rs') diff --git a/core/src/lib.rs b/core/src/lib.rs index 2a4e6158..0eac97c2 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -22,6 +22,7 @@ pub mod time; mod background; mod color; mod font; +mod image; mod length; mod padding; mod point; @@ -33,6 +34,7 @@ pub use alignment::Alignment; pub use background::Background; pub use color::Color; pub use font::Font; +pub use image::ContentFit; pub use length::Length; pub use padding::Padding; pub use point::Point; -- cgit From c6486978de7f47577c85ed18ccb28a760381d421 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 16 Feb 2022 17:28:04 +0700 Subject: Rename `image` module to `content_fit` in `iced_core` Since we are just exposing the `ContentFit` type and not the module `image` at all. --- core/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/src/lib.rs') diff --git a/core/src/lib.rs b/core/src/lib.rs index 0eac97c2..3eb9f659 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -21,8 +21,8 @@ pub mod time; mod background; mod color; +mod content_fit; mod font; -mod image; mod length; mod padding; mod point; @@ -33,8 +33,8 @@ mod vector; pub use alignment::Alignment; pub use background::Background; pub use color::Color; +pub use content_fit::ContentFit; pub use font::Font; -pub use image::ContentFit; pub use length::Length; pub use padding::Padding; pub use point::Point; -- cgit