From e93b9bbc02e2791f3a35b6f077fcbb8514c28aed Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 12 Jan 2025 01:14:58 +1300 Subject: Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there --- src/c_fl_spinner.h | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'src/c_fl_spinner.h') diff --git a/src/c_fl_spinner.h b/src/c_fl_spinner.h index 3fce53c..2c5e97d 100644 --- a/src/c_fl_spinner.h +++ b/src/c_fl_spinner.h @@ -8,27 +8,13 @@ #define FL_SPINNER_GUARD - - typedef void* SPINNER; - - -extern "C" void spinner_set_draw_hook(SPINNER n, void * d); -extern "C" void fl_spinner_draw(SPINNER n); -extern "C" void spinner_set_handle_hook(SPINNER n, void * h); -extern "C" int fl_spinner_handle(SPINNER n, int e); - - - - 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); @@ -54,5 +40,13 @@ extern "C" double fl_spinner_get_value(SPINNER n); extern "C" void fl_spinner_set_value(SPINNER n, double 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