IUP
view release on metacpan or search on metacpan
lib/IUP/Internal/Plot.xs.inc view on Meta::CPAN
#endif
#### Original C function from <iup_plot.h>
# void IupPlotTransform(Ihandle* ih, double x, double y, double *cnv_x, double *cnv_y); [in C]
void
_IupPlotTransform(ih,x,y);
Ihandle* ih;
double x;
double y
INIT:
double cnv_x;
double cnv_y;
PPCODE:
#ifdef HAVELIB_IUP_PLOT
IupPlotTransform(ih,x,y,&cnv_x,&cnv_y);
XPUSHs(sv_2mortal(newSVnv(cnv_x)));
XPUSHs(sv_2mortal(newSVnv(cnv_y)));
#endif
#### Original C function from <iup_plot.h>
# void IupPlotTransformTo(Ihandle* ih, double cnv_x, double cnv_y, double *x, double *y); [in C]
void
_IupPlotTransformTo(ih,cnv_x,cnv_y);
Ihandle* ih;
double cnv_x;
double cnv_y;
INIT:
double x;
double y;
PPCODE:
#ifdef HAVELIB_IUP_PLOT
IupPlotTransformTo(ih,cnv_x,cnv_y,&x,&y);
XPUSHs(sv_2mortal(newSVnv(cnv_x)));
XPUSHs(sv_2mortal(newSVnv(cnv_y)));
#endif
#### Original C function from <iup_plot.h>
# void IupPlotPaintTo(Ihandle *ih, void *cnv);
void
_IupPlotPaintTo(ih,cnv)
Ihandle *ih;
void *cnv;
CODE:
#ifdef HAVELIB_IUP_PLOT
IupPlotPaintTo(ih,cnv);
#endif
#### XXX-TODO
#### Original C function from <iup_plot.h>
# int IupPlotLoadData(Ihandle *ih, const char* filename, int strXdata);
# void IupPlotGetSample(Ihandle *ih, int ds_index, int sample_index, double *x, double *y); [in C]
# void IupPlotGetSampleStr(Ihandle *ih, int ds_index, int sample_index, const char* *x, double *y);
# int IupPlotGetSampleSelection(Ihandle *ih, int ds_index, int sample_index); [in C]
# double IupPlotGetSampleExtra(Ihandle *ih, int ds_index, int sample_index); [in C]
# void IupPlotSetSample(Ihandle *ih, int ds_index, int sample_index, double x, double y); [in C]
# void IupPlotSetSampleStr(Ihandle *ih, int ds_index, int sample_index, const char* x, double y);
# void IupPlotSetSampleSelection(Ihandle *ih, int ds_index, int sample_index, int selected);
# void IupPlotSetSampleExtra(Ihandle *ih, int ds_index, int sample_index, double extra); [in C]
# int IupPlotFindSample(Ihandle* ih, double cnv_x, double cnv_y, int *ds_index, int *sample_index); [in C]
# void IupPlotSetFormula(Ihandle* ih, int sample_count, const char* formula, const char* init); [in C]
( run in 0.612 second using v1.01-cache-2.11-cpan-f56aa216473 )