public static Size SysSize(this Vex.Size s) { return(new Size( (int)Math.Ceiling(s.Width), (int)Math.Ceiling(s.Height))); }
public Rectangle(float x, float y, float w, float h) { this.Point = new Point(x, y); this.Size = new Size(w, h); }
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(); }
public Rectangle(Point point, Size size) { this.Point = point; this.Size = size; }
public bool Equals(Size o) { return ((this.Width == o.Width) && (this.Height == o.Height)); }