summaryrefslogtreecommitdiff
path: root/src/c_fl_menu.h
blob: 77dfb80d882689d621a36e2786d8f15622be5aa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29


#ifndef FL_MENU_GUARD
#define FL_MENU_GUARD


typedef void* MENU;
//  typedef void* MENUITEM;


extern "C" void menu_set_draw_hook(MENU m, void * d);


extern "C" MENU new_fl_menu(int x, int y, int w, int h, char* label);
extern "C" void free_fl_menu(MENU m);


extern "C" int fl_menu_add(MENU m, const char * t, unsigned long s, void * c, void * u, unsigned long f);
extern "C" const void * fl_menu_find_item(MENU m, const char * t);
extern "C" const void * fl_menu_mvalue(MENU m);


extern "C" int fl_menuitem_value(void * mi);
extern "C" void fl_menuitem_activate(void * mi);
extern "C" void fl_menuitem_deactivate(void * mi);


#endif