diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-09-15 03:41:54 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-09-15 03:41:54 +1000 |
commit | bfcc3811a3ce55cafa6f7809d0d92c87238ea032 (patch) | |
tree | 6727c02fc76f00580ce7a238ea9cb5f2656e7918 /src/fltk_binding/c_fl_menu.cpp | |
parent | 6c61d634be9aa3cd30c1bf0254eee5d36a37eeb5 (diff) |
Menu callbacks working, also some quick testing code that'll probably get deleted later because wynaut
Diffstat (limited to 'src/fltk_binding/c_fl_menu.cpp')
-rw-r--r-- | src/fltk_binding/c_fl_menu.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fltk_binding/c_fl_menu.cpp b/src/fltk_binding/c_fl_menu.cpp index 457d4f1..e8cbe58 100644 --- a/src/fltk_binding/c_fl_menu.cpp +++ b/src/fltk_binding/c_fl_menu.cpp @@ -4,5 +4,7 @@ #include "c_fl_menu.h" -// wheeee, placeholders +int fl_menu_add(MENU m, const char * t, unsigned long s, void * c, void * u, unsigned long f) { + return reinterpret_cast<Fl_Menu_*>(m)->add(t, s, reinterpret_cast<Fl_Callback_p>(c), u, f); +} |