diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-05-27 14:48:45 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-05-27 14:48:45 +0200 |
| commit | b886ced40825372000df0fa9cddff98a1b642cc6 (patch) | |
| tree | 6baf23b24c90352f3712f0e8eda57decf913181a /src/layout/stack.rs | |
| parent | 9e0a34c80f2fa48ada3a0ed0c985c8daa2ae7de3 (diff) | |
Switch to N64 type alias
Diffstat (limited to 'src/layout/stack.rs')
| -rw-r--r-- | src/layout/stack.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/layout/stack.rs b/src/layout/stack.rs index bb767378..410f53c6 100644 --- a/src/layout/stack.rs +++ b/src/layout/stack.rs @@ -1,4 +1,4 @@ -use decorum::NotNan; +use decorum::N64; use super::*; @@ -13,7 +13,7 @@ pub struct StackNode { /// The fixed aspect ratio between width and height, if any. /// /// The resulting frames will satisfy `width = aspect * height`. - pub aspect: Option<NotNan<f64>>, + pub aspect: Option<N64>, /// The nodes to be stacked. pub children: Vec<StackChild>, } @@ -58,7 +58,7 @@ impl From<StackNode> for AnyNode { struct StackLayouter { dirs: Gen<Dir>, - aspect: Option<NotNan<f64>>, + aspect: Option<N64>, main: SpecAxis, regions: Regions, finished: Vec<Frame>, @@ -69,7 +69,7 @@ struct StackLayouter { } impl StackLayouter { - fn new(dirs: Gen<Dir>, aspect: Option<NotNan<f64>>, mut regions: Regions) -> Self { + fn new(dirs: Gen<Dir>, aspect: Option<N64>, mut regions: Regions) -> Self { if let Some(aspect) = aspect { regions.apply_aspect_ratio(aspect); } |
