1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/** \file
* \brief PPlot component for Iup.
*
* See Copyright Notice in "iup.h"
*/
#ifndef __IUPPPLOT_H
#define __IUPPPLOT_H
#ifdef __cplusplus
extern "C" {
#endif
/* Initialize PPlot widget class */
void IupPPlotOpen(void);
/* Create an PPlot widget instance */
Ihandle* IupPPlot(void);
/* Add dataset to plot */
void IupPPlotBegin(Ihandle *ih, int strXdata);
void IupPPlotAdd(Ihandle *ih, float x, float y);
void IupPPlotAddStr(Ihandle *ih, const char* x, float y);
int IupPPlotEnd(Ihandle *ih);
void IupPPlotInsertStr(Ihandle *ih, int index, int sample_index, const char* x, float y);
void IupPPlotInsert(Ihandle *ih, int index, int sample_index, float x, float y);
/* convert from plot coordinates to pixels */
void IupPPlotTransform(Ihandle* ih, float x, float y, int *ix, int *iy);
/* Plot on the given device. Uses a "cdCanvas*". */
void IupPPlotPaintTo(Ihandle *ih, void *cnv);
#ifdef __cplusplus
}
#endif
#endif
|