From b4438b2fbe895694be98e6e8426103deefc51448 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 21 Jan 2025 21:04:54 +1300 Subject: Split public API and private implementation files into different directories --- body/c_fl_spinner.h | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 body/c_fl_spinner.h (limited to 'body/c_fl_spinner.h') 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 + + -- cgit