From de580ffefcb7a7000728202dacc1225a54abd991 Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Thu, 29 Dec 2022 16:58:59 +0100 Subject: [PATCH] feat(widget): add an Orientation::{Horizontal,Vertical} enum --- src/widget/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/widget/mod.rs b/src/widget/mod.rs index 54406bf9..cc078a98 100644 --- a/src/widget/mod.rs +++ b/src/widget/mod.rs @@ -39,3 +39,10 @@ pub use spin_button::{SpinButton, spin_button}; pub mod rectangle_tracker; pub mod aspect_ratio; + +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)] +pub enum Orientation { + #[default] + Horizontal, + Vertical +} \ No newline at end of file