Example #1
0
 public RectangleShape(RectangleShapeDescriptor descriptor)
 {
     WrappedRectangleShape = new global::DigitalRune.Geometry.Shapes.RectangleShape(descriptor.WidthX, descriptor.WidthY);
     UserData = descriptor.UserData;
 }
 public static IRectangleShape CreateRectangle(this IFactory<IShape> factory,
                                      RectangleShapeDescriptor descriptor)
 {
     return factory.Create<IRectangleShape, RectangleShapeDescriptor>(descriptor);
 }
 public DefaultRectangleShape(RectangleShapeDescriptor descriptor)
 {
     Descriptor = descriptor;
 }