Exemple #1
0
 public static Size SysSize(this Vex.Size s)
 {
     return(new Size(
                (int)Math.Ceiling(s.Width),
                (int)Math.Ceiling(s.Height)));
 }
Exemple #2
0
 public Rectangle(float x, float y, float w, float h)
 {
     this.Point = new Point(x, y);
     this.Size = new Size(w, h);
 }
Exemple #3
0
 public void ReadXml(System.Xml.XmlReader r)
 {
     float x = float.Parse(r.GetAttribute("X"), NumberStyles.Any);
     float y = float.Parse(r.GetAttribute("Y"), NumberStyles.Any);
     float w = float.Parse(r.GetAttribute("Width"), NumberStyles.Any);
     float h = float.Parse(r.GetAttribute("Height"), NumberStyles.Any);
     Point = new Point(x, y);
     Size = new Size(w, h);
     r.Read();
 }
Exemple #4
0
 public Rectangle(Point point, Size size)
 {
     this.Point = point;
     this.Size = size;
 }
Exemple #5
0
 public bool Equals(Size o)
 {
     return ((this.Width == o.Width) && (this.Height == o.Height));
 }