summaryrefslogtreecommitdiff
path: root/src/c_fl_menuitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_fl_menuitem.h')
-rw-r--r--src/c_fl_menuitem.h73
1 files changed, 37 insertions, 36 deletions
diff --git a/src/c_fl_menuitem.h b/src/c_fl_menuitem.h
index 665cace..eefd645 100644
--- a/src/c_fl_menuitem.h
+++ b/src/c_fl_menuitem.h
@@ -8,58 +8,59 @@
#define FL_MENU_ITEM_GUARD
+typedef void* MENUITEM;
-typedef void* MENU_ITEM;
-
-
-
-
+extern "C" void * null_fl_menu_item();
extern "C" void * new_fl_menu_item(char * t, void * c, unsigned long s, unsigned long f);
-extern "C" void free_fl_menu_item(MENU_ITEM mi);
+extern "C" void free_fl_menu_item(MENUITEM mi);
+extern "C" void * fl_menu_item_get_user_data(MENUITEM mi);
+extern "C" void fl_menu_item_set_callback(MENUITEM mi, void * c);
+extern "C" void fl_menu_item_do_callback(MENUITEM mi, void * w);
-extern "C" void * fl_menu_item_get_user_data(MENU_ITEM mi);
-extern "C" void fl_menu_item_set_user_data(MENU_ITEM mi, void * c);
-extern "C" void fl_menu_item_do_callback(MENU_ITEM mi, void * w);
+extern "C" int fl_menu_item_checkbox(MENUITEM mi);
+extern "C" int fl_menu_item_radio(MENUITEM mi);
+extern "C" int fl_menu_item_submenu(MENUITEM mi);
+extern "C" int fl_menu_item_value(MENUITEM mi);
+extern "C" void fl_menu_item_set(MENUITEM mi);
+extern "C" void fl_menu_item_clear(MENUITEM mi);
+extern "C" void fl_menu_item_setonly(MENUITEM mi);
-extern "C" int fl_menu_item_checkbox(MENU_ITEM mi);
-extern "C" int fl_menu_item_radio(MENU_ITEM mi);
-extern "C" int fl_menu_item_value(MENU_ITEM mi);
-extern "C" void fl_menu_item_set(MENU_ITEM mi);
-extern "C" void fl_menu_item_clear(MENU_ITEM mi);
-extern "C" void fl_menu_item_setonly(MENU_ITEM mi);
+extern "C" const char * fl_menu_item_get_label(MENUITEM mi);
+extern "C" void fl_menu_item_set_label(MENUITEM mi, const char *t);
+extern "C" void fl_menu_item_set_label2(MENUITEM mi, int k, const char * t);
+extern "C" unsigned int fl_menu_item_get_labelcolor(MENUITEM mi);
+extern "C" void fl_menu_item_set_labelcolor(MENUITEM mi, unsigned int c);
+extern "C" int fl_menu_item_get_labelfont(MENUITEM mi);
+extern "C" void fl_menu_item_set_labelfont(MENUITEM mi, int f);
+extern "C" int fl_menu_item_get_labelsize(MENUITEM mi);
+extern "C" void fl_menu_item_set_labelsize(MENUITEM mi, int s);
+extern "C" int fl_menu_item_get_labeltype(MENUITEM mi);
+extern "C" void fl_menu_item_set_labeltype(MENUITEM mi, int t);
-extern "C" const char * fl_menu_item_get_label(MENU_ITEM mi);
-extern "C" void fl_menu_item_set_label(MENU_ITEM mi, const char *t);
-extern "C" unsigned int fl_menu_item_get_labelcolor(MENU_ITEM mi);
-extern "C" void fl_menu_item_set_labelcolor(MENU_ITEM mi, unsigned int c);
-extern "C" int fl_menu_item_get_labelfont(MENU_ITEM mi);
-extern "C" void fl_menu_item_set_labelfont(MENU_ITEM mi, int f);
-extern "C" int fl_menu_item_get_labelsize(MENU_ITEM mi);
-extern "C" void fl_menu_item_set_labelsize(MENU_ITEM mi, int s);
-extern "C" int fl_menu_item_get_labeltype(MENU_ITEM mi);
-extern "C" void fl_menu_item_set_labeltype(MENU_ITEM mi, int t);
+extern "C" int fl_menu_item_get_shortcut(MENUITEM mi);
+extern "C" void fl_menu_item_set_shortcut(MENUITEM mi, int s);
+extern "C" unsigned long fl_menu_item_get_flags(MENUITEM mi);
+extern "C" void fl_menu_item_set_flags(MENUITEM mi, unsigned long f);
-extern "C" int fl_menu_item_get_shortcut(MENU_ITEM mi);
-extern "C" void fl_menu_item_set_shortcut(MENU_ITEM mi, int s);
-extern "C" unsigned long fl_menu_item_get_flags(MENU_ITEM mi);
-extern "C" void fl_menu_item_set_flags(MENU_ITEM mi, unsigned long f);
+extern "C" void fl_menu_item_image(MENUITEM mi, void * i);
-extern "C" void fl_menu_item_activate(MENU_ITEM mi);
-extern "C" void fl_menu_item_deactivate(MENU_ITEM mi);
-extern "C" void fl_menu_item_show(MENU_ITEM mi);
-extern "C" void fl_menu_item_hide(MENU_ITEM mi);
-extern "C" int fl_menu_item_active(MENU_ITEM mi);
-extern "C" int fl_menu_item_visible(MENU_ITEM mi);
-extern "C" int fl_menu_item_activevisible(MENU_ITEM mi);
+extern "C" void fl_menu_item_activate(MENUITEM mi);
+extern "C" void fl_menu_item_deactivate(MENUITEM mi);
+extern "C" void fl_menu_item_show(MENUITEM mi);
+extern "C" void fl_menu_item_hide(MENUITEM mi);
+extern "C" int fl_menu_item_active(MENUITEM mi);
+extern "C" int fl_menu_item_visible(MENUITEM mi);
+extern "C" int fl_menu_item_activevisible(MENUITEM mi);
#endif
+