Exemplo n.º 1
0
 public CGRect(CGPoint location, CGSize size)
 {
     X = location.X;
     Y = location.Y;
     Width = size.Width;
     Height = size.Height;
 }
Exemplo n.º 2
0
 public void Center()
 {
     var point = new CGPoint(12, 3);
     var obj = new UIView
     {
         Center = point,
     };
     Assert.AreEqual(point, obj.Center);
 }
Exemplo n.º 3
0
 public CGSize(CGPoint pt)
 {
     Width = pt.X;
     Height = pt.Y;
 }
Exemplo n.º 4
0
 public void Offset(CGPoint pos)
 {
     Offset(pos.X, pos.Y);
 }
Exemplo n.º 5
0
 public bool Contains(CGPoint pt)
 {
     return Contains(pt.X, pt.Y);
 }
Exemplo n.º 6
0
 public static CGPoint Subtract(CGPoint pt, CGSize sz)
 {
     return new CGPoint(pt.X - sz.Width, pt.Y - sz.Height);
 }
Exemplo n.º 7
0
 public static CGPoint Add(CGPoint pt, CGSize sz)
 {
     return new CGPoint(pt.X + sz.Width, pt.Y + sz.Height);
 }