Ryujinx-GtkSharp/gnome/glue/canvaspoints.c
Mike Kestner e83c55a242 2004-03-12 Mike Kestner <mkestner@ximian.com>
* */Makefile.am : automakify the build
	* */Makefile.in : kill
	* *.custom : remove System.Drawing dependencies
	* *.cs : remove System.Drawing dependencies
	* *-api.xml : mv to *-api.raw
	* glue/* : mv to lib specific gluelibs for glib, gdk, gtk, and glade.
	* gtk/gtk-symbols : alias GtkType to GType
	* sources/gtk-sharp-sources.xml : create .raw files. They are now
	transformed to .xml files by the metadata compilation step.

svn path=/trunk/gtk-sharp/; revision=23967
2004-03-12 21:18:11 +00:00

34 lines
728 B
C

/* canvaspoints.c : Custom ctor for a CanvasPoints struct.
*
* Author: Rachel Hestilow <hestilow@ximian.com>
*
* <c> 2002 Rachel Hestilow
*/
#include <libgnomecanvas/gnome-canvas.h>
#include <libgnomecanvas/gnome-canvas-util.h>
/* Forward declarations */
GnomeCanvasPoints *gtksharp_gnome_canvas_points_new_from_array (guint num_points,
double *coords);
/* */
GnomeCanvasPoints*
gtksharp_gnome_canvas_points_new_from_array (guint num_points, double *coords)
{
int i, len;
GnomeCanvasPoints *pts = gnome_canvas_points_new (num_points);
g_print ("{");
len = num_points * 2;
for (i = 0; i < len; i++) {
pts->coords[i] = coords[i];
g_print ("%f ", pts->coords[i]);
}
g_print ("}\n");
return pts;
}