diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-09 14:58:19 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-09 14:58:19 +1300 |
commit | 17473af7e8ed13e0a9399a69442f9839e5d83aef (patch) | |
tree | 6cd9adf8cde65847f34fbd1cf0ac61c3ad5936ea /src/c_fl_button.cpp | |
parent | 3a9028302447ad84363c580b2152f30417186667 (diff) |
Used C FFI to make Extra_Init and Extra_Final calls more consistent
Diffstat (limited to 'src/c_fl_button.cpp')
-rw-r--r-- | src/c_fl_button.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/c_fl_button.cpp b/src/c_fl_button.cpp index 083c869..07d5c64 100644 --- a/src/c_fl_button.cpp +++ b/src/c_fl_button.cpp @@ -11,6 +11,21 @@ +// Telprot stopovers + +extern "C" void button_extra_init_hook(void * aobj, int x, int y, int w, int h, const char * l); +void fl_button_extra_init(void * adaobj, int x, int y, int w, int h, const char * label) { + button_extra_init_hook(adaobj, x, y, w, h, label); +} + +extern "C" void button_extra_final_hook(void * aobj); +void fl_button_extra_final(void * adaobj) { + button_extra_final_hook(adaobj); +} + + + + class My_Button : public Fl_Button { public: using Fl_Button::Fl_Button; |