summaryrefslogtreecommitdiff
path: root/body/c_fl_widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'body/c_fl_widget.h')
-rw-r--r--body/c_fl_widget.h116
1 files changed, 116 insertions, 0 deletions
diff --git a/body/c_fl_widget.h b/body/c_fl_widget.h
new file mode 100644
index 0000000..9634ba4
--- /dev/null
+++ b/body/c_fl_widget.h
@@ -0,0 +1,116 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#ifndef FL_WIDGET_GUARD
+#define FL_WIDGET_GUARD
+
+
+typedef void* WIDGET;
+
+
+extern "C" WIDGET new_fl_widget(int x, int y, int w, int h, char* label);
+extern "C" void free_fl_widget(WIDGET w);
+
+
+extern "C" void * fl_widget_get_user_data(WIDGET w);
+extern "C" void fl_widget_set_user_data(WIDGET w, void * d);
+
+
+extern "C" void fl_widget_activate(WIDGET w);
+extern "C" void fl_widget_deactivate(WIDGET w);
+extern "C" int fl_widget_active(WIDGET w);
+extern "C" int fl_widget_active_r(WIDGET w);
+extern "C" void fl_widget_set_active(WIDGET w);
+extern "C" void fl_widget_clear_active(WIDGET w);
+
+
+extern "C" unsigned int fl_widget_changed(WIDGET w);
+extern "C" void fl_widget_set_changed(WIDGET w);
+extern "C" void fl_widget_clear_changed(WIDGET w);
+extern "C" int fl_widget_output(WIDGET w);
+extern "C" void fl_widget_set_output(WIDGET w);
+extern "C" void fl_widget_clear_output(WIDGET w);
+extern "C" int fl_widget_visible(WIDGET w);
+extern "C" int fl_widget_visible_r(WIDGET w);
+extern "C" void fl_widget_set_visible(WIDGET w);
+extern "C" void fl_widget_clear_visible(WIDGET w);
+
+
+extern "C" int fl_widget_get_visible_focus(WIDGET w);
+extern "C" void fl_widget_set_visible_focus(WIDGET w, int f);
+extern "C" int fl_widget_take_focus(WIDGET w);
+extern "C" int fl_widget_takesevents(WIDGET w);
+
+
+extern "C" unsigned int fl_widget_get_color(WIDGET w);
+extern "C" void fl_widget_set_color(WIDGET w, unsigned int b);
+extern "C" unsigned int fl_widget_get_selection_color(WIDGET w);
+extern "C" void fl_widget_set_selection_color(WIDGET w, unsigned int c);
+
+
+extern "C" void * fl_widget_get_parent(WIDGET w);
+extern "C" int fl_widget_contains(WIDGET w, WIDGET i);
+extern "C" int fl_widget_inside(WIDGET w, WIDGET p);
+extern "C" void * fl_widget_window(WIDGET w);
+extern "C" void * fl_widget_top_window(WIDGET w);
+extern "C" void * fl_widget_top_window_offset(WIDGET w, int &x, int &y);
+
+
+extern "C" unsigned int fl_widget_get_align(WIDGET w);
+extern "C" void fl_widget_set_align(WIDGET w, unsigned int a);
+extern "C" int fl_widget_get_box(WIDGET w);
+extern "C" void fl_widget_set_box(WIDGET w, int b);
+extern "C" const char * fl_widget_tooltip(WIDGET w);
+extern "C" void fl_widget_copy_tooltip(WIDGET w, const char * t);
+
+
+extern "C" const char* fl_widget_get_label(WIDGET w);
+extern "C" void fl_widget_set_label(WIDGET w, const char* t);
+extern "C" unsigned int fl_widget_get_labelcolor(WIDGET w);
+extern "C" void fl_widget_set_labelcolor(WIDGET w, unsigned int v);
+extern "C" int fl_widget_get_labelfont(WIDGET w);
+extern "C" void fl_widget_set_labelfont(WIDGET w, int f);
+extern "C" int fl_widget_get_labelsize(WIDGET w);
+extern "C" void fl_widget_set_labelsize(WIDGET w, int s);
+extern "C" int fl_widget_get_labeltype(WIDGET w);
+extern "C" void fl_widget_set_labeltype(WIDGET w, int l);
+extern "C" void fl_widget_measure_label(WIDGET w, int &d, int &h);
+
+
+extern "C" void fl_widget_set_callback(WIDGET w, void * cb);
+extern "C" unsigned int fl_widget_get_when(WIDGET w);
+extern "C" void fl_widget_set_when(WIDGET w, unsigned int c);
+
+
+extern "C" int fl_widget_get_x(WIDGET w);
+extern "C" int fl_widget_get_y(WIDGET w);
+extern "C" int fl_widget_get_w(WIDGET w);
+extern "C" int fl_widget_get_h(WIDGET w);
+extern "C" void fl_widget_size(WIDGET w, int d, int h);
+extern "C" void fl_widget_position(WIDGET w, int x, int y);
+
+
+extern "C" void fl_widget_set_image(WIDGET w, void * img);
+extern "C" void fl_widget_set_deimage(WIDGET w, void * img);
+
+
+extern "C" unsigned char fl_widget_get_type(WIDGET w);
+extern "C" void fl_widget_set_type(WIDGET w, unsigned char t);
+
+
+extern "C" int fl_widget_damage(WIDGET w);
+extern "C" void fl_widget_set_damage(WIDGET w, int t);
+extern "C" void fl_widget_set_damage2(WIDGET w, int t, int x, int y, int d, int h);
+extern "C" void fl_widget_draw(WIDGET w);
+extern "C" void fl_widget_draw_label(WIDGET w, int x, int y, int d, int h, unsigned int a);
+extern "C" void fl_widget_redraw(WIDGET w);
+extern "C" void fl_widget_redraw_label(WIDGET w);
+extern "C" int fl_widget_handle(WIDGET w, int e);
+
+
+#endif
+
+