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

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

            this.handle = handle;
            if (!owner)
            {
                NativeMethods.cairo_reference(handle);
            }
            if (CairoDebug.Enabled)
            {
                CairoDebug.OnAllocated(handle);
            }
        }
Пример #3
0
 public Context(IntPtr state)
 {
     this.state = NativeMethods.cairo_reference(state);
 }
Пример #4
0
 public Context(IntPtr state, bool owned)
 {
     this.state = owned ? state : NativeMethods.cairo_reference(state);
 }