summaryrefslogtreecommitdiff
path: root/iup/include/iup_pplot.h
diff options
context:
space:
mode:
Diffstat (limited to 'iup/include/iup_pplot.h')
-rwxr-xr-xiup/include/iup_pplot.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/iup/include/iup_pplot.h b/iup/include/iup_pplot.h
new file mode 100755
index 0000000..59c3453
--- /dev/null
+++ b/iup/include/iup_pplot.h
@@ -0,0 +1,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