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

private cairo_create ( IntPtr target ) : IntPtr
target System.IntPtr
Результат System.IntPtr
Пример #1
0
 public void SetTarget(Surface target)
 {
     if (handle != IntPtr.Zero)
     {
         NativeMethods.cairo_destroy(handle);
     }
     handle = NativeMethods.cairo_create(target.Handle);
 }
Пример #2
0
        public void SetTarget(Surface target)
        {
            IntPtr newHandle = NativeMethods.cairo_create(target.Handle);

            if (newHandle == IntPtr.Zero)
            {
                throw new InvalidOperationException("Surface had an invalid handle.");
            }

            if (handle != IntPtr.Zero)
            {
                NativeMethods.cairo_destroy(handle);
            }

            handle = newHandle;
        }
Пример #3
0
 public Context(Surface surface)
 {
     state = NativeMethods.cairo_create(surface.Handle);
 }
Пример #4
0
 public Context(Surface surface) : this(NativeMethods.cairo_create(surface.Handle), true)
 {
 }