From e93b9bbc02e2791f3a35b6f077fcbb8514c28aed Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 12 Jan 2025 01:14:58 +1300 Subject: Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there --- src/c_fl_help_view.h | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'src/c_fl_help_view.h') diff --git a/src/c_fl_help_view.h b/src/c_fl_help_view.h index b76d907..b16b344 100644 --- a/src/c_fl_help_view.h +++ b/src/c_fl_help_view.h @@ -8,27 +8,13 @@ #define FL_HELP_VIEW_GUARD - - typedef void* HELPVIEW; - - -extern "C" void help_view_set_draw_hook(HELPVIEW v, void * d); -extern "C" void fl_help_view_draw(HELPVIEW v); -extern "C" void help_view_set_handle_hook(HELPVIEW v, void * h); -extern "C" int fl_help_view_handle(HELPVIEW v, int e); - - - - extern "C" HELPVIEW new_fl_help_view(int x, int y, int w, int h, char * label); extern "C" void free_fl_help_view(HELPVIEW v); - - extern "C" void fl_help_view_clear_selection(HELPVIEW v); extern "C" void fl_help_view_select_all(HELPVIEW v); @@ -54,6 +40,7 @@ extern "C" int fl_help_view_get_scrollbar_size(HELPVIEW v); extern "C" void fl_help_view_set_scrollbar_size(HELPVIEW v, int s); extern "C" int fl_help_view_get_size(HELPVIEW v); extern "C" void fl_help_view_set_size(HELPVIEW v, int w, int h); +extern "C" void fl_help_view_resize(HELPVIEW v, int x, int y, int w, int h); extern "C" unsigned int fl_help_view_get_textcolor(HELPVIEW v); extern "C" void fl_help_view_set_textcolor(HELPVIEW v, unsigned int c); extern "C" int fl_help_view_get_textfont(HELPVIEW v); @@ -62,6 +49,10 @@ extern "C" int fl_help_view_get_textsize(HELPVIEW v); extern "C" void fl_help_view_set_textsize(HELPVIEW v, int s); +extern "C" void fl_help_view_draw(HELPVIEW v); +extern "C" int fl_help_view_handle(HELPVIEW v, int e); + + #endif -- cgit