[cairo-commit] pycairo ChangeLog,1.174,1.175 NOTES,1.13,1.14

Steve Chaplin commit at pdx.freedesktop.org
Mon Aug 29 07:52:32 PDT 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo
In directory gabe:/tmp/cvs-serv22702

Modified Files:
	ChangeLog NOTES 
Log Message:
'SC'

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/pycairo/ChangeLog,v
retrieving revision 1.174
retrieving revision 1.175
diff -u -d -r1.174 -r1.175
--- ChangeLog	29 Aug 2005 11:08:55 -0000	1.174
+++ ChangeLog	29 Aug 2005 14:52:30 -0000	1.175
@@ -1,5 +1,21 @@
 2005-08-29  Steve Chaplin  <steve1097 at yahoo.com.au>
 
+	* examples/gradient.py :
+	* examples/warpedtext.py:
+	* examples/cairo_snippets/snippets/gradient.py :
+	* examples/cairo_snippets/snippets/imagepattern.py:
+	update examples to use the updated Patterns
+
+	* NOTES : list new Pattern hierarchy
+
+	* cairo/cairomodule.c:
+	* cairo/pycairo-context.c :
+	* cairo/pycairo.h :
+	* cairo/pycairo-private.h:
+	* cairo/pycairo-pattern.c : rewrite as a hierarchy of Pattern types
+
+2005-08-29  Steve Chaplin  <steve1097 at yahoo.com.au>
+
 	* examples/svg/svgview.py :
 	update to work with pygtk >= 2.7.0, create an SVG Widget
 

Index: NOTES
===================================================================
RCS file: /cvs/cairo/pycairo/NOTES,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- NOTES	25 Aug 2005 11:48:09 -0000	1.13
+++ NOTES	29 Aug 2005 14:52:30 -0000	1.14
@@ -118,11 +118,13 @@
 
 cairo.Pattern
 -------------
-pat = cairo.Pattern() # does not work, Pattern cannot be instantiated directly,
-                      # instead use
-pat = cairo.Pattern.create_for_surface (surface)
-pat = cairo.Pattern.create_linear (x0, y0, x1, y1)
-pat = cairo.Pattern.create_radial (cx0, cy0, radius0, cx1, cy1, radius1)
+Patterns are implemented in a class hierarchy:
+Pattern  - abstract base class
+  SolidPattern (r, g, b, a=1.0)
+  SurfacePattern (surface)
+  Gradient  - abstract base class
+    LinearGradient (x0, y0, x1, y1)
+    RadialGradient (cx0, cy0, radius0, cx1, cy1, radius1)
 
 
 cairo.ScaledFont
@@ -132,11 +134,11 @@
 cairo.Surface
 -------------
 Surfaces are implemented in a class hierarchy:
-  Surface         - base class, contains methods applicable to all surfaces
-    ImageSurface
-    PDFSurface
-    PSSurface
-    Win32Surface
+Surface         - base class, contains methods applicable to all surfaces
+  ImageSurface
+  PDFSurface
+  PSSurface
+  Win32Surface
 
 C:  cairo_surface_write_to_png (surface, filename);
     cairo_surface_write_to_png_stream (surface, write_func, closure);



More information about the cairo-commit mailing list