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