summaryrefslogtreecommitdiff
path: root/src/c_fl_browser_.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-11-11 13:32:57 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-11-11 13:32:57 +1300
commit66fba2bf75c5fc3deb2690a6a66cf504f47b7652 (patch)
tree9687d5ae3073dc196aa448a2e367b7e8183864fa /src/c_fl_browser_.h
parent1e97ffcd6ec01eaa4b79d4903b721019e12657da (diff)
Fl_Browser_ binding added
Diffstat (limited to 'src/c_fl_browser_.h')
-rw-r--r--src/c_fl_browser_.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/c_fl_browser_.h b/src/c_fl_browser_.h
new file mode 100644
index 0000000..ed1157e
--- /dev/null
+++ b/src/c_fl_browser_.h
@@ -0,0 +1,83 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#ifndef FL_ABSTRACT_BROWSER_GUARD
+#define FL_ABSTRACT_BROWSER_GUARD
+
+
+extern "C" const int fl_sort_ascending;
+extern "C" const int fl_sort_descending;
+
+
+typedef void* ABSTRACTBROWSER;
+
+
+extern "C" ABSTRACTBROWSER new_fl_abstract_browser(int x, int y, int w, int h, char * label);
+extern "C" void free_fl_abstract_browser(ABSTRACTBROWSER b);
+
+
+extern "C" void * fl_abstract_browser_hscrollbar(ABSTRACTBROWSER b);
+extern "C" void * fl_abstract_browser_scrollbar(ABSTRACTBROWSER b);
+
+
+extern "C" int fl_abstract_browser_select(ABSTRACTBROWSER b, void * i, int v, int c);
+extern "C" int fl_abstract_browser_select_only(ABSTRACTBROWSER b, void * i, int c);
+extern "C" void * fl_abstract_browser_selection(ABSTRACTBROWSER b);
+extern "C" int fl_abstract_browser_deselect(ABSTRACTBROWSER b, int c);
+extern "C" void fl_abstract_browser_display(ABSTRACTBROWSER b, void * i);
+extern "C" int fl_abstract_browser_displayed(ABSTRACTBROWSER b, void * i);
+extern "C" void * fl_abstract_browser_find_item(ABSTRACTBROWSER b, int y);
+extern "C" void * fl_abstract_browser_top(ABSTRACTBROWSER b);
+extern "C" void fl_abstract_browser_sort(ABSTRACTBROWSER b, int f);
+
+
+extern "C" unsigned char fl_abstract_browser_get_has_scrollbar(ABSTRACTBROWSER b);
+extern "C" void fl_abstract_browser_set_has_scrollbar(ABSTRACTBROWSER b, unsigned char m);
+extern "C" int fl_abstract_browser_get_hposition(ABSTRACTBROWSER b);
+extern "C" void fl_abstract_browser_set_hposition(ABSTRACTBROWSER b, int p);
+extern "C" int fl_abstract_browser_get_position(ABSTRACTBROWSER b);
+extern "C" void fl_abstract_browser_set_position(ABSTRACTBROWSER b, int p);
+extern "C" void fl_abstract_browser_scrollbar_left(ABSTRACTBROWSER b);
+extern "C" void fl_abstract_browser_scrollbar_right(ABSTRACTBROWSER b);
+extern "C" int fl_abstract_browser_get_scrollbar_size(ABSTRACTBROWSER b);
+extern "C" void fl_abstract_browser_set_scrollbar_size(ABSTRACTBROWSER b, int s);
+
+
+extern "C" unsigned int fl_abstract_browser_get_textcolor(ABSTRACTBROWSER b);
+extern "C" void fl_abstract_browser_set_textcolor(ABSTRACTBROWSER b, unsigned int c);
+extern "C" int fl_abstract_browser_get_textfont(ABSTRACTBROWSER b);
+extern "C" void fl_abstract_browser_set_textfont(ABSTRACTBROWSER b, int f);
+extern "C" int fl_abstract_browser_get_textsize(ABSTRACTBROWSER b);
+extern "C" void fl_abstract_browser_set_textsize(ABSTRACTBROWSER b, int s);
+
+
+extern "C" void fl_abstract_browser_resize(ABSTRACTBROWSER b, int x, int y, int w, int h);
+extern "C" void fl_abstract_browser_bbox(ABSTRACTBROWSER b, int &x, int &y, int &w, int &h);
+extern "C" int fl_abstract_browser_leftedge(ABSTRACTBROWSER b);
+extern "C" void fl_abstract_browser_redraw_line(ABSTRACTBROWSER b, void * i);
+extern "C" void fl_abstract_browser_redraw_lines(ABSTRACTBROWSER b);
+
+
+extern "C" int fl_abstract_browser_full_width(ABSTRACTBROWSER b);
+extern "C" int fl_abstract_browser_full_height(ABSTRACTBROWSER b);
+extern "C" int fl_abstract_browser_incr_height(ABSTRACTBROWSER b);
+extern "C" int fl_abstract_browser_item_quick_height(ABSTRACTBROWSER b, void * i);
+
+
+extern "C" void fl_abstract_browser_new_list(ABSTRACTBROWSER b);
+extern "C" void fl_abstract_browser_inserting(ABSTRACTBROWSER b, void * a1, void * a2);
+extern "C" void fl_abstract_browser_deleting(ABSTRACTBROWSER b, void * item);
+extern "C" void fl_abstract_browser_replacing(ABSTRACTBROWSER b, void * a1, void * a2);
+extern "C" void fl_abstract_browser_swapping(ABSTRACTBROWSER b, void * a1, void * a2);
+
+
+extern "C" void fl_abstract_browser_draw(ABSTRACTBROWSER b);
+extern "C" int fl_abstract_browser_handle(ABSTRACTBROWSER b, int e);
+
+
+#endif
+
+