Example #1
0
 internal FontOptions(IntPtr handle)
 {
     this.handle = handle;
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Example #2
0
 internal Path(IntPtr handle)
 {
     this.handle = handle;
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Example #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);
		}
Example #4
0
 protected Surface(IntPtr handle, bool owner)
 {
     this.handle = handle;
     if (!owner)
     {
         NativeMethods.cairo_surface_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Example #5
0
 public Context(IntPtr handle, bool owner)
 {
     this.handle = handle;
     if (!owner)
     {
         NativeMethods.cairo_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Example #6
0
 internal Pattern(IntPtr handle, bool owned)
 {
     Handle = handle;
     if (!owned)
     {
         NativeMethods.cairo_pattern_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Example #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);
     }
 }
Example #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);
     }
 }
Example #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);
            }
        }
Example #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);
            }
        }
Example #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);
            }
        }