mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 04:05:28 +00:00
e6ea0015b5
[ Patch from Ricardo Fernandez Pascual <rfp1@ono.com> for libglade support (slightly modified) ] * configure.in: Conditionally compile glade support. * makefile: Add glade directory. * glade/: Added. * sample/makefile.in: Add (conditional) glade example. * sample/GladeViewer.cs: Added. * glue/gladexml.c: Added. * glue/Makefile.am: Updated. * parser/build.pl: Parse libglade-2.0.0. * parser/README: Update requirements. 2002-08-12 Rachel Hestilow <hestilow@ximian.com> * parser/gapi_pp.pl: Handle "typedef struct {...}" construct. * glue/canvaspoints.c: Added. * glue/Makefile.am: Updated. * gnome/CanvasPoints.custom: Added. (Doesn't seem to work right yet, looking into this.) svn path=/trunk/gtk-sharp/; revision=6601
29 lines
587 B
C
29 lines
587 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>
|
|
|
|
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;
|
|
}
|
|
|