Ejemplo n.º 1
0
 internal Path(IntPtr handle)
 {
     this.handle = handle;
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Ejemplo n.º 2
0
 internal FontOptions(IntPtr handle)
 {
     this.handle = handle;
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Ejemplo n.º 3
0
 public FontFace(IntPtr handle, bool owned)
 {
     this.handle = handle;
     if (!owned)
     {
         NativeMethods.cairo_font_face_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Ejemplo n.º 4
0
Archivo: Surface.cs Proyecto: guytp/ztk
 protected Surface(IntPtr handle, bool owner)
 {
     this.handle = handle;
     if (!owner)
     {
         NativeMethods.cairo_surface_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Ejemplo n.º 5
0
 internal Pattern(IntPtr handle, bool owned)
 {
     Handle = handle;
     if (!owned)
     {
         NativeMethods.cairo_pattern_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Ejemplo n.º 6
0
Archivo: Context.cs Proyecto: guytp/ztk
 public GraphicsContext(IntPtr handle, bool owner)
 {
     this.handle = handle;
     if (!owner)
     {
         NativeMethods.cairo_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Ejemplo n.º 7
0
 public Region(IntPtr handle, bool owned)
 {
     this.handle = handle;
     if (!owned)
     {
         NativeMethods.cairo_region_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }
Ejemplo n.º 8
0
 internal ScaledFont(IntPtr handle, bool owner)
 {
     this.handle = handle;
     if (!owner)
     {
         NativeMethods.cairo_scaled_font_reference(handle);
     }
     if (CairoDebug.Enabled)
     {
         CairoDebug.OnAllocated(handle);
     }
 }