summaryrefslogtreecommitdiff
path: root/body/c_fl_hold_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_hold_browser.h
parenta4703a65b015140cd4a7a985db66264875ade734 (diff)
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_hold_browser.h')
-rw-r--r--body/c_fl_hold_browser.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/body/c_fl_hold_browser.h b/body/c_fl_hold_browser.h
new file mode 100644
index 0000000..6f295c6
--- /dev/null
+++ b/body/c_fl_hold_browser.h
@@ -0,0 +1,48 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#ifndef FL_HOLD_BROWSER_GUARD
+#define FL_HOLD_BROWSER_GUARD
+
+
+typedef void* HOLDBROWSER;
+
+
+extern "C" HOLDBROWSER new_fl_hold_browser(int x, int y, int w, int h, char * label);
+extern "C" void free_fl_hold_browser(HOLDBROWSER b);
+
+
+// reimp below here
+
+extern "C" int fl_hold_browser_full_height(HOLDBROWSER c);
+extern "C" int fl_hold_browser_incr_height(HOLDBROWSER c);
+
+
+extern "C" int fl_hold_browser_item_width(HOLDBROWSER b, void * item);
+extern "C" int fl_hold_browser_item_height(HOLDBROWSER b, void * item);
+extern "C" void * fl_hold_browser_item_first(HOLDBROWSER b);
+extern "C" void * fl_hold_browser_item_last(HOLDBROWSER b);
+extern "C" void * fl_hold_browser_item_next(HOLDBROWSER b, void * item);
+extern "C" void * fl_hold_browser_item_prev(HOLDBROWSER b, void * item);
+extern "C" void * fl_hold_browser_item_at(HOLDBROWSER b, int index);
+extern "C" void fl_hold_browser_item_select(HOLDBROWSER b, void * item, int val=1);
+extern "C" int fl_hold_browser_item_selected(HOLDBROWSER b, void * item);
+extern "C" void fl_hold_browser_item_swap(HOLDBROWSER b, void * x, void * y);
+extern "C" const char * fl_hold_browser_item_text(HOLDBROWSER b, void * item);
+extern "C" void fl_hold_browser_item_draw(HOLDBROWSER b, void * item, int x, int y, int w, int h);
+
+
+extern "C" int fl_hold_browser_full_width(HOLDBROWSER c);
+extern "C" int fl_hold_browser_item_quick_height(HOLDBROWSER c, void * i);
+
+
+extern "C" void fl_hold_browser_draw(HOLDBROWSER b);
+extern "C" int fl_hold_browser_handle(HOLDBROWSER b, int e);
+
+
+#endif
+
+