internal FontOptions(IntPtr handle) { this.handle = handle; if (CairoDebug.Enabled) { CairoDebug.OnAllocated(handle); } }
internal Path(IntPtr handle) { this.handle = handle; if (CairoDebug.Enabled) { CairoDebug.OnAllocated(handle); } }
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; }
protected Surface (IntPtr handle, bool owner) { if (handle == IntPtr.Zero) throw new ArgumentException ("handle should not be NULL", "handle"); this.handle = handle; if (!owner) NativeMethods.cairo_surface_reference (handle); if (CairoDebug.Enabled) CairoDebug.OnAllocated (handle); }
protected Surface(IntPtr handle, bool owner) { this.handle = handle; if (!owner) { NativeMethods.cairo_surface_reference(handle); } if (CairoDebug.Enabled) { CairoDebug.OnAllocated(handle); } }
public Context(IntPtr handle, bool owner) { this.handle = handle; if (!owner) { NativeMethods.cairo_reference(handle); } if (CairoDebug.Enabled) { CairoDebug.OnAllocated(handle); } }
internal Pattern(IntPtr handle, bool owned) { Handle = handle; if (!owned) { NativeMethods.cairo_pattern_reference(handle); } if (CairoDebug.Enabled) { CairoDebug.OnAllocated(handle); } }
public FontFace(IntPtr handle, bool owned) { this.handle = handle; if (!owned) { NativeMethods.cairo_font_face_reference(handle); } if (CairoDebug.Enabled) { CairoDebug.OnAllocated(handle); } }
internal ScaledFont(IntPtr handle, bool owner) { this.handle = handle; if (!owner) { NativeMethods.cairo_scaled_font_reference(handle); } if (CairoDebug.Enabled) { CairoDebug.OnAllocated(handle); } }
internal FontOptions(IntPtr handle) { if (handle == IntPtr.Zero) { throw new ArgumentException("handle should not be NULL", "handle"); } this.handle = handle; if (CairoDebug.Enabled) { CairoDebug.OnAllocated(handle); } }
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; }
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; }
public FontFace(IntPtr handle, bool owned) { if (handle == IntPtr.Zero) { throw new ArgumentException("handle should not be NULL", "handle"); } this.handle = handle; if (!owned) { NativeMethods.cairo_font_face_reference(handle); } if (CairoDebug.Enabled) { CairoDebug.OnAllocated(handle); } }
internal Pattern(IntPtr handle, bool owned) { if (handle == IntPtr.Zero) { throw new ArgumentException("handle should not be NULL", "handle"); } Handle = handle; if (!owned) { NativeMethods.cairo_pattern_reference(handle); } if (CairoDebug.Enabled) { CairoDebug.OnAllocated(handle); } }