示例#1
0
 internal FontOptions(IntPtr handle)
 {
     this.handle = handle;
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
示例#2
0
 internal Path(IntPtr handle)
 {
     this.handle = handle;
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
示例#3
0
		protected Surface (IntPtr handle, bool owner)
		{
			if (handle == IntPtr.Zero)
				throw new ArgumentException ("handle should not be NULL", "handle");

			this.handle = handle;
			if (!owner)
				NativeMethods.cairo_surface_reference (handle);
			if (CairoDebug.Enabled)
				CairoDebug.OnAllocated (handle);
		}
示例#4
0
 protected Surface(IntPtr handle, bool owner)
 {
     this.handle = handle;
     if (!owner)
     {
         NativeMethods.cairo_surface_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
示例#5
0
文件: Context.cs 项目: masums/Crow
 public Context(IntPtr handle, bool owner)
 {
     this.handle = handle;
     if (!owner)
     {
         NativeMethods.cairo_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
示例#6
0
 internal Pattern(IntPtr handle, bool owned)
 {
     Handle = handle;
     if (!owned)
     {
         NativeMethods.cairo_pattern_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
示例#7
0
 public FontFace(IntPtr handle, bool owned)
 {
     this.handle = handle;
     if (!owned)
     {
         NativeMethods.cairo_font_face_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
示例#8
0
 internal ScaledFont(IntPtr handle, bool owner)
 {
     this.handle = handle;
     if (!owner)
     {
         NativeMethods.cairo_scaled_font_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
示例#9
0
        internal FontOptions(IntPtr handle)
        {
            if (handle == IntPtr.Zero)
            {
                throw new ArgumentException("handle should not be NULL", "handle");
            }

            this.handle = handle;
            if (CairoDebug.Enabled)
            {
                CairoDebug.OnAllocated(handle);
            }
        }
示例#10
0
        public FontFace(IntPtr handle, bool owned)
        {
            if (handle == IntPtr.Zero)
            {
                throw new ArgumentException("handle should not be NULL", "handle");
            }

            this.handle = handle;
            if (!owned)
            {
                NativeMethods.cairo_font_face_reference(handle);
            }
            if (CairoDebug.Enabled)
            {
                CairoDebug.OnAllocated(handle);
            }
        }
示例#11
0
        internal Pattern(IntPtr handle, bool owned)
        {
            if (handle == IntPtr.Zero)
            {
                throw new ArgumentException("handle should not be NULL", "handle");
            }

            Handle = handle;
            if (!owned)
            {
                NativeMethods.cairo_pattern_reference(handle);
            }
            if (CairoDebug.Enabled)
            {
                CairoDebug.OnAllocated(handle);
            }
        }