summaryrefslogtreecommitdiff
path: root/src/c_fl_check_browser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_fl_check_browser.h')
-rw-r--r--src/c_fl_check_browser.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/src/c_fl_check_browser.h b/src/c_fl_check_browser.h
new file mode 100644
index 0000000..c74808b
--- /dev/null
+++ b/src/c_fl_check_browser.h
@@ -0,0 +1,82 @@
+
+
+// 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);
+
+
+// reimp below here
+
+extern "C" void * fl_check_browser_selection(CHECKBROWSER c);
+extern "C" int fl_check_browser_displayed(CHECKBROWSER c, void * i);
+extern "C" void * fl_check_browser_find_item(CHECKBROWSER c, int y);
+extern "C" void * fl_check_browser_top(CHECKBROWSER c);
+
+
+extern "C" void fl_check_browser_bbox(CHECKBROWSER c, int &x, int &y, int &w, int &h);
+extern "C" int fl_check_browser_leftedge(CHECKBROWSER c);
+extern "C" void fl_check_browser_redraw_line(CHECKBROWSER c, void * i);
+extern "C" void fl_check_browser_redraw_lines(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_new_list(CHECKBROWSER c);
+extern "C" void fl_check_browser_inserting(CHECKBROWSER c, void * a1, void * a2);
+extern "C" void fl_check_browser_deleting(CHECKBROWSER c, void * item);
+extern "C" void fl_check_browser_replacing(CHECKBROWSER c, void * a1, void * a2);
+extern "C" void fl_check_browser_swapping(CHECKBROWSER c, void * a1, void * a2);
+
+
+extern "C" void fl_check_browser_draw(CHECKBROWSER c);
+extern "C" int fl_check_browser_handle(CHECKBROWSER c, int e);
+
+
+#endif
+
+