summaryrefslogtreecommitdiff
path: root/body/c_fl_chart.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-21 21:04:54 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-21 21:04:54 +1300
commitb4438b2fbe895694be98e6e8426103deefc51448 (patch)
tree760d86cd7c06420a91dad102cc9546aee73146fc /body/c_fl_chart.h
parenta4703a65b015140cd4a7a985db66264875ade734 (diff)
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_chart.h')
-rw-r--r--body/c_fl_chart.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/body/c_fl_chart.h b/body/c_fl_chart.h
new file mode 100644
index 0000000..bd524c3
--- /dev/null
+++ b/body/c_fl_chart.h
@@ -0,0 +1,50 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#ifndef FL_CHART_GUARD
+#define FL_CHART_GUARD
+
+
+typedef void* CHART;
+
+
+extern "C" CHART new_fl_chart(int x, int y, int w, int h, char * label);
+extern "C" void free_fl_chart(CHART b);
+
+
+extern "C" void fl_chart_add(CHART b, double v, char * s, unsigned int c);
+extern "C" void fl_chart_insert(CHART b, int i, double v, char * s, unsigned int c);
+extern "C" void fl_chart_replace(CHART b, int i, double v, char * s, unsigned int c);
+extern "C" void fl_chart_clear(CHART b);
+
+
+extern "C" int fl_chart_get_autosize(CHART b);
+extern "C" void fl_chart_set_autosize(CHART b, int a);
+extern "C" void fl_chart_get_bounds(CHART b, double * l, double * u);
+extern "C" void fl_chart_set_bounds(CHART b, double l, double u);
+extern "C" int fl_chart_get_maxsize(CHART b);
+extern "C" void fl_chart_set_maxsize(CHART b, int m);
+extern "C" int fl_chart_size(CHART b);
+
+
+extern "C" void fl_chart_size2(CHART b, int w, int h);
+
+
+extern "C" unsigned int fl_chart_get_textcolor(CHART b);
+extern "C" void fl_chart_set_textcolor(CHART b, unsigned int c);
+extern "C" int fl_chart_get_textfont(CHART b);
+extern "C" void fl_chart_set_textfont(CHART b, int f);
+extern "C" int fl_chart_get_textsize(CHART b);
+extern "C" void fl_chart_set_textsize(CHART b, int s);
+
+
+extern "C" void fl_chart_draw(CHART n);
+extern "C" int fl_chart_handle(CHART n, int e);
+
+
+#endif
+
+