Example #1
0
 public CGRect(CGPoint location, CGSize size)
 {
     X = location.X;
     Y = location.Y;
     Width = size.Width;
     Height = size.Height;
 }
Example #2
0
 public static CGSize Subtract(CGSize sz1, CGSize sz2)
 {
     return new CGSize(sz1.Width - sz2.Width, sz1.Height - sz2.Height);
 }
Example #3
0
 public static CGSize Add(CGSize sz1, CGSize sz2)
 {
     return new CGSize(sz1.Width + sz2.Width, sz1.Height + sz2.Height);
 }
Example #4
0
 public CGSize(CGSize size)
 {
     Width = size.Width;
     Height = size.Height;
 }
Example #5
0
 public void SetPopoverContentSize(CGSize size, bool animated)
 {
     ObjC.MessageSendIntPtr(Handle, "setPopoverContentSize:animated:", size, animated);
 }
Example #6
0
 public void Inflate(CGSize size)
 {
     X -= size.Width;
     Y -= size.Height;
     Width += size.Width * 2;
     Height += size.Height * 2;
 }
Example #7
0
 public static CGPoint Subtract(CGPoint pt, CGSize sz)
 {
     return new CGPoint(pt.X - sz.Width, pt.Y - sz.Height);
 }
Example #8
0
 public static CGPoint Add(CGPoint pt, CGSize sz)
 {
     return new CGPoint(pt.X + sz.Width, pt.Y + sz.Height);
 }