summaryrefslogtreecommitdiff
path: root/src/c_fl_button.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-09 14:58:19 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-09 14:58:19 +1300
commit17473af7e8ed13e0a9399a69442f9839e5d83aef (patch)
tree6cd9adf8cde65847f34fbd1cf0ac61c3ad5936ea /src/c_fl_button.h
parent3a9028302447ad84363c580b2152f30417186667 (diff)
Used C FFI to make Extra_Init and Extra_Final calls more consistent
Diffstat (limited to 'src/c_fl_button.h')
-rw-r--r--src/c_fl_button.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/c_fl_button.h b/src/c_fl_button.h
index d943841..9c3ecad 100644
--- a/src/c_fl_button.h
+++ b/src/c_fl_button.h
@@ -8,27 +8,23 @@
#define FL_BUTTON_GUARD
+extern "C" void fl_button_extra_init(void * adaobj, int x, int y, int w, int h, const char * label);
+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);
-
-
extern "C" int fl_button_get_state(BUTTON b);
extern "C" void fl_button_set_state(BUTTON b, int s);
extern "C" void fl_button_set_only(BUTTON b);
@@ -42,3 +38,4 @@ extern "C" void fl_button_set_shortcut(BUTTON b, int k);
#endif
+