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_clock.h | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'src/c_fl_clock.h') diff --git a/src/c_fl_clock.h b/src/c_fl_clock.h index bda955f..4b07d7e 100644 --- a/src/c_fl_clock.h +++ b/src/c_fl_clock.h @@ -8,30 +8,18 @@ #define FL_CLOCK_GUARD - - typedef void* CLOCK; - - -extern "C" void clock_set_draw_hook(CLOCK c, void * d); -extern "C" void fl_clock_draw(CLOCK c); -extern "C" void clock_set_handle_hook(CLOCK c, void * h); -extern "C" int fl_clock_handle(CLOCK c, int e); - - - - extern "C" CLOCK new_fl_clock(int x, int y, int w, int h, char* label); -extern "C" CLOCK new_fl_clock2(uchar k, int x, int y, int w, int h, char* label); +extern "C" CLOCK new_fl_clock2(unsigned char k, int x, int y, int w, int h, char* label); extern "C" void free_fl_clock(CLOCK c); - - -extern "C" void fl_clock_draw2(CLOCK c, int x, int y, int w, int h); +extern "C" void fl_clock_draw(CLOCK c); +extern "C" int fl_clock_handle(CLOCK c, int e); #endif + -- cgit