diff options
Diffstat (limited to 'src/library/shape.rs')
| -rw-r--r-- | src/library/shape.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/library/shape.rs b/src/library/shape.rs index 8ac9956f..95e3e288 100644 --- a/src/library/shape.rs +++ b/src/library/shape.rs @@ -11,7 +11,7 @@ pub struct ShapeNode<S: ShapeKind> { /// Which shape to place the child into. pub kind: S, /// The child node to place into the shape, if any. - pub child: Option<PackedNode>, + pub child: Option<LayoutNode>, } #[class] @@ -50,14 +50,6 @@ impl<S: ShapeKind> ShapeNode<S> { .sized(Spec::new(width, height)), )) } - - fn set(args: &mut Args, styles: &mut StyleMap) -> TypResult<()> { - styles.set_opt(Self::FILL, args.named("fill")?); - styles.set_opt(Self::STROKE, args.named("stroke")?); - styles.set_opt(Self::THICKNESS, args.named("thickness")?); - styles.set_opt(Self::PADDING, args.named("padding")?); - Ok(()) - } } impl<S: ShapeKind> Layout for ShapeNode<S> { |
