use crate::types::Fixed;
#[derive(Clone, Copy, Debug, PartialEq, Eq, Default)]
pub enum ScrollAxis {
#[default]
Vertical,
Horizontal,
Both,
}
pub struct ScrollOffset {
pub x: Fixed,
pub y: Fixed,
}
pub struct ScrollConfig {
pub direction: ScrollAxis,
pub elastic: bool,
pub content_height: Fixed,
pub content_width: Fixed,
}
impl Default for ScrollConfig {
fn default() -> Self {
Self {
direction: ScrollAxis::Vertical,
elastic: true,
content_height: Fixed::ZERO,
content_width: Fixed::ZERO,
}
}
}