svn path=/branches/mono-1-1-9/mcs/; revision=51207
[mono.git] / mcs / class / Mono.Cairo / ChangeLog
1 2005-09-07  John Luke  <john.luke@gmail.com>
2
3         * Mono.Cairo/Graphics.cs: the Relative path methods
4         should use a Distance not a PointD, and update some
5         parameter names for better documentation purposes
6         remove SetTargetImage (), and SetTargetDrawable ()
7         use Graphics.Target = Surface instead
8         * Mono.Cairo/Surface.cs: don't reference the surface after
9         we create it as it is not necessary
10         add the new surfaces to the surfaces hashtable on instantiation 
11         * Mono.Cairo/Pattern.cs: don't reference the pattern after
12         we create it as it is not necessary
13         
14 2005-09-07 Hisham Mardam Bey <hisham.mardambey@gmail.com>
15
16         * Samples/png: Fixed samples with new changes.
17         * Samples/x11: Fixed samples with new changes.
18         * Samples/gtk: Fixed samples with new changes.  
19
20 2005-09-06  John Luke  <john.luke@gmail.com>
21
22         * Samples/gtk/circles.cs: fix partially broken sample
23
24 2005-09-06  John Luke  <john.luke@gmail.com>
25
26         * Mono.Cairo/Surface.cs: make CreateSimilar non-static
27         and use Content instead of Format, add Surface.Status
28         * Mono.Cairo/Graphics.cs: add convenience
29         ctor to Color with an alpha of 1.0
30         add Tolerance getter, Change SetDash to compute
31         the length automatically, rename TargetSurface to Target,
32         add SetSourceRGB, SetSourceRGBA, and SetSourceSurface (),
33         add Paint, PaintWithAlpha, Mask, and MaskSurface (),
34         add StrokeExtents, FillExtents, ClipPreserve (), and CopyPage ()
35         * Mono.Cairo/Cairo.cs: add new imports:
36         cairo_stroke_extents, cairo_fill_extents,
37         cairo_clip_preserve, cairo_mask, cairo_mask_surface,
38         cairo_paint_with_alpha, cairo_surface_status
39         add Content enum and fix cairo_surface_create_similar to use
40         Content not Format
41         
42 2005-09-05  John Luke  <john.luke@gmail.com>
43
44         * Mono.Cairo/Samples/gtk/Graphics.cs:
45         add gtk-cairo helper that will work on win32 and
46         x11 based on gtk-dotnet in gtk#, not yet tested on
47         windows
48
49 2005-09-05  John Luke  <john.luke@gmail.com>
50
51         * Mono.Cairo/Samples/win32/compile.sh: add this
52         
53 2005-09-04  John Luke  <john.luke@gmail.com>
54  
55         * Mono.Cairo/Cairo.cs: remove symbols not in cairo 1.0:
56           cairo_copy, cairo_current_path, cairo_arc_to, cairo_transform_font,
57           cairo_font_set_transform, cairo_font_current_transform,
58           cairo_font_reference, cairo_font_destroy, cairo_status_string,
59           cairo_surface_create_similar_solid
60           rename cairo_current_line_cap to cairo_get_line_cap,
61           remove now unused delegates
62         * Mono.Cairo/Graphics.cs:
63         * Mono.Cairo/Surface.cs: update for above all found 
64           with help of mono-shlib-cop
65  
66
67 2005-09-04  John Luke  <john.luke@gmail.com>
68
69         * Mono.Cairo/Cairo.cs: add new values to Cairo.Status
70         
71 2005-09-02  John Luke  <john.luke@gmail.com>
72
73         * Mono.Cairo/Cairo.cs: only use operators in cairo_operator_t
74         
75 2005-09-01  John Luke  <john.luke@gmail.com>
76
77         * Mono.Cairo/Cairo.cs: add some imports used by
78         the extra surface types
79         * Mono.Cairo/Surface.cs: add XlibSurface and Win32Surface
80         remove Surface.CreateForXlib () 
81         add PdfSurface and PsSurface for future use (#if'ed out)
82         * Mono.Cairo/Graphics.cs: add ShowPage() method
83         * Samples/win32/arc.cs: add win32 sample
84         * Samples/gtk/sysdraw.cs: use XlibSurface instead of
85         Surface.CreateForXlib ()
86         * Samples/x11/*.cs: use XlibSurface instead of
87         Surface.CreateForXlib ()
88
89 2005-09-01  John Luke  <john.luke@gmail.com>
90
91         * Mono.Cairo/Cairo.cs: p/invoke the windows dll name
92           (libcairo-2.dll) so that we can work on .net also 
93         * Mono.Cairo/Cairo.cs: add cairo_set_antialias and
94           cairo_get_antialias and Cairo.Antialias enum
95         * Mono.Cairo/Graphics.cs: add Cairo.Graphics.Antialias
96           property
97          
98
99 2005-09-01 Hisham Mardam Bey <hisham.mardambey@gmail.com>
100
101         * Samples: Added png and x11 samples and cleaned up gtk
102
103 2005-08-30  John Luke  <john.luke@gmail.com>
104  
105         * Mono.Cairo/Cairo.cs: mark CairoAPI internal, and move
106           some callback delegates outside the CairoAPI class
107         * Mono.Cairo.Matrix.cs: mark Matrix_T internal
108         * Mono.Cairo/*.cs: remove using System.Drawing;
109         * Mono.Cairo.Graphics.cs: fix IDisposable implementation
110           add overloads to MoveTo () and similar functions
111           for passing the parameters individually
112         * Makefile: remove -r:System.Drawing
113
114 2005-08-30  John Luke  <john.luke@gmail.com>
115
116         * Mono.Cairo/Cairo.cs: add import for
117         cairo_surface_write_to_png
118         * Mono.Cairo/Surface.cs: add WriteToPng method
119
120 2005-08-12 Hisham Mardam Bey <hisham.mardambey@gmail.com>
121         * Added xlib surface size / font size functions
122         * Added font matrix setting
123         
124 2005-08-5 Hisham Mardam Bey <hisham.mardambey@gmail.com>
125         * Cleanup all old methods, remove deprecated classes
126         
127 2005-07-12 Hisham Mardam Bey <hisham.mardambey@gmail.com>
128         * General fixups, this is becoming ready for SVN
129
130 2005-07-09 Hisham Mardam Bey <hisham.mardambey@gmail.com>
131         * Cairo.cs / Graphics.cs: Binded font functions for Cairo 0.5.x
132         * More cleanups to fonts and Graphics.cs
133
134 2005-07-08 Hisham Mardam Bey <hisham.mardambey@gmail.com>
135         * Matrix.cs: binded all functions from Cairo 0.5.x
136         * Surface.cs: binded all functions from Cairo 0.5.x
137         * Pattern.cs: binded all functions from Cairo 0.5.x
138         
139 2005-07-07 Hisham Mardam Bey <hisham.mardambey@gmail.com>
140         * Removed dependency on GTK 2.7.x in Samples
141         * Added more Matrix constructors
142         * Fixed typo in enum Extend
143         * Cairo.cs: fixed matrix_init* methods (dont use ref)
144         * Matrix.cs: moved to 0.5.x API, needs more work
145         
146 2005-07-06 Hisham Mardam Bey <hisham.mardambey@gmail.com>
147         * Moved a major part of the API to follow Cairo 0.5.x
148         * *_current_* are being replaced by *_get_*
149         * move *_set_* function to new API
150         * Add SurfaceImage type
151         * Matrix operations are somehow broken right now
152         
153 2005-07-05 Hisham Mardam Bey <hisham.mardambey@gmail.com>
154         * Graphics.cs: added get for Pattern property
155         * Cairo.cs: added FontExtents / TextExtents structs
156         * Cairo.cs: added several other functions from C API
157           cairo_text_extents
158         * Started move to Cairo 0.5.x
159
160 2005-07-04 Hisham Mardam Bey <hisham.mardambey@gmail.com>
161         * Graphics.cs: Added helper types (PointD, Point, Distance)
162         * Incorporated Reference() into some constructors
163         * Pattern.cs: Split patter into 3 object types
164         * Use double precision for sub-pixel rendering all over
165         * Use IntPtr.Zero instead of (IntPtr) 0
166         * Graphics.cs: Remove SetRGBColor and use Color type
167         * Matrix.cs: add Affine type as a subclass.
168    
169 2005-04-24  Jordi Mas i Hernandez <jordi@ximian.com>
170         * Graphics.cs: Adds InStroke/InFill (patch from Pedro Kiefer)
171         * Cairo.cs  Adds InStroke/InFill (patch from Pedro Kiefer)
172
173 2004-04-25  Jordi Mas i Hernandez <jordi@ximian.com>
174
175         * Cairo.cs: fixes cairo_current_matrix signature
176         * Font.cs: fixes internal _create method always returning null
177         * Graphics.cs: fixes Graphics.Matrix
178         * Matrix.cs: does not allow matrix objects without a wrapped handle
179         * Surface.cs: implements Surface.Show 
180
181 2004-05-26  Miguel de Icaza  <miguel@ximian.com>
182
183         * Mono.Cairo/Cairo.cs: Do not use `extern string' here, as the
184         return value is owned by Cairo.
185
186 2004-05-10  Radek Doulik  <rodo@ximian.com>
187
188         * Mono.Cairo/Graphics.cs: fixed typo, pass x2, y2 to
189         cairo_curve_to instead of passing x2, x2
190
191 2004-04-25  Jordi Mas i Hernandez <jordi@ximian.com>
192         * Mono.Cairo/Pattern.cs: implemented all the new pattern API 
193         introduced in Cairo 0.1.20
194         * Font.cs: created class that encapsulates a font object creation
195         and managment.
196         * Cairo.cs: new dllexports, structs, and enums.
197         * Graphics.cs: added all the font functions, fixed the signature
198         of the methods that have changed, added new methods
199
200 2003-11-28  Miguel de Icaza  <miguel@ximian.com>
201
202         * Mono.Cairo/Object.cs: 
203
204         * Mono.Cairo/Surface.cs (LookupSurface): New method, it took me a
205         while to find out why Cairo applications would crash sometimes.
206         The problem was that Cairo.Object:TargetSurface get property would
207         create a Surface from an IntPtr, leading to having two managed
208         objects owning the same unmanaged Surface.
209
210         (Surface..ctor): Make private, so only this module can create
211         surfaces. 
212
213         (Surface.Dispose): Add disposable pattern, finalizer.
214
215         * Mono.Cairo/Object.cs: Add disposable pattern, finalizer.
216
217 2003-10-11  Duncan Mak  <duncan@ximian.com>
218
219         * Mono.Cairo/Cairo.cs (cairo_set_target_drawable): Not available anymore, removed.
220         (cairo_reference, cairo_arc, cairo_arc_negative): New API, added.
221         (cairo_current_matrix): Signature changed, updated.
222         (cairo_surface_reference): New API.
223         (cairo_surface_get_matrix): Use 'out' instead of 'ref' param.
224
225         * Mono.Cairo/Surface.cs:        
226         * Mono.Cairo/Object.cs: Added binding for new APIs listed in Cairo.cs.
227         (Destroy): It's supposed to return void, not IntPtr.
228
229 2003-09-08  Duncan Mak  <duncan@ximian.com>
230
231         * Mono.Cairo/Surface.cs (PutImage): Removed.
232
233         * Mono.Cairo/Object.cs (Copy): Wrapper for cairo_copy.
234
235         * Mono.Cairo/Cairo.cs (cairo_copy): New API
236         (cairo_surface_put_image): Removed.
237
238 2003-09-05  Duncan Mak  <duncan@ximian.com>
239
240         * Mono.Cairo/Object.cs (Tolerance): Fix typo.
241
242 2003-09-04  Duncan Mak  <duncan@ximian.com>
243
244         * Mono.Cairo/Cairo.cs: Update to the new API in CVS. Change all
245         *_get_* to *_current_*. 
246         (cairo_set_target_drawable): 
247         (cairo_surface_create_for_drawable): Add CLSCompliantAttribute.
248         (cairo_current_tolerance):
249         (cairo_set_tolerance): Fix typo. Thanks Alp.
250
251         * Mono.Cairo/Object.cs: Update binding to reflect changes in the
252         API.
253
254 2003-08-12  Duncan Mak  <duncan@ximian.com>
255
256         * Mono.Cairo/Cairo.cs: csc was having trouble resolving the type
257         name because the namespace name (Cairo) is the same as the class
258         name (also Cairo). To resolve this ambiguity while keeping the
259         code looking decent, the Cairo.Cairo class is now Cairo.CairoAPI.
260
261 2003-08-12  Duncan Mak  <duncan@ximian.com>
262
263         * Mono.Cairo/Cairo.cs: Now that the namespace is called 'Cairo',
264         the enums no longer need to be nested inside the Cairo class.
265
266         * Mono.Cairo/Matrix.cs:
267         * Mono.Cairo/Object.cs:
268         * Mono.Cairo/Surface.cs: I never liked having the word 'Object' in
269         the name of a class, esp. now that we have namespaces. So I have
270         decided to rename them.
271
272                 CairoObject        -> Cairo.Object
273                 CairoMatrixObject  -> Cairo.Matrix
274                 CairoSurfaceObject -> Cairo.Surface
275
276         I didn't like the Mono.Cairo namespace either, so they're just in
277         the Cairo namespace now. I know it's icky that the directory is
278         called Mono.Cairo, and the dll we write to is called
279         'Mono.Cairo.dll', and yet the namespace now gonna just be 'Cairo'
280         and not 'Mono.Cairo'. C'est la vie.
281         
282 2003-08-12  Duncan Mak  <duncan@ximian.com>
283
284         * Mono.Cairo/CairoObject.cs (Pattern): Re-enable this. This
285         is actually a CairoSurfaceObject (a C cairo_surface_t); the
286         CairoPatternObject is just something I made up...
287
288 2003-08-12  Nick Drochak <ndrochak@gol.com>
289
290         * Makefile: put .dll on System.Drawing reference. Fix CSC build.
291
292 2003-08-11  Duncan Mak  <duncan@ximian.com>
293
294         * makefile:
295         * Mono.Cairo.dll.sources: Added.
296
297         * Mono.Cairo/Cairo.cs:
298         * Mono.Cairo/CairoObject.cs:
299         * Mono.Cairo/CairoMatrixObject.cs: 
300         * Mono.Cairo/CairoSurfaceObject.cs: Made them build properly.
301
302 2003-08-09  Duncan Mak  <duncan@ximian.com>
303
304         * Mono.Cairo/Cairo.cs:
305         * Mono.Cairo/CairoObject.cs:
306         * Mono.Cairo/CairoMatrixObject.cs: 
307         * Mono.Cairo/CairoSurfaceObject.cs: Added Cairo binding.