From ab25b51036a810c326b51a230700971c0f431f74 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 19 Jul 2016 22:40:37 +1000 Subject: Starting to sketch the outline of menu widgets and callbacks --- c_fl_menu_bar.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 c_fl_menu_bar.cpp (limited to 'c_fl_menu_bar.cpp') diff --git a/c_fl_menu_bar.cpp b/c_fl_menu_bar.cpp new file mode 100644 index 0000000..3349008 --- /dev/null +++ b/c_fl_menu_bar.cpp @@ -0,0 +1,16 @@ + + +#include +#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(m); +} + -- cgit