From 82eb9509e9e273e8e9e7e584553ccc49f476d4a3 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Mon, 20 Jan 2025 00:42:19 +1300 Subject: Filled holes in Fl_Text_Editor binding and make key/modifier/shortcut/flag representations more in line with C++ --- src/c_fl_sys_menu_bar.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/c_fl_sys_menu_bar.h') diff --git a/src/c_fl_sys_menu_bar.h b/src/c_fl_sys_menu_bar.h index 67e5f0d..1bde8f2 100644 --- a/src/c_fl_sys_menu_bar.h +++ b/src/c_fl_sys_menu_bar.h @@ -16,14 +16,11 @@ extern "C" void free_fl_sys_menu_bar(SYSMENUBAR m); extern "C" int fl_sys_menu_bar_add(SYSMENUBAR m, const char * t); -extern "C" int fl_sys_menu_bar_add2(SYSMENUBAR m, const char * t, - unsigned long s, void * u, unsigned long f); -extern "C" int fl_sys_menu_bar_add3(SYSMENUBAR m, const char * t, - const char * s, void * u, unsigned long f); -extern "C" int fl_sys_menu_bar_insert(SYSMENUBAR m, int p, const char * t, - unsigned long s, void * u, unsigned long f); +extern "C" int fl_sys_menu_bar_add2(SYSMENUBAR m, const char * t, int s, void * u, int f); +extern "C" int fl_sys_menu_bar_add3(SYSMENUBAR m, const char * t, const char * s, void * u, int f); +extern "C" int fl_sys_menu_bar_insert(SYSMENUBAR m, int p, const char * t, int s, void * u, int f); extern "C" int fl_sys_menu_bar_insert2(SYSMENUBAR m, int p, const char * t, - const char * s, void * u, unsigned long f); + const char * s, void * u, int f); extern "C" void fl_sys_menu_bar_set_menu(SYSMENUBAR m, void * d); extern "C" void fl_sys_menu_bar_remove(SYSMENUBAR m, int p); extern "C" void fl_sys_menu_bar_clear(SYSMENUBAR m); @@ -35,9 +32,9 @@ extern "C" const void * fl_sys_menu_bar_get_item(SYSMENUBAR m, int i); extern "C" void fl_sys_menu_bar_setonly(SYSMENUBAR m, void * mi); extern "C" void fl_sys_menu_bar_replace(SYSMENUBAR m, int i, const char * t); -extern "C" void fl_sys_menu_bar_shortcut(SYSMENUBAR m, int p, unsigned long s); -extern "C" unsigned long fl_sys_menu_bar_get_mode(SYSMENUBAR m, int p); -extern "C" void fl_sys_menu_bar_set_mode(SYSMENUBAR m, int p, unsigned long f); +extern "C" void fl_sys_menu_bar_shortcut(SYSMENUBAR m, int p, int s); +extern "C" int fl_sys_menu_bar_get_mode(SYSMENUBAR m, int p); +extern "C" void fl_sys_menu_bar_set_mode(SYSMENUBAR m, int p, int f); extern "C" void fl_sys_menu_bar_global(SYSMENUBAR m); -- cgit