From b4438b2fbe895694be98e6e8426103deefc51448 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 21 Jan 2025 21:04:54 +1300 Subject: Split public API and private implementation files into different directories --- body/c_fl_group.h | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 body/c_fl_group.h (limited to 'body/c_fl_group.h') diff --git a/body/c_fl_group.h b/body/c_fl_group.h new file mode 100644 index 0000000..af4559d --- /dev/null +++ b/body/c_fl_group.h @@ -0,0 +1,59 @@ + + +// Programmed by Jedidiah Barber +// Released into the public domain + + +#ifndef FL_GROUP_GUARD +#define FL_GROUP_GUARD + +#include "c_fl_widget.h" + + +typedef void* GROUP; + + +extern "C" GROUP new_fl_group(int x, int y, int w, int h, char* label); +extern "C" void free_fl_group(GROUP g); + + +extern "C" void fl_group_add(GROUP g, WIDGET item); +extern "C" void fl_group_insert(GROUP g, WIDGET item, int place); +extern "C" void fl_group_insert2(GROUP g, WIDGET item, WIDGET before); +extern "C" void fl_group_remove(GROUP g, WIDGET item); +extern "C" void fl_group_remove2(GROUP g, int place); + + +extern "C" void * fl_group_child(GROUP g, int place); +extern "C" int fl_group_find(GROUP g, WIDGET item); +extern "C" int fl_group_children(GROUP g); + + +extern "C" unsigned int fl_group_get_clip_children(GROUP g); +extern "C" void fl_group_set_clip_children(GROUP g, int c); + + +extern "C" void fl_group_add_resizable(GROUP g, WIDGET w); +extern "C" void * fl_group_get_resizable(GROUP g); +extern "C" void fl_group_set_resizable(GROUP g, WIDGET item); +extern "C" void fl_group_init_sizes(GROUP g); +extern "C" void fl_group_resize(GROUP g, int x, int y, int w, int h); + + +extern "C" void * fl_group_get_current(); +extern "C" void fl_group_set_current(GROUP g); +extern "C" void fl_group_begin(GROUP g); +extern "C" void fl_group_end(GROUP g); + + +extern "C" void fl_group_draw(GROUP g); +extern "C" void fl_group_draw_child(GROUP g, WIDGET w); +extern "C" void fl_group_draw_children(GROUP g); +extern "C" void fl_group_draw_outside_label(GROUP g, WIDGET w); +extern "C" void fl_group_update_child(GROUP g, WIDGET w); +extern "C" int fl_group_handle(GROUP g, int e); + + +#endif + + -- cgit