From 17473af7e8ed13e0a9399a69442f9839e5d83aef Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Thu, 9 Jan 2025 14:58:19 +1300 Subject: Used C FFI to make Extra_Init and Extra_Final calls more consistent --- src/c_fl_menu_button.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/c_fl_menu_button.h') diff --git a/src/c_fl_menu_button.h b/src/c_fl_menu_button.h index 95f8477..513f6b0 100644 --- a/src/c_fl_menu_button.h +++ b/src/c_fl_menu_button.h @@ -8,30 +8,28 @@ #define FL_MENU_BUTTON_GUARD +extern "C" void fl_menu_button_extra_init + (void * adaobj, int x, int y, int w, int h, const char * label); +extern "C" void fl_menu_button_extra_final(void * adaobj); typedef void* MENUBUTTON; - - extern "C" void menu_button_set_draw_hook(MENUBUTTON m, void * d); extern "C" void fl_menu_button_draw(MENUBUTTON m); extern "C" void menu_button_set_handle_hook(MENUBUTTON m, void * h); extern "C" int fl_menu_button_handle(MENUBUTTON m, int e); - - extern "C" MENUBUTTON new_fl_menu_button(int x, int y, int w, int h, char* label); extern "C" void free_fl_menu_button(MENUBUTTON m); - - extern "C" void fl_menu_button_type(MENUBUTTON m, unsigned int t); extern "C" const void * fl_menu_button_popup(MENUBUTTON m); #endif + -- cgit