cairo_surface_reference() приватный Метод

private cairo_surface_reference ( IntPtr surface ) : IntPtr
surface IntPtr
Результат IntPtr
 protected Surface(IntPtr ptr, bool owns)
 {
     surface = ptr;
     lock (surfaces.SyncRoot){
         surfaces [ptr] = this;
     }
     if (!owns)
     {
         NativeMethods.cairo_surface_reference(ptr);
     }
 }
Пример #2
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);
		}
Пример #3
0
 protected Surface(IntPtr handle, bool owner)
 {
     this.handle = handle;
     if (!owner)
     {
         NativeMethods.cairo_surface_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }