#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
pub enum ScrollAxis {
#[default]
Vertical,
Horizontal,
Both,
}
impl ScrollAxis {
pub const fn vertical_enabled(self) -> bool {
matches!(self, Self::Vertical | Self::Both)
}
pub const fn horizontal_enabled(self) -> bool {
matches!(self, Self::Horizontal | Self::Both)
}
}