Example #1
0
		public CGPath (CGPath reference, CGAffineTransform transform)
		{
			if (reference == null)
				throw new ArgumentNullException ("reference");
			handle = CGPathCreateMutableCopyByTransformingPath (reference.Handle, ref transform);
		}
Example #2
0
		public CGPath (CGPath basePath)
		{
			if (basePath == null)
				throw new ArgumentNullException ("basePath");
			handle = CGPathCreateMutableCopy (basePath.handle);
		}
Example #3
0
		public unsafe void AddPath (CGAffineTransform t, CGPath path2)
		{
			if (path2 == null)
				throw new ArgumentNullException ("path2");
			CGPathAddPath (handle, &t, path2.handle);
		}
Example #4
0
		public unsafe void AddPath (CGPath path2)
		{
			if (path2 == null)
				throw new ArgumentNullException ("path2");
			CGPathAddPath (handle, null, path2.handle);
		}
Example #5
0
 public CTFrame GetFrame(NSRange stringRange, CGPath path, CTFrameAttributes frameAttributes)
 {
     if (path == null)
         throw new ArgumentNullException ("path");
     var frame = CTFramesetterCreateFrame (handle, stringRange, path.Handle,
             frameAttributes == null ? IntPtr.Zero : frameAttributes.Dictionary.Handle);
     if (frame == IntPtr.Zero)
         return null;
     return new CTFrame (frame, true);
 }
Example #6
0
 public static SKPhysicsBody BodyWithPolygonFromPath(CGPath path)
 {
     return CreateBodyFromPath (path);
 }
Example #7
0
 public static SKPhysicsBody BodyWithEdgeLoopFromPath(CGPath path)
 {
     return CreateEdgeLoop (path);
 }
Example #8
0
 public static SKPhysicsBody BodyWithEdgeChainFromPath(CGPath path)
 {
     return CreateEdgeChain (path);
 }
Example #9
0
		public void AddPath (CGPath path)
		{
			if (path == null)
				throw new ArgumentNullException ("path");
			CGContextAddPath (handle, path.handle);
		}