summaryrefslogtreecommitdiff
path: root/src/c_fl_positioner.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-13 20:48:27 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-13 20:48:27 +1300
commit41fca67267180571b5107bf7b9516eb669588b25 (patch)
treeff6800e3ed60a04d786af87e88a3142ebd65b9e0 /src/c_fl_positioner.h
parentc300ec0f456da533291b10db57d27a9c3bb8de9f (diff)
Fl_Positioner added
Diffstat (limited to 'src/c_fl_positioner.h')
-rw-r--r--src/c_fl_positioner.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/c_fl_positioner.h b/src/c_fl_positioner.h
new file mode 100644
index 0000000..9fd96d4
--- /dev/null
+++ b/src/c_fl_positioner.h
@@ -0,0 +1,49 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#ifndef FL_POSITIONER_GUARD
+#define FL_POSITIONER_GUARD
+
+
+typedef void* POSITIONER;
+
+
+extern "C" POSITIONER new_fl_positioner(int x, int y, int w, int h, char* label);
+extern "C" void free_fl_positioner(POSITIONER p);
+
+
+extern "C" int fl_positioner_set_value(POSITIONER p, double x, double y);
+
+
+extern "C" void fl_positioner_xbounds(POSITIONER p, double l, double h);
+extern "C" void fl_positioner_xstep(POSITIONER p, double a);
+extern "C" double fl_positioner_get_xminimum(POSITIONER p);
+extern "C" void fl_positioner_set_xminimum(POSITIONER p, double a);
+extern "C" double fl_positioner_get_xmaximum(POSITIONER p);
+extern "C" void fl_positioner_set_xmaximum(POSITIONER p, double a);
+extern "C" double fl_positioner_get_xvalue(POSITIONER p);
+extern "C" int fl_positioner_set_xvalue(POSITIONER p, double x);
+
+
+extern "C" void fl_positioner_ybounds(POSITIONER p, double l, double h);
+extern "C" void fl_positioner_ystep(POSITIONER p, double a);
+extern "C" double fl_positioner_get_yminimum(POSITIONER p);
+extern "C" void fl_positioner_set_yminimum(POSITIONER p, double a);
+extern "C" double fl_positioner_get_ymaximum(POSITIONER p);
+extern "C" void fl_positioner_set_ymaximum(POSITIONER p, double a);
+extern "C" double fl_positioner_get_yvalue(POSITIONER p);
+extern "C" int fl_positioner_set_yvalue(POSITIONER p, double y);
+
+
+extern "C" void fl_positioner_draw(POSITIONER p);
+extern "C" void fl_positioner_draw2(POSITIONER p, int x, int y, int w, int h);
+extern "C" int fl_positioner_handle(POSITIONER p, int e);
+extern "C" int fl_positioner_handle2(POSITIONER p, int e, int x, int y, int w, int h);
+
+
+#endif
+
+