summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_menu.cpp
blob: 0455e51de17e3cfa3243c1ae23b64d8b800e1da3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23


#include <FL/Fl_Menu_.H>
#include <FL/Fl_Menu_Item.H>
#include "c_fl_menu.h"


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);
}


const void * fl_menu_mvalue(MENU m) {
    return reinterpret_cast<Fl_Menu_*>(m)->mvalue();
}




int fl_menuitem_value(void * mi) {
    return reinterpret_cast<Fl_Menu_Item*>(mi)->value();
}