From fa595e9e5b9c7692f21df548a0d06b5a3671fbc1 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Mon, 14 Nov 2016 14:43:10 +1100 Subject: Edit and search menu items now grey themselves out when appropriate --- c_fl_menu.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'c_fl_menu.cpp') diff --git a/c_fl_menu.cpp b/c_fl_menu.cpp index 0455e51..f8c7b9e 100644 --- a/c_fl_menu.cpp +++ b/c_fl_menu.cpp @@ -10,6 +10,11 @@ int fl_menu_add(MENU m, const char * t, unsigned long s, void * c, void * u, uns } +const void * fl_menu_find_item(MENU m, const char * t) { + return reinterpret_cast(m)->find_item(t); +} + + const void * fl_menu_mvalue(MENU m) { return reinterpret_cast(m)->mvalue(); } @@ -21,3 +26,13 @@ int fl_menuitem_value(void * mi) { return reinterpret_cast(mi)->value(); } + +void fl_menuitem_activate(void * mi) { + reinterpret_cast(mi)->activate(); +} + + +void fl_menuitem_deactivate(void * mi) { + reinterpret_cast(mi)->deactivate(); +} + -- cgit