diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-12 01:14:58 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-12 01:14:58 +1300 |
commit | e93b9bbc02e2791f3a35b6f077fcbb8514c28aed (patch) | |
tree | 3661530027db6809a9cbad7b2477416009e00787 /src/c_fl_menu.h | |
parent | 53aa8144851913994b963ed611cca8885b8f9a9e (diff) |
Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there
Diffstat (limited to 'src/c_fl_menu.h')
-rw-r--r-- | src/c_fl_menu.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/c_fl_menu.h b/src/c_fl_menu.h index 68463ee..b4265aa 100644 --- a/src/c_fl_menu.h +++ b/src/c_fl_menu.h @@ -8,27 +8,17 @@ #define FL_MENU_GUARD - - typedef void* MENU; - - -extern "C" void menu_set_draw_hook(MENU m, void * d); -extern "C" void menu_set_handle_hook(MENU m, void * h); - - - - 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" int fl_menu_insert(MENU m, int p, const char * t, unsigned long s, void * c, void * u, unsigned long f); +extern "C" int fl_menu_add(MENU m, const char * t, unsigned long s, + void * c, void * u, unsigned long f); +extern "C" int fl_menu_insert(MENU m, int p, const char * t, unsigned long s, + void * c, void * u, unsigned long f); extern "C" void fl_menu_remove(MENU m, int p); extern "C" void fl_menu_clear(MENU m); @@ -68,7 +58,10 @@ extern "C" const void * fl_menu_pulldown(MENU m, int x, int y, int w, int h, int extern "C" void fl_menu_draw_item(MENU m, int i, int x, int y, int w, int h, int s); +extern "C" void fl_menu_draw(MENU m); +extern "C" int fl_menu_handle(MENU m, int e); #endif + |