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_scrollbar.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/c_fl_scrollbar.h') diff --git a/src/c_fl_scrollbar.h b/src/c_fl_scrollbar.h index 85aac59..6f82143 100644 --- a/src/c_fl_scrollbar.h +++ b/src/c_fl_scrollbar.h @@ -8,27 +8,24 @@ #define FL_SCROLLBAR_GUARD +extern "C" void fl_scrollbar_extra_init + (void * adaobj, int x, int y, int w, int h, const char * label); +extern "C" void fl_scrollbar_extra_final(void * adaobj); typedef void* SCROLLBAR; - - extern "C" void scrollbar_set_draw_hook(SCROLLBAR s, void * d); extern "C" void fl_scrollbar_draw(SCROLLBAR s); extern "C" void scrollbar_set_handle_hook(SCROLLBAR s, void * h); extern "C" int fl_scrollbar_handle(SCROLLBAR s, int e); - - extern "C" SCROLLBAR new_fl_scrollbar(int x, int y, int w, int h, char* label); extern "C" void free_fl_scrollbar(SCROLLBAR s); - - extern "C" int fl_scrollbar_get_linesize(SCROLLBAR s); extern "C" void fl_scrollbar_set_linesize(SCROLLBAR s, int t); extern "C" int fl_scrollbar_get_value(SCROLLBAR s); @@ -38,3 +35,4 @@ extern "C" void fl_scrollbar_set_value2(SCROLLBAR s, int p, int w, int f, int t) #endif + -- cgit