Esempio n. 1
0
 internal void Append(PathData data)
 {
     commandList.AddRange(data.commandList);
     pointList.AddRange(data.pointList);
 }
Esempio n. 2
0
 internal PathData(PathData @base)
 {
     commandList = new List<PathCommand>(@base.commandList);
     pointList = new List<Point>(@base.pointList);
 }
Esempio n. 3
0
 private Path(Path @base)
 {
     data = new PathData(@base.data);
 }
Esempio n. 4
0
 internal Path(IntPtr nativePath, bool retain)
 {
     this.nativePath = nativePath;
     data = new PathData(nativePath, true);
     if (retain) SafeNativeMethods.CFRetain(nativePath);
 }
Esempio n. 5
0
 public Path()
 {
     data = new PathData();
 }
Esempio n. 6
0
        private void Dispose(bool disposing)
        {
            var nativePath = Interlocked.Exchange(ref this.nativePath, IntPtr.Zero);
            data = null;

            if (nativePath != IntPtr.Zero)
                SafeNativeMethods.CFRelease(nativePath);
        }