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_button.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/c_fl_button.h') diff --git a/src/c_fl_button.h b/src/c_fl_button.h index 9c3ecad..f644a50 100644 --- a/src/c_fl_button.h +++ b/src/c_fl_button.h @@ -15,12 +15,6 @@ extern "C" void fl_button_extra_final(void * adaobj); typedef void* BUTTON; -extern "C" void button_set_draw_hook(BUTTON b, void * d); -extern "C" void fl_button_draw(BUTTON b); -extern "C" void button_set_handle_hook(BUTTON b, void * h); -extern "C" int fl_button_handle(BUTTON b, int e); - - extern "C" BUTTON new_fl_button(int x, int y, int w, int h, char* label); extern "C" void free_fl_button(BUTTON b); @@ -36,6 +30,13 @@ extern "C" int fl_button_get_shortcut(BUTTON b); extern "C" void fl_button_set_shortcut(BUTTON b, int k); +extern "C" void fl_button_draw(BUTTON b); +extern "C" int fl_button_handle(BUTTON b, int e); + + +extern "C" void fl_button_simulate_key_action(BUTTON b); + + #endif -- cgit