mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
add axis clamp
This commit is contained in:
parent
932e3a5427
commit
ea397b7ed7
2 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue