summaryrefslogtreecommitdiff
path: root/body/c_fl_spinner.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_spinner.h
parenta4703a65b015140cd4a7a985db66264875ade734 (diff)
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_spinner.h')
-rw-r--r--body/c_fl_spinner.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/body/c_fl_spinner.h b/body/c_fl_spinner.h
new file mode 100644
index 0000000..7447c33
--- /dev/null
+++ b/body/c_fl_spinner.h
@@ -0,0 +1,56 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#ifndef FL_SPINNER_GUARD
+#define FL_SPINNER_GUARD
+
+
+typedef void* SPINNER;
+
+
+extern "C" SPINNER new_fl_spinner(int x, int y, int w, int h, char* label);
+extern "C" void free_fl_spinner(SPINNER n);
+
+
+extern "C" unsigned int fl_spinner_get_color(SPINNER n);
+extern "C" void fl_spinner_set_color(SPINNER n, unsigned int t);
+extern "C" unsigned int fl_spinner_get_selection_color(SPINNER n);
+extern "C" void fl_spinner_set_selection_color(SPINNER n, unsigned int t);
+extern "C" unsigned int fl_spinner_get_textcolor(SPINNER n);
+extern "C" void fl_spinner_set_textcolor(SPINNER n, unsigned int t);
+extern "C" int fl_spinner_get_textfont(SPINNER n);
+extern "C" void fl_spinner_set_textfont(SPINNER n, int t);
+extern "C" int fl_spinner_get_textsize(SPINNER n);
+extern "C" void fl_spinner_set_textsize(SPINNER n, int t);
+
+
+extern "C" double fl_spinner_get_minimum(SPINNER n);
+extern "C" void fl_spinner_set_minimum(SPINNER n, double t);
+extern "C" double fl_spinner_get_maximum(SPINNER n);
+extern "C" void fl_spinner_set_maximum(SPINNER n, double t);
+extern "C" void fl_spinner_range(SPINNER n, double a, double b);
+extern "C" double fl_spinner_get_step(SPINNER n);
+extern "C" void fl_spinner_set_step(SPINNER n, double t);
+extern "C" double fl_spinner_get_value(SPINNER n);
+extern "C" void fl_spinner_set_value(SPINNER n, double t);
+
+
+extern "C" const char * fl_spinner_get_format(SPINNER n);
+extern "C" void fl_spinner_set_format(SPINNER n, const char * f);
+extern "C" unsigned char fl_spinner_get_type(SPINNER n);
+extern "C" void fl_spinner_set_type(SPINNER n, unsigned char t);
+
+
+extern "C" void fl_spinner_resize(SPINNER n, int x, int y, int w, int h);
+
+
+extern "C" void fl_spinner_draw(SPINNER n);
+extern "C" int fl_spinner_handle(SPINNER n, int e);
+
+
+#endif
+
+