summaryrefslogtreecommitdiff
path: root/body/c_fl_valuator.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_valuator.h
parenta4703a65b015140cd4a7a985db66264875ade734 (diff)
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_valuator.h')
-rw-r--r--body/c_fl_valuator.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/body/c_fl_valuator.h b/body/c_fl_valuator.h
new file mode 100644
index 0000000..81107bc
--- /dev/null
+++ b/body/c_fl_valuator.h
@@ -0,0 +1,48 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#ifndef FL_VALUATOR_GUARD
+#define FL_VALUATOR_GUARD
+
+
+typedef void* VALUATOR;
+
+
+extern "C" VALUATOR new_fl_valuator(int x, int y, int w, int h, char* label);
+extern "C" void free_fl_valuator(VALUATOR v);
+
+
+extern "C" int fl_valuator_format(VALUATOR v, char * buf);
+
+
+extern "C" double fl_valuator_clamp(VALUATOR v, double a);
+extern "C" double fl_valuator_round(VALUATOR v, double a);
+extern "C" double fl_valuator_increment(VALUATOR v, double a, int s);
+
+
+extern "C" double fl_valuator_get_minimum(VALUATOR v);
+extern "C" void fl_valuator_set_minimum(VALUATOR v, double t);
+extern "C" double fl_valuator_get_maximum(VALUATOR v);
+extern "C" void fl_valuator_set_maximum(VALUATOR v, double t);
+extern "C" double fl_valuator_get_step(VALUATOR v);
+extern "C" void fl_valuator_set_step_top(VALUATOR v, double t);
+extern "C" void fl_valuator_set_step_bottom(VALUATOR v, int b);
+extern "C" void fl_valuator_set_step(VALUATOR v, double t, int b);
+extern "C" double fl_valuator_get_value(VALUATOR v);
+extern "C" void fl_valuator_set_value(VALUATOR v, double t);
+extern "C" void fl_valuator_bounds(VALUATOR v, double a, double b);
+extern "C" void fl_valuator_precision(VALUATOR v, int s);
+extern "C" void fl_valuator_range(VALUATOR v, double a, double b);
+
+
+extern "C" void fl_valuator_value_damage(VALUATOR v);
+extern "C" void fl_valuator_draw(VALUATOR v);
+extern "C" int fl_valuator_handle(VALUATOR v, int e);
+
+
+#endif
+
+