use crate::Vec2;
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
pub enum CarouselVariant {
#[default]
Stack,
Images,
}
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
pub enum CarouselOrientation {
#[default]
Horizontal,
Vertical,
}
impl CarouselOrientation {
pub(crate) fn axis(self) -> usize {
match self {
Self::Horizontal => 0,
Self::Vertical => 1,
}
}
}
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
pub enum StackDirection {
#[default]
Down,
Up,
Left,
Right,
}
impl StackDirection {
pub(crate) fn vector(self) -> Vec2 {
match self {
Self::Down => Vec2::Y,
Self::Up => Vec2::NEG_Y,
Self::Left => Vec2::NEG_X,
Self::Right => Vec2::X,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum CarouselIndicator {
Pill,
Dots,
Dashes,
Count,
None,
}
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
pub enum IndicatorPosition {
#[default]
After,
Before,
Overlay,
}