[cairo-commit] CairoJava/src/org/cairographics/cairo Cairo.java, 1.8, 1.9

Soorya Kuloor commit at pdx.freedesktop.org
Thu Jun 3 15:24:45 PDT 2004


Committed by: skuloor

Update of /cvs/cairo/CairoJava/src/org/cairographics/cairo
In directory pdx:/tmp/cvs-serv30954/src/org/cairographics/cairo

Modified Files:
	Cairo.java 
Log Message:
Added some javadoc comments

Index: Cairo.java
===================================================================
RCS file: /cvs/cairo/CairoJava/src/org/cairographics/cairo/Cairo.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** a/Cairo.java	13 May 2004 16:46:23 -0000	1.8
--- b/Cairo.java	3 Jun 2004 22:24:42 -0000	1.9
***************
*** 1010,1017 ****
--- 1010,1028 ----
      }
      
+     /**
+      *  Creates a cairo state. Caller is responsible for disposal when done with it.
+      * 
+      * @return Pointer to <code>cairo_t</code> object
+      */
      native static long cairo_create();
  
      native static void cairo_reference(long cr);
  
+     /**
+      * Frees resources and memory associated with cairo state object. Also destroys
+      * any target cairo surfaces.
+      * 
+      * @param cr Pointer to a <code>cairo_t</code> object
+      */
      native static void cairo_destroy(long cr);
  
***************
*** 1023,1026 ****
--- 1034,1044 ----
  
      /* Modify state */
+     /**
+      * Sets the surface cairo will draw on. Any existing surface is disposed. If the surface is <code>null</code> then
+      * then any existing surface is destroyed and the cairo object does not have a surface.
+      * 
+      * @param cr Pointer to cairo_t object
+      * @param surface Pointer to a cairo_surface_t object. Can be <code>null</code>
+      */
      native static void cairo_set_target_surface(long cr, long surface);
  
***************
*** 1216,1218 ****
      native static void cairo_current_path_flat(long cr, FlatPathTracer tracer);
  
! }
\ No newline at end of file
--- 1234,1237 ----
      native static void cairo_current_path_flat(long cr, FlatPathTracer tracer);
  
! }
! 





More information about the cairo-commit mailing list