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

private cairo_region_reference ( IntPtr region ) : IntPtr
region IntPtr
Результат IntPtr
Пример #1
0
 public Region(IntPtr handle, bool owned)
 {
     this.handle = handle;
     if (!owned)
     {
         NativeMethods.cairo_region_reference(handle);
     }
 }
Пример #2
0
 public Region(IntPtr handle, bool owned)
 {
     this.handle = handle;
     if (!owned)
     {
         NativeMethods.cairo_region_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Пример #3
0
        public Region(IntPtr handle, bool owned)
        {
            if (handle == IntPtr.Zero)
            {
                throw new ArgumentException("handle should not be NULL", "handle");
            }

            this.handle = handle;
            if (!owned)
            {
                NativeMethods.cairo_region_reference(handle);
            }
            if (CairoDebug.Enabled)
            {
                CairoDebug.OnAllocated(handle);
            }
        }