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