Esempio n. 1
0
 public URect(UPoint point, USize size)
 {
     this.X      = (int)point.X;
     this.Y      = (int)point.Y;
     this.Width  = (int)size.Width;
     this.Height = (int)size.Height;
 }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            if (!(obj is USize))
            {
                return(false);
            }

            USize size = (USize)obj;

            if (object.Equals(size, null))
            {
                return(false);
            }

            return(Width == size.Width && Height == size.Height);
        }