diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-03-11 12:59:55 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-03-11 23:36:06 +0100 |
| commit | 5ac7eb3860ebd3247f6486c227e816894cb8fd91 (patch) | |
| tree | a29a868c681c7de39f15f2d9d3f031db1861b90a /src/library/graphics/shape.rs | |
| parent | 5ce2a006b6d45d29be15e4562ae3ab4fc1b8e97c (diff) | |
Rename template to content
Diffstat (limited to 'src/library/graphics/shape.rs')
| -rw-r--r-- | src/library/graphics/shape.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/graphics/shape.rs b/src/library/graphics/shape.rs index 8b967412..fbe21347 100644 --- a/src/library/graphics/shape.rs +++ b/src/library/graphics/shape.rs @@ -30,7 +30,7 @@ impl<const S: ShapeKind> ShapeNode<S> { /// How much to pad the shape's content. pub const PADDING: Linear = Linear::zero(); - fn construct(_: &mut Context, args: &mut Args) -> TypResult<Template> { + fn construct(_: &mut Context, args: &mut Args) -> TypResult<Content> { let size = match S { SQUARE => args.named::<Length>("size")?.map(Linear::from), CIRCLE => args.named::<Length>("radius")?.map(|r| 2.0 * Linear::from(r)), @@ -47,7 +47,7 @@ impl<const S: ShapeKind> ShapeNode<S> { size => size, }; - Ok(Template::inline( + Ok(Content::inline( Self(args.find()?).pack().sized(Spec::new(width, height)), )) } |
