[cairo-commit] goocanvas ChangeLog,1.3,1.4 TODO,1.3,1.4

Damon Chaplin commit at pdx.freedesktop.org
Fri Mar 24 08:55:47 PST 2006


Committed by: damon

Update of /cvs/cairo/goocanvas
In directory kemper:/tmp/cvs-serv29878

Modified Files:
	ChangeLog TODO 
Log Message:
2006-03-24  Damon Chaplin  <damon at gnome.org>

	* src/goocanvasview.c (goo_canvas_view_render): new function to
	render all or part of the canvas to a given cairo context.

	* src/demo.c: added "Write PDF" test, that creates a pdf file
	containing the main canvas.

	* src/goocanvasview.[hc]: used a GooCanvasBounds rather than left,
	right, top, bottom for the bounds. Also renamed "pixels_per_unit"
	to "scale".

	* src/goocanvasitemview.[hc]: 
	* src/goocanvastextview.c (goo_canvas_text_view_paint): 
	* src/goocanvasgroupview.c (goo_canvas_group_view_paint): 
	* src/goocanvasellipseview.c (goo_canvas_ellipse_view_paint): 
	* src/goocanvasimageview.c (goo_canvas_image_view_paint): 
	* src/goocanvaspolylineview.c (goo_canvas_polyline_view_paint): we
	now just pass the effective scale to the paint function rather than the
	GooCanvasView*, since when rendering to an arbitrary cairo_t we may not
	want to use a different effective scale (to determine which items are
	shown). (Also fixed some of the visibility checks.)



Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/goocanvas/ChangeLog,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ChangeLog	23 Mar 2006 16:58:48 -0000	1.3
+++ ChangeLog	24 Mar 2006 16:55:44 -0000	1.4
@@ -1,3 +1,26 @@
+2006-03-24  Damon Chaplin  <damon at gnome.org>
+
+	* src/goocanvasview.c (goo_canvas_view_render): new function to
+	render all or part of the canvas to a given cairo context.
+
+	* src/demo.c: added "Write PDF" test, that creates a pdf file
+	containing the main canvas.
+
+	* src/goocanvasview.[hc]: used a GooCanvasBounds rather than left,
+	right, top, bottom for the bounds. Also renamed "pixels_per_unit"
+	to "scale".
+
+	* src/goocanvasitemview.[hc]: 
+	* src/goocanvastextview.c (goo_canvas_text_view_paint): 
+	* src/goocanvasgroupview.c (goo_canvas_group_view_paint): 
+	* src/goocanvasellipseview.c (goo_canvas_ellipse_view_paint): 
+	* src/goocanvasimageview.c (goo_canvas_image_view_paint): 
+	* src/goocanvaspolylineview.c (goo_canvas_polyline_view_paint): we
+	now just pass the effective scale to the paint function rather than the
+	GooCanvasView*, since when rendering to an arbitrary cairo_t we may not
+	want to use a different effective scale (to determine which items are
+	shown). (Also fixed some of the visibility checks.)
+
 2006-03-23  Damon Chaplin  <damon at gnome.org>
 
 	* src/goocanvasitem.c: added new "visibility" and

Index: TODO
===================================================================
RCS file: /cvs/cairo/goocanvas/TODO,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- TODO	23 Mar 2006 16:58:48 -0000	1.3
+++ TODO	24 Mar 2006 16:55:44 -0000	1.4
@@ -1,11 +1,12 @@
 
 Features definitely needed:
 
+ o get_bounds() should ensure item is updated. Check other functions as well.
+
  o Event filter options, like "pointer-events" in SVG, specifying which parts
    of an item can be a target for events and if it has to be visible.
 
- o Function to render part/all of canvas to any cairo_t.
- o get_bounds() should ensure item is updated. Check other functions as well.
+ o Background - probably default to white background, and add color setting.
 
  o Sticky items that don't move at all as the canvas is scrolled & zoomed.
  o GooCanvasPath item, as in SVG.



More information about the cairo-commit mailing list