summaryrefslogtreecommitdiff
path: root/body/c_fl_check_browser.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-21 21:04:54 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-21 21:04:54 +1300
commitb4438b2fbe895694be98e6e8426103deefc51448 (patch)
tree760d86cd7c06420a91dad102cc9546aee73146fc /body/c_fl_check_browser.h
parenta4703a65b015140cd4a7a985db66264875ade734 (diff)
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_check_browser.h')
-rw-r--r--body/c_fl_check_browser.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/body/c_fl_check_browser.h b/body/c_fl_check_browser.h
new file mode 100644
index 0000000..e9e832e
--- /dev/null
+++ b/body/c_fl_check_browser.h
@@ -0,0 +1,61 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#ifndef FL_CHECK_BROWSER_GUARD
+#define FL_CHECK_BROWSER_GUARD
+
+
+typedef void* CHECKBROWSER;
+
+
+extern "C" CHECKBROWSER new_fl_check_browser(int x, int y, int w, int h, char * label);
+extern "C" void free_fl_check_browser(CHECKBROWSER c);
+
+
+extern "C" int fl_check_browser_add(CHECKBROWSER c, const char * s, int b);
+extern "C" int fl_check_browser_remove(CHECKBROWSER c, int i);
+extern "C" void fl_check_browser_clear(CHECKBROWSER c);
+extern "C" int fl_check_browser_nitems(CHECKBROWSER c);
+
+
+extern "C" void fl_check_browser_check_all(CHECKBROWSER c);
+extern "C" void fl_check_browser_check_none(CHECKBROWSER c);
+extern "C" int fl_check_browser_get_checked(CHECKBROWSER c, int i);
+extern "C" void fl_check_browser_set_checked(CHECKBROWSER c, int i, int b);
+extern "C" int fl_check_browser_nchecked(CHECKBROWSER c);
+
+
+extern "C" const char * fl_check_browser_text(CHECKBROWSER c, int i);
+extern "C" int fl_check_browser_value(CHECKBROWSER c);
+
+
+extern "C" int fl_check_browser_full_width(CHECKBROWSER c);
+extern "C" int fl_check_browser_full_height(CHECKBROWSER c);
+extern "C" int fl_check_browser_incr_height(CHECKBROWSER c);
+extern "C" int fl_check_browser_item_quick_height(CHECKBROWSER c, void * i);
+
+
+extern "C" int fl_check_browser_item_width(CHECKBROWSER c, void * i);
+extern "C" int fl_check_browser_item_height(CHECKBROWSER c, void * i);
+extern "C" void * fl_check_browser_item_first(CHECKBROWSER c);
+// missing item_last
+extern "C" void * fl_check_browser_item_next(CHECKBROWSER c, void * i);
+extern "C" void * fl_check_browser_item_prev(CHECKBROWSER c, void * i);
+// missing item_at
+extern "C" void fl_check_browser_item_select(CHECKBROWSER c, void * i, int v);
+extern "C" int fl_check_browser_item_selected(CHECKBROWSER c, void * i);
+// missing item_swap
+// missing item_text
+extern "C" void fl_check_browser_item_draw(CHECKBROWSER c, void * item, int x, int y, int w, int h);
+
+
+extern "C" void fl_check_browser_draw(CHECKBROWSER c);
+extern "C" int fl_check_browser_handle(CHECKBROWSER c, int e);
+
+
+#endif
+
+