From 76737351ea9e116291112b7d576d9ed4f6bb5c2a Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 12 Jul 2024 18:12:34 +0200 Subject: Re-export variants of `Length` and `alignment` types --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 79e2f276..8c6aeea3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -205,6 +205,11 @@ pub use crate::core::{ pub use crate::runtime::exit; pub use iced_futures::Subscription; +pub use alignment::Horizontal::{Left, Right}; +pub use alignment::Vertical::{Bottom, Top}; +pub use Alignment::Center; +pub use Length::{Fill, FillPortion, Shrink}; + pub mod task { //! Create runtime tasks. pub use crate::runtime::task::{Handle, Task}; -- cgit From 7c3341760de74df2153ef367e502960f20f9c681 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 12 Jul 2024 18:40:54 +0200 Subject: Improve `Padding` ergonomics We expose free functions for creating a `Padding` and methods with the same name to modify its fields. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 8c6aeea3..7ced9a57 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -196,6 +196,7 @@ pub use crate::core::alignment; pub use crate::core::border; pub use crate::core::color; pub use crate::core::gradient; +pub use crate::core::padding; pub use crate::core::theme; pub use crate::core::{ Alignment, Background, Border, Color, ContentFit, Degrees, Gradient, -- cgit