2007-07-07 Miguel de Icaza <miguel@novell.com>
[mono.git] / mcs / class / Mono.Cairo / ChangeLog
1 2007-07-07  Miguel de Icaza  <miguel@novell.com>
2
3         * Mono.Cairo/Gradient.cs: Made Gradient protected, although it is
4         an API change, there was no way any existing instances would have
5         ever worked. 
6
7         * Mono.Cairo/Context.cs: Fix leak of the surface if set with
8         Target .
9
10         From Alp Toker: new SetSourceOveload with no x, y parameters.
11
12         From Alp Toker: Add new API call IdentityMatrix.
13
14         * Mono.Cairo/Surface.cs: Integrate another cleanup from Alp.
15
16         * Mono.Cairo/SolidPattern.cs: Add helper APIs based on Alp's patch
17         based on F-Spot code.
18
19         Integrated various patches from Alp Toker:
20         
21         * Mono.Cairo/FontFace.cs: Add to the build.
22
23         * Mono.Cairo/Context.cs: Add a number of methods that are
24         compatible with the public Cairo API, and add commented out
25         Obsoletes for the names that we had.
26
27         (MaskSurface): More descriptive parameters
28
29         (SetSourceRGB, SetSourceRGBA): Removed [Obsoletes] from as those
30         are the public Cairo names.   Use the API directly without
31         creating a helper Color.
32
33         (FontFace): New property.
34
35         * Mono.Cairo/FontFace.cs: Partial integration of Alp's work for
36         FontFace.   There are two differences: no support for owns flag,
37         and no automatic unreffing on the finalizer thread.   Instead we
38         display an error message. 
39
40         * NativeMethods.cs: Split the native methods into its own file. 
41
42         * Mono.Cairo/Context.cs: Integrate Alp's patch to not use ref in
43         the call to cairo_font_extents, but use out instead.
44
45         * Integrate Alp's patch to rename CairoAPI NativeMethod, in
46         accordance to 2.7.1 framework guidelines.
47
48         * Removed the ifdef CAIRO_1_2, the documentation already reflects
49         that things are only available on Cairo 1.2.   
50
51         * Add new API calls to query Cairo for its version
52
53 2007-05-26  John Luke  <john.luke@gmail.com>
54
55         * Mono.Cairo/Cairo.cs:
56         * Mono.Cairo/Context.cs: fix call to cairo_get_font_matrix,
57         reported by patperry@stanford.edu (Patrick Perry) in bug#81626
58
59 2007-01-15  Alp Toker  <alp@atoker.com>
60
61         * Mono.Cairo/Surface.cs:
62         * Makefile: Disable CAIRO_1_2. Patches to make the 1.2 binding work
63         are being developed out-of-tree but not ready yet.
64
65 2007-01-08  Alp Toker  <alp@atoker.com>
66
67         * Mono.Cairo/Context.cs: Implement Context.GlyphExtents().
68         * Mono.Cairo/Cairo.cs: Change other TextExtents refs to outs.
69
70 2007-01-08  Alp Toker  <alp@atoker.com>
71
72         * Mono.Cairo/Context.cs: Restore Obsolete markings for old glyph
73         methods. It is fair to assume nobody was able to use these broken
74         methods, and Obsolete is important for the ongoing API review process.
75
76 2007-01-08  Alp Toker  <alp@atoker.com>
77
78         * Mono.Cairo/Context.cs:
79         * Mono.Cairo/Surface.cs:
80         Introduce Context.SetSource(). The old method also oddly took ints
81         instead of doubles. Obsolete Context.SetSourceSurface() and
82         Surface.Show().
83
84 2007-01-08  Alp Toker  <alp@atoker.com>
85
86         * Mono.Cairo/Format.cs: Obsolete Format.ARGB32/RGB24 in favour of
87         lower caps enum members.
88
89 2007-01-05  Alp Toker  <alp@atoker.com>
90
91         * Mono.Cairo/Pattern.cs: Obsolete Pattern(Surface) ctor in favour of
92         SurfacePattern(Surface).
93
94 2007-01-05  Alp Toker  <alp@atoker.com>
95
96         * Mono.Cairo/Context.cs:
97         * Mono.Cairo/Surface.cs: Generalize to Surface.LookupSurface()
98         This method will be useful elsewhere.
99
100 2007-01-04  Miguel de Icaza  <miguel@novell.com>
101
102         * Mono.Cairo/Context.cs (FromGlyphToUnManagedMemory): Deal with
103         an API limitation, the Glyph structure in Cairo is defined as
104         taking a `long' which would be 4 or 8 bytes depending on the
105         operating system.
106
107         We now cope with this by using the proper structure to the
108         unmanaged code. 
109
110 2006-12-30  Alp Toker  <alp@atoker.com>
111
112         * Makefile: Enable CAIRO_1_2.
113
114 2006-12-28  Alp Toker  <alp@atoker.com>
115
116         * Mono.Cairo/DirectFBSurface.cs: Confusion between the DirectFB
117         surface handle and Cairo surface handle was making the public
118         constructor unusable.
119
120 2006-12-27  Alp Toker  <alp@atoker.com>
121
122         * Mono.Cairo.dll.sources:
123         * Mono.Cairo/Context.cs:
124         * Mono.Cairo/GlitzSurface.cs: Add new surface.
125
126 2006-12-27  Alp Toker  <alp@atoker.com>
127
128         * Mono.Cairo/Cairo.cs:
129         * Mono.Cairo/Status.cs: Add new API for 1.4
130
131 2006-12-07  Alp Toker  <alp@atoker.com>
132
133         * Mono.Cairo/Context.cs: Add GroupTarget cases for Xcb and DirectFB
134         surfaces.
135
136 2006-09-19 Jordi Mas <jordimash@gmail.com>
137
138         * Surface.cs, Cairo.cs: the parameters for Show are X,Y not witdh 
139         and height and also double not int.
140
141 2006-07-21  Alp Toker  <alp@atoker.com>
142
143         * Mono.Cairo.dll.sources:
144         * Mono.Cairo/DirectFBSurface.cs:
145         * Mono.Cairo/XcbSurface.cs: Add new surfaces.
146
147 2006-07-06  John Luke  <john.luke@gmail.com>
148
149         * Mono.Cairo/Cairo.cs:
150         * Mono.Cairo/ImageSurface.cs: Marshal data correctly
151
152 2006-07-01  John Luke  <john.luke@gmail.com>
153
154         * Mono.Cairo/Context.cs:
155         * Mono.Cairo/PdfSurface.cs:
156         * Mono.Cairo/PSSurface.cs:
157         * Mono.Cairo/Cairo.cs:
158         * Mono.Cairo/XlibSurface.cs:
159         * Mono.Cairo/SvgSurface.cs: add some new surface API I missed
160
161 2006-07-01  John Luke  <john.luke@gmail.com>
162
163         * Mono.Cairo/Status.cs:
164         * Mono.Cairo/Context.cs:
165         * Mono.Cairo/FontFace.cs:
166         * Mono.Cairo/Surface.cs:
167         * Mono.Cairo/Format.cs:
168         * Mono.Cairo/LinearGradient.cs:
169         * Mono.Cairo/SolidPattern.cs:
170         * Mono.Cairo/Win32Surface.cs:
171         * Mono.Cairo/Pattern.cs:
172         * Mono.Cairo/SurfacePattern.cs:
173         * Mono.Cairo/ImageSurface.cs:
174         * Mono.Cairo/Cairo.cs:
175         * Mono.Cairo/Gradient.cs:
176         * Mono.Cairo/XlibSurface.cs:
177         * Mono.Cairo/RadialGradient.cs: add remaining new API for cairo 1.2
178         
179 2006-07-01  John Luke  <john.luke@gmail.com>
180
181         * Mono.Cairo/FontType.cs:
182         * Mono.Cairo/PatternType.cs: add new enums for cairo 1.2
183
184 2006-06-25  John Luke  <john.luke@gmail.com>
185
186         * Mono.Cairo/Surface.cs: make Destroy() call Dispose()
187         so all the Disposable stuff happens correctly and only once
188         
189 2006-06-23  John Luke  <john.luke@gmail.com>
190
191         * Mono.Cairo/Pattern.cs:
192         * Mono.Cairo/SolidPattern.cs:
193         * Mono.Cairo/SurfacePattern.cs:
194         * Mono.Cairo/Gradient.cs:
195         * Mono.Cairo/LinearGradient.cs:
196         * Mono.Cairo/RadialGradient.cs: split the pattern/gradients
197         into their own files
198         
199 2006-06-23  John Luke  <john.luke@gmail.com>
200
201         #if CAIRO_1_2 changes
202         
203         * Mono.Cairo/Surface.cs: add SetFallbackResolution
204         * Mono.Cairo/CairoAPI.cs: remove old pdf/ps api and
205         add some of the new API
206         * Mono.Cairo/SurfaceType.cs:
207         * Mono.Cairo/SvgSurface.cs:
208         * Mono.Cairo/SvgVersion.cs: add these
209         
210 2006-06-23  John Luke  <john.luke@gmail.com>
211
212         * Mono.Cairo/Surface.cs:
213         * Mono.Cairo/ImageSurface.cs:
214         * Mono.Cairo/PDFSurface.cs:
215         * Mono.Cairo/PSSurface.cs:
216         * Mono.Cairo/Win32Surface.cs:
217         * Mono.Cairo/XlibSurface.cs: split the surfaces into
218         their own files, make pdf and ps reflect what will be
219         in the cairo 1.2 api
220
221 2006-06-23  John Luke  <john.luke@gmail.com>
222
223         * snippets/*.cs: use Cairo.Context instead of Cairo.Graphics
224         * Samples/*/Makefile: add to ease building of samples
225         
226 2006-05-02  Zac Bowling  <zac@zacbowling.com>
227         
228         * Mono.Cairo/Surface.cs: string should be byte[]
229         * Mono.Cairo/Cairo.cs: string should be byte[]
230         (Patch from Philipp Baer <phbaer@npw.net>)
231
232 2006-01-17  Alp Toker  <alp@atoker.com>
233
234         * Samples/x11/compile.sh: Remove unused gtk-sharp reference
235
236 2005-12-19  Wade Berrier <wberrier@novell.com>
237
238         * Mono.Cairo/Makefile: Fix EXTRA_DIST to include samples
239
240 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com>
241
242         * Mono.Cairo/Format.cs: Removed fixme, added names in .Net format
243         * Mono.Cairo/Surface.cs: Removed fixme, added static method 
244           FromBitmap() to allow creating a surface from a bitmap
245         * Mono.Cairo/Pattern.cs: Removed fixme to not tempt anyone to change
246           the name down the road
247
248 2005-12-16  John Luke  <john.luke@gmail.com>
249
250         * Mono.Cairo/FontOptions.cs: fix bug with
251         fontOptions == null, check parameter to Merge
252         against null
253         * Mono.Cairo/Glyph.cs: add setters to properties
254         
255 2005-12-16  John Luke  <john.luke@gmail.com>
256
257         * Mono.Cairo/Cairo.cs: organize and add missing API
258         split out enums and structs
259         * Mono.Cairo/*.cs: add enums and structs as seperate files
260         implement ==, !=, Equals, and GetHashCode for the structs
261         move public fields to properties
262
263 2005-12-16  John Luke  <john.luke@gmail.com>
264
265         * Mono.Cairo/Cairo.cs:
266         * Mono.Cairo/Context.cs:
267         * Mono.Cairo/Pattern.cs:
268         * Mono.Cairo/Surface.cs: add MarkDirty and Flush,
269         mark Surface.Pointer obsolete in favor of Handle
270
271 2005-12-16  John Luke  <john.luke@gmail.com>
272
273         * Mono.Cairo.dll.sources:
274         * Mono.Cairo/Rectangle.cs: add
275         * Mono.Cairo/Cairo.cs: mark fill_extents and stroke extents
276         with out modifiers
277         * Mono.Cairo/Context.cs: FillExtents, and StrokeExtents return
278         a Rectangle (actually 2 points), remove previously unusable
279         versions, add an overload to Rectangle that takes a Rectangle
280         
281 2005-12-12  Mike Kestner  <mkestner@novell.com>
282
283         * Mono.Cairo/Context.cs: renamed from Graphics.cs. renamed Graphics to
284         Context and added an Obsolete subclass to minimize the pain.
285         * Mono.Cairo/Surface.cs : s/Graphics/Context.  
286         Thanks to jluke for pointing out this change was needed.
287
288 2005-12-06  John Luke  <john.luke@gmail.com>
289
290         * Mono.Cairo/Cairo.cs: fix Content and  Format values,
291         fixes the knockout/circles sample
292         * Samples/png/circles.cs:
293         * Samples/png/knockout.cs: replace circles with knockout,
294         which uses the newer style api and works
295
296 2005-12-02  Ben Maurer  <bmaurer@ximian.com>
297
298         * Mono.Cairo/Graphics.cs: Api fixups
299                 - Make Point, et al. structs like all other apis
300                 - Use properties rather than public fields
301                 - Obsolete the plurality of ways to set the color.
302
303 2005-11-27  John Luke  <john.luke@gmail.com>
304
305         * Mono.Cairo/Graphics.cs: add back FontSetSize,
306         FontSize setter, and FontFace as obsolete API
307
308 2005-11-25  John Luke  <john.luke@gmail.com>
309
310         * Mono.Cairo/Cairo.cs: add font_options* api
311         add cairo_get_font_matrix
312         * Mono.Cairo/FontOptions.cs: add
313         * Mono.Cairo/Graphics.cs: add FontOptions property,
314         remove FontSize setter and FontSetSize(),
315         remove FontFace() method as SelectFontFace already exists
316         remove non-existant TransformFont() and Font property
317         
318 2005-11-16  John Luke  <john.luke@gmail.com>
319
320         * snippets/*.cs: add snippets port
321         
322 2005-11-10  John Luke  <john.luke@gmail.com>
323
324         * Mono.Cairo/Graphics.cs:
325         * Mono.Cairo/Surface.cs: remove debugging output
326         
327 2005-10-09  Miguel de Icaza  <miguel@novell.com>
328
329         * Samples/gtk/sysdraw.cs: Fix the sample
330         
331
332 2005-09-19  John Luke  <john.luke@gmail.com>
333
334         * Mono.Cairo/Graphics.cs: add SelectFontFace and SetFontSize
335
336 2005-09-12  Hisham Mardam Bey  <hisham.mardambey@gmail.com>
337
338         * Samples/: Fix all samples to work with new API changes.
339
340 2005-09-12  John Luke  <john.luke@gmail.com>
341
342         * Mono.Cairo/Surface.cs: add two ImageSurface ctors
343         Obsolete Surface CreateForImage methods in favor of
344         the new ImageSurface ctors
345         * Mono.Cairo/Cairo.cs: add cairo_text_extents
346         * Mono.Cairo/Graphics.cs: add TextExtents ()
347         
348         
349 2005-09-07  John Luke  <john.luke@gmail.com>
350
351         * Mono.Cairo/Graphics.cs: the Relative path methods
352         should use a Distance not a PointD, and update some
353         parameter names for better documentation purposes
354         remove SetTargetImage (), and SetTargetDrawable ()
355         use Graphics.Target = Surface instead
356         * Mono.Cairo/Surface.cs: don't reference the surface after
357         we create it as it is not necessary
358         add the new surfaces to the surfaces hashtable on instantiation 
359         * Mono.Cairo/Pattern.cs: don't reference the pattern after
360         we create it as it is not necessary
361         
362 2005-09-07 Hisham Mardam Bey <hisham.mardambey@gmail.com>
363
364         * Samples/png: Fixed samples with new changes.
365         * Samples/x11: Fixed samples with new changes.
366         * Samples/gtk: Fixed samples with new changes.  
367
368 2005-09-06  John Luke  <john.luke@gmail.com>
369
370         * Samples/gtk/circles.cs: fix partially broken sample
371
372 2005-09-06  John Luke  <john.luke@gmail.com>
373
374         * Mono.Cairo/Surface.cs: make CreateSimilar non-static
375         and use Content instead of Format, add Surface.Status
376         * Mono.Cairo/Graphics.cs: add convenience
377         ctor to Color with an alpha of 1.0
378         add Tolerance getter, Change SetDash to compute
379         the length automatically, rename TargetSurface to Target,
380         add SetSourceRGB, SetSourceRGBA, and SetSourceSurface (),
381         add Paint, PaintWithAlpha, Mask, and MaskSurface (),
382         add StrokeExtents, FillExtents, ClipPreserve (), and CopyPage ()
383         * Mono.Cairo/Cairo.cs: add new imports:
384         cairo_stroke_extents, cairo_fill_extents,
385         cairo_clip_preserve, cairo_mask, cairo_mask_surface,
386         cairo_paint_with_alpha, cairo_surface_status
387         add Content enum and fix cairo_surface_create_similar to use
388         Content not Format
389         
390 2005-09-05  John Luke  <john.luke@gmail.com>
391
392         * Mono.Cairo/Samples/gtk/Graphics.cs:
393         add gtk-cairo helper that will work on win32 and
394         x11 based on gtk-dotnet in gtk#, not yet tested on
395         windows
396
397 2005-09-05  John Luke  <john.luke@gmail.com>
398
399         * Mono.Cairo/Samples/win32/compile.sh: add this
400         
401 2005-09-04  John Luke  <john.luke@gmail.com>
402
403         * Mono.Cairo/Cairo.cs: remove symbols not in cairo 1.0:
404           cairo_copy, cairo_current_path, cairo_arc_to, cairo_transform_font,
405           cairo_font_set_transform, cairo_font_current_transform,
406           cairo_font_reference, cairo_font_destroy, cairo_status_string,
407           cairo_surface_create_similar_solid
408           rename cairo_current_line_cap to cairo_get_line_cap,
409           remove now unused delegates
410         * Mono.Cairo/Graphics.cs:
411         * Mono.Cairo/Surface.cs: update for above all found 
412           with help of mono-shlib-cop
413
414
415 2005-09-04  John Luke  <john.luke@gmail.com>
416
417         * Mono.Cairo/Cairo.cs: add new values to Cairo.Status
418         
419 2005-09-02  John Luke  <john.luke@gmail.com>
420
421         * Mono.Cairo/Cairo.cs: only use operators in cairo_operator_t
422         
423 2005-09-01  John Luke  <john.luke@gmail.com>
424
425         * Mono.Cairo/Cairo.cs: add some imports used by
426         the extra surface types
427         * Mono.Cairo/Surface.cs: add XlibSurface and Win32Surface
428         remove Surface.CreateForXlib () 
429         add PdfSurface and PsSurface for future use (#if'ed out)
430         * Mono.Cairo/Graphics.cs: add ShowPage() method
431         * Samples/win32/arc.cs: add win32 sample
432         * Samples/gtk/sysdraw.cs: use XlibSurface instead of
433         Surface.CreateForXlib ()
434         * Samples/x11/*.cs: use XlibSurface instead of
435         Surface.CreateForXlib ()
436
437 2005-09-01  John Luke  <john.luke@gmail.com>
438
439         * Mono.Cairo/Cairo.cs: p/invoke the windows dll name
440           (libcairo-2.dll) so that we can work on .net also 
441         * Mono.Cairo/Cairo.cs: add cairo_set_antialias and
442           cairo_get_antialias and Cairo.Antialias enum
443         * Mono.Cairo/Graphics.cs: add Cairo.Graphics.Antialias
444           property
445          
446
447 2005-09-01 Hisham Mardam Bey <hisham.mardambey@gmail.com>
448
449          * Samples: Added png and x11 samples and cleaned up gtk
450
451 2005-08-30  John Luke  <john.luke@gmail.com>
452
453         * Mono.Cairo/Cairo.cs: mark CairoAPI internal, and move
454           some callback delegates outside the CairoAPI class
455         * Mono.Cairo.Matrix.cs: mark Matrix_T internal
456         * Mono.Cairo/*.cs: remove using System.Drawing;
457         * Mono.Cairo.Graphics.cs: fix IDisposable implementation
458           add overloads to MoveTo () and similar functions
459           for passing the parameters individually
460         * Makefile: remove -r:System.Drawing
461
462 2005-08-30  John Luke  <john.luke@gmail.com>
463
464         * Mono.Cairo/Cairo.cs: add import for
465         cairo_surface_write_to_png
466         * Mono.Cairo/Surface.cs: add WriteToPng method
467
468 2005-08-12 Hisham Mardam Bey <hisham.mardambey@gmail.com>
469         * Added xlib surface size / font size functions
470         * Added font matrix setting
471         
472 2005-08-5 Hisham Mardam Bey <hisham.mardambey@gmail.com>
473         * Cleanup all old methods, remove deprecated classes
474         
475 2005-07-12 Hisham Mardam Bey <hisham.mardambey@gmail.com>
476         * General fixups, this is becoming ready for SVN
477
478 2005-07-09 Hisham Mardam Bey <hisham.mardambey@gmail.com>
479         * Cairo.cs / Graphics.cs: Binded font functions for Cairo 0.5.x
480         * More cleanups to fonts and Graphics.cs
481
482 2005-07-08 Hisham Mardam Bey <hisham.mardambey@gmail.com>
483         * Matrix.cs: binded all functions from Cairo 0.5.x
484         * Surface.cs: binded all functions from Cairo 0.5.x
485         * Pattern.cs: binded all functions from Cairo 0.5.x
486         
487 2005-07-07 Hisham Mardam Bey <hisham.mardambey@gmail.com>
488         * Removed dependency on GTK 2.7.x in Samples
489         * Added more Matrix constructors
490         * Fixed typo in enum Extend
491         * Cairo.cs: fixed matrix_init* methods (dont use ref)
492         * Matrix.cs: moved to 0.5.x API, needs more work
493         
494 2005-07-06 Hisham Mardam Bey <hisham.mardambey@gmail.com>
495         * Moved a major part of the API to follow Cairo 0.5.x
496         * *_current_* are being replaced by *_get_*
497         * move *_set_* function to new API
498         * Add SurfaceImage type
499         * Matrix operations are somehow broken right now
500         
501 2005-07-05 Hisham Mardam Bey <hisham.mardambey@gmail.com>
502         * Graphics.cs: added get for Pattern property
503         * Cairo.cs: added FontExtents / TextExtents structs
504         * Cairo.cs: added several other functions from C API
505           cairo_text_extents
506         * Started move to Cairo 0.5.x
507
508 2005-07-04 Hisham Mardam Bey <hisham.mardambey@gmail.com>
509         * Graphics.cs: Added helper types (PointD, Point, Distance)
510         * Incorporated Reference() into some constructors
511         * Pattern.cs: Split patter into 3 object types
512         * Use double precision for sub-pixel rendering all over
513         * Use IntPtr.Zero instead of (IntPtr) 0
514         * Graphics.cs: Remove SetRGBColor and use Color type
515         * Matrix.cs: add Affine type as a subclass.
516
517 2005-04-24  Jordi Mas i Hernandez <jordi@ximian.com>
518         * Graphics.cs: Adds InStroke/InFill (patch from Pedro Kiefer)
519         * Cairo.cs  Adds InStroke/InFill (patch from Pedro Kiefer)
520
521 2004-04-25  Jordi Mas i Hernandez <jordi@ximian.com>
522
523         * Cairo.cs: fixes cairo_current_matrix signature
524         * Font.cs: fixes internal _create method always returning null
525         * Graphics.cs: fixes Graphics.Matrix
526         * Matrix.cs: does not allow matrix objects without a wrapped handle
527         * Surface.cs: implements Surface.Show 
528
529 2004-05-26  Miguel de Icaza  <miguel@ximian.com>
530
531         * Mono.Cairo/Cairo.cs: Do not use `extern string' here, as the
532         return value is owned by Cairo.
533
534 2004-05-10  Radek Doulik  <rodo@ximian.com>
535
536         * Mono.Cairo/Graphics.cs: fixed typo, pass x2, y2 to
537         cairo_curve_to instead of passing x2, x2
538
539 2004-04-25  Jordi Mas i Hernandez <jordi@ximian.com>
540         * Mono.Cairo/Pattern.cs: implemented all the new pattern API 
541         introduced in Cairo 0.1.20
542         * Font.cs: created class that encapsulates a font object creation
543         and managment.
544         * Cairo.cs: new dllexports, structs, and enums.
545         * Graphics.cs: added all the font functions, fixed the signature
546         of the methods that have changed, added new methods
547
548 2003-11-28  Miguel de Icaza  <miguel@ximian.com>
549
550         * Mono.Cairo/Object.cs: 
551
552         * Mono.Cairo/Surface.cs (LookupSurface): New method, it took me a
553         while to find out why Cairo applications would crash sometimes.
554         The problem was that Cairo.Object:TargetSurface get property would
555         create a Surface from an IntPtr, leading to having two managed
556         objects owning the same unmanaged Surface.
557
558         (Surface..ctor): Make private, so only this module can create
559         surfaces. 
560
561         (Surface.Dispose): Add disposable pattern, finalizer.
562
563         * Mono.Cairo/Object.cs: Add disposable pattern, finalizer.
564
565 2003-10-11  Duncan Mak  <duncan@ximian.com>
566
567         * Mono.Cairo/Cairo.cs (cairo_set_target_drawable): Not available anymore, removed.
568         (cairo_reference, cairo_arc, cairo_arc_negative): New API, added.
569         (cairo_current_matrix): Signature changed, updated.
570         (cairo_surface_reference): New API.
571         (cairo_surface_get_matrix): Use 'out' instead of 'ref' param.
572
573         * Mono.Cairo/Surface.cs:        
574         * Mono.Cairo/Object.cs: Added binding for new APIs listed in Cairo.cs.
575         (Destroy): It's supposed to return void, not IntPtr.
576
577 2003-09-08  Duncan Mak  <duncan@ximian.com>
578
579         * Mono.Cairo/Surface.cs (PutImage): Removed.
580
581         * Mono.Cairo/Object.cs (Copy): Wrapper for cairo_copy.
582
583         * Mono.Cairo/Cairo.cs (cairo_copy): New API
584         (cairo_surface_put_image): Removed.
585
586 2003-09-05  Duncan Mak  <duncan@ximian.com>
587
588         * Mono.Cairo/Object.cs (Tolerance): Fix typo.
589
590 2003-09-04  Duncan Mak  <duncan@ximian.com>
591
592         * Mono.Cairo/Cairo.cs: Update to the new API in CVS. Change all
593         *_get_* to *_current_*. 
594         (cairo_set_target_drawable): 
595         (cairo_surface_create_for_drawable): Add CLSCompliantAttribute.
596         (cairo_current_tolerance):
597         (cairo_set_tolerance): Fix typo. Thanks Alp.
598
599         * Mono.Cairo/Object.cs: Update binding to reflect changes in the
600         API.
601
602 2003-08-12  Duncan Mak  <duncan@ximian.com>
603
604         * Mono.Cairo/Cairo.cs: csc was having trouble resolving the type
605         name because the namespace name (Cairo) is the same as the class
606         name (also Cairo). To resolve this ambiguity while keeping the
607         code looking decent, the Cairo.Cairo class is now Cairo.CairoAPI.
608
609 2003-08-12  Duncan Mak  <duncan@ximian.com>
610
611         * Mono.Cairo/Cairo.cs: Now that the namespace is called 'Cairo',
612         the enums no longer need to be nested inside the Cairo class.
613
614         * Mono.Cairo/Matrix.cs:
615         * Mono.Cairo/Object.cs:
616         * Mono.Cairo/Surface.cs: I never liked having the word 'Object' in
617         the name of a class, esp. now that we have namespaces. So I have
618         decided to rename them.
619
620                 CairoObject        -> Cairo.Object
621                 CairoMatrixObject  -> Cairo.Matrix
622                 CairoSurfaceObject -> Cairo.Surface
623
624         I didn't like the Mono.Cairo namespace either, so they're just in
625         the Cairo namespace now. I know it's icky that the directory is
626         called Mono.Cairo, and the dll we write to is called
627         'Mono.Cairo.dll', and yet the namespace now gonna just be 'Cairo'
628         and not 'Mono.Cairo'. C'est la vie.
629         
630 2003-08-12  Duncan Mak  <duncan@ximian.com>
631
632         * Mono.Cairo/CairoObject.cs (Pattern): Re-enable this. This
633         is actually a CairoSurfaceObject (a C cairo_surface_t); the
634         CairoPatternObject is just something I made up...
635
636 2003-08-12  Nick Drochak <ndrochak@gol.com>
637
638         * Makefile: put .dll on System.Drawing reference. Fix CSC build.
639
640 2003-08-11  Duncan Mak  <duncan@ximian.com>
641
642         * makefile:
643         * Mono.Cairo.dll.sources: Added.
644
645         * Mono.Cairo/Cairo.cs:
646         * Mono.Cairo/CairoObject.cs:
647         * Mono.Cairo/CairoMatrixObject.cs: 
648         * Mono.Cairo/CairoSurfaceObject.cs: Made them build properly.
649
650 2003-08-09  Duncan Mak  <duncan@ximian.com>
651
652         * Mono.Cairo/Cairo.cs:
653         * Mono.Cairo/CairoObject.cs:
654         * Mono.Cairo/CairoMatrixObject.cs: 
655         * Mono.Cairo/CairoSurfaceObject.cs: Added Cairo binding.