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

private cairo_device_reference ( IntPtr device ) : IntPtr
device System.IntPtr
Результат System.IntPtr
Пример #1
0
        internal Device(IntPtr handle)
        {
            if (handle == IntPtr.Zero)
            {
                throw new ArgumentException("handle should not be NULL", "handle");
            }

            this.handle = NativeMethods.cairo_device_reference(handle);
        }
Пример #2
0
 protected Device(IntPtr handle, bool owner)
 {
     this.handle = handle;
     if (!owner)
     {
         NativeMethods.cairo_device_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Пример #3
0
 internal Device(IntPtr handle)
 {
     this.handle = NativeMethods.cairo_device_reference(handle);
 }