add axis clamp

This commit is contained in:
🪞👃🪞 2024-10-22 23:19:37 +03:00
parent 932e3a5427
commit ea397b7ed7
2 changed files with 6 additions and 4 deletions

View file

@ -23,7 +23,8 @@ macro_rules! impl_axis_common { ($A:ident $T:ty) => {
pub struct FixedAxis<T> {
pub start: T,
pub point: Option<T>
pub point: Option<T>,
pub clamp: Option<T>,
}
impl_axis_common!(FixedAxis u16);
@ -32,7 +33,8 @@ impl_axis_common!(FixedAxis usize);
pub struct ScaledAxis<T> {
pub start: T,
pub scale: T,
pub point: Option<T>
pub point: Option<T>,
pub clamp: Option<T>,
}
impl_axis_common!(ScaledAxis u16);