summaryrefslogtreecommitdiff
path: root/src/c_fl_select_browser.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-12-19 20:03:55 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-12-19 20:03:55 +1300
commitc7e4f58a5fb0d62c4af3b82dabb1b52e72f99743 (patch)
treeada0d118bf1bd4676e5db99f2a4c14139bc8bb63 /src/c_fl_select_browser.h
parentdd8ed7c495f073235646d180916df3c2eee04fd3 (diff)
Added Fl_Select_Browser
Diffstat (limited to 'src/c_fl_select_browser.h')
-rw-r--r--src/c_fl_select_browser.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/c_fl_select_browser.h b/src/c_fl_select_browser.h
new file mode 100644
index 0000000..80d2437
--- /dev/null
+++ b/src/c_fl_select_browser.h
@@ -0,0 +1,70 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#ifndef FL_SELECT_BROWSER_GUARD
+#define FL_SELECT_BROWSER_GUARD
+
+
+typedef void* SELECTBROWSER;
+
+
+extern "C" SELECTBROWSER new_fl_select_browser(int x, int y, int w, int h, char * label);
+extern "C" void free_fl_select_browser(SELECTBROWSER b);
+
+
+// reimp below here
+
+extern "C" int fl_select_browser_full_height(SELECTBROWSER c);
+extern "C" int fl_select_browser_incr_height(SELECTBROWSER c);
+
+
+extern "C" int fl_select_browser_item_width(SELECTBROWSER b, void * item);
+extern "C" int fl_select_browser_item_height(SELECTBROWSER b, void * item);
+extern "C" void * fl_select_browser_item_first(SELECTBROWSER b);
+extern "C" void * fl_select_browser_item_last(SELECTBROWSER b);
+extern "C" void * fl_select_browser_item_next(SELECTBROWSER b, void * item);
+extern "C" void * fl_select_browser_item_prev(SELECTBROWSER b, void * item);
+extern "C" void * fl_select_browser_item_at(SELECTBROWSER b, int index);
+extern "C" void fl_select_browser_item_select(SELECTBROWSER b, void * item, int val=1);
+extern "C" int fl_select_browser_item_selected(SELECTBROWSER b, void * item);
+extern "C" void fl_select_browser_item_swap(SELECTBROWSER b, void * x, void * y);
+extern "C" const char * fl_select_browser_item_text(SELECTBROWSER b, void * item);
+extern "C" void fl_select_browser_item_draw(SELECTBROWSER b, void * item, int x, int y, int w, int h);
+
+
+extern "C" int fl_select_browser_lineno(SELECTBROWSER b, void * item);
+
+
+extern "C" void * fl_select_browser_selection(SELECTBROWSER c);
+extern "C" int fl_select_browser_displayed2(SELECTBROWSER c, void * i);
+extern "C" void * fl_select_browser_find_item(SELECTBROWSER c, int y);
+extern "C" void * fl_select_browser_top(SELECTBROWSER c);
+
+
+extern "C" void fl_select_browser_bbox(SELECTBROWSER c, int &x, int &y, int &w, int &h);
+extern "C" int fl_select_browser_leftedge(SELECTBROWSER c);
+extern "C" void fl_select_browser_redraw_line(SELECTBROWSER c, void * i);
+extern "C" void fl_select_browser_redraw_lines(SELECTBROWSER c);
+
+
+extern "C" int fl_select_browser_full_width(SELECTBROWSER c);
+extern "C" int fl_select_browser_item_quick_height(SELECTBROWSER c, void * i);
+
+
+extern "C" void fl_select_browser_new_list(SELECTBROWSER b);
+extern "C" void fl_select_browser_inserting(SELECTBROWSER b, void * a1, void * a2);
+extern "C" void fl_select_browser_deleting(SELECTBROWSER b, void * item);
+extern "C" void fl_select_browser_replacing(SELECTBROWSER b, void * a1, void * a2);
+extern "C" void fl_select_browser_swapping(SELECTBROWSER b, void * a1, void * a2);
+
+
+extern "C" void fl_select_browser_draw(SELECTBROWSER b);
+extern "C" int fl_select_browser_handle(SELECTBROWSER b, int e);
+
+
+#endif
+
+