mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 19:45:29 +00:00
e83c55a242
* */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
34 lines
728 B
C
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;
|
|
}
|
|
|