diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-07-19 22:40:37 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-07-19 22:40:37 +1000 |
commit | 21c86679217e38ecbd0ec933e006e508a1a42be1 (patch) | |
tree | e603734dfdc89e4605460ce76dab90d155aee810 /src/fltk_binding/c_fl_menu_bar.cpp | |
parent | d513fd809229d6d48bd061e494b08cafbbcc6f9c (diff) |
Starting to sketch the outline of menu widgets and callbacks
Diffstat (limited to 'src/fltk_binding/c_fl_menu_bar.cpp')
-rw-r--r-- | src/fltk_binding/c_fl_menu_bar.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/fltk_binding/c_fl_menu_bar.cpp b/src/fltk_binding/c_fl_menu_bar.cpp new file mode 100644 index 0000000..3349008 --- /dev/null +++ b/src/fltk_binding/c_fl_menu_bar.cpp @@ -0,0 +1,16 @@ + + +#include <FL/Fl_Menu_Bar.H> +#include "c_fl_menu_bar.h" + + +MENUBAR new_fl_menu_bar(int x, int y, int w, int h, char* label) { + Fl_Menu_Bar *m = new Fl_Menu_Bar(x, y, w, h, label); + return m; +} + + +void free_fl_menu_bar(MENUBAR m) { + delete reinterpret_cast<Fl_Menu_Bar*>(m); +} + |