Example #1
0
		protected virtual void Dispose (bool disposing)
		{
			if (!disposing || CairoDebug.Enabled)
				CairoDebug.OnDisposed<Surface> (handle, disposing);

			if (handle == IntPtr.Zero)
				return;

			NativeMethods.cairo_surface_destroy (handle);
			handle = IntPtr.Zero;
		}
Example #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing || CairoDebug.Enabled)
            {
                CairoDebug.OnDisposed <FontOptions> (handle, disposing);
            }

            if (handle == IntPtr.Zero)
            {
                return;
            }

            NativeMethods.cairo_font_options_destroy(handle);
            handle = IntPtr.Zero;
        }
Example #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing || CairoDebug.Enabled)
            {
                CairoDebug.OnDisposed <Region> (handle, disposing);
            }

            if (handle == IntPtr.Zero)
            {
                return;
            }

            NativeMethods.cairo_region_destroy(Handle);
            handle = IntPtr.Zero;
        }