Ejemplo n.º 1
0
 public TextGraphicsObject(decimal x, decimal y, string text, decimal?width, GraphicsWindowStyles styles)
     : base(styles)
 {
     this.X     = x;
     this.Y     = y;
     this.Text  = text;
     this.Width = width;
 }
Ejemplo n.º 2
0
 public TurtleShape(GraphicsWindowStyles styles)
     : base(new TurtleGraphicsObject(styles))
 {
 }
Ejemplo n.º 3
0
 public EllipseShape(decimal width, decimal height, GraphicsWindowStyles styles)
     : base(new EllipseGraphicsObject(x: 0, y: 0, width, height, styles))
 {
 }
 public EllipseGraphicsObject(decimal x, decimal y, decimal width, decimal height, GraphicsWindowStyles styles)
     : base(styles)
 {
     this.X      = x + width;
     this.Y      = y + height;
     this.Width  = width;
     this.Height = height;
 }
Ejemplo n.º 5
0
 public TextShape(string text, GraphicsWindowStyles styles)
     : base(new TextGraphicsObject(x: 0, y: 0, text, width: default, styles))
 public RectangleGraphicsObject(decimal x, decimal y, decimal width, decimal height, GraphicsWindowStyles styles)
     : base(styles)
 {
     this.X      = x;
     this.Y      = y;
     this.Width  = width;
     this.Height = height;
 }
Ejemplo n.º 7
0
 public ImageShape(string imageName, decimal width, decimal height, GraphicsWindowStyles styles)
     : base(new ImageGraphicsObject(x: 0, y: 0, scaleX: 1, scaleY: 1, imageName, styles))
 {
     this.width  = width;
     this.height = height;
 }
 public ImageGraphicsObject(decimal x, decimal y, decimal scaleX, decimal scaleY, string name, GraphicsWindowStyles styles)
     : base(styles)
 {
     this.X      = x;
     this.Y      = y;
     this.ScaleX = scaleX;
     this.ScaleY = scaleY;
     this.Name   = name;
 }
Ejemplo n.º 9
0
 public TriangleGraphicsObject(decimal x1, decimal y1, decimal x2, decimal y2, decimal x3, decimal y3, GraphicsWindowStyles styles)
     : base(styles)
 {
     this.X1 = x1;
     this.Y1 = y1;
     this.X2 = x2;
     this.Y2 = y2;
     this.X3 = x3;
     this.Y3 = y3;
 }
Ejemplo n.º 10
0
 protected BaseGraphicsObject(GraphicsWindowStyles styles)
 {
     this.Styles = styles;
 }
Ejemplo n.º 11
0
 public RectangleShape(decimal width, decimal height, GraphicsWindowStyles styles)
     : base(new RectangleGraphicsObject(x: 0, y: 0, width, height, styles))
 {
 }
Ejemplo n.º 12
0
 public LineShape(decimal x1, decimal y1, decimal x2, decimal y2, GraphicsWindowStyles styles)
     : base(new LineGraphicsObject(x1, y1, x2, y2, styles))
 {
 }
Ejemplo n.º 13
0
 public TriangleShape(decimal x1, decimal y1, decimal x2, decimal y2, decimal x3, decimal y3, GraphicsWindowStyles styles)
     : base(new TriangleGraphicsObject(x1, y1, x2, y2, x3, y3, styles))
 {
 }
 public TurtleGraphicsObject(GraphicsWindowStyles styles)
     : base(styles)
 {
 }