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 --- core/src/alignment.rs | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'core/src/alignment.rs') diff --git a/core/src/alignment.rs b/core/src/alignment.rs index cacf7ce3..8f01ef71 100644 --- a/core/src/alignment.rs +++ b/core/src/alignment.rs @@ -1,30 +1,5 @@ //! Align and position widgets. -/// Returns a value representing center alignment. -pub const fn center() -> Alignment { - Alignment::Center -} - -/// Returns a value representing left alignment. -pub const fn left() -> Horizontal { - Horizontal::Left -} - -/// Returns a value representing right alignment. -pub const fn right() -> Horizontal { - Horizontal::Right -} - -/// Returns a value representing top alignment. -pub const fn top() -> Vertical { - Vertical::Top -} - -/// Returns a value representing bottom alignment. -pub const fn bottom() -> Vertical { - Vertical::Bottom -} - /// Alignment on the axis of a container. #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum Alignment { -- cgit