summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_widget.h
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-09-07 02:15:57 +1000
committerJed Barber <jjbarber@y7mail.com>2016-09-07 02:15:57 +1000
commit6e16a790b13ec50390c3b019598c1fa649f32c98 (patch)
tree2ce6f1b773b90c51e6b4dfc2974da6464b1bb29c /src/fltk_binding/c_fl_widget.h
parent48f31d9f71523aa9cc027c16e5c8cd48ff1e792a (diff)
Now using widget user data to refer back to Ada side of things, will enable easy implementation of callbacks
Diffstat (limited to 'src/fltk_binding/c_fl_widget.h')
-rw-r--r--src/fltk_binding/c_fl_widget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fltk_binding/c_fl_widget.h b/src/fltk_binding/c_fl_widget.h
index bfca2a1..8f99d26 100644
--- a/src/fltk_binding/c_fl_widget.h
+++ b/src/fltk_binding/c_fl_widget.h
@@ -7,6 +7,10 @@
typedef void* WIDGET;
+extern "C" void * fl_widget_get_user_data(WIDGET w);
+extern "C" void fl_widget_set_user_data(WIDGET w, void * d);
+
+
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_get_label(WIDGET w);
@@ -17,6 +21,7 @@ extern "C" int fl_widget_get_label_size(WIDGET w);
extern "C" void fl_widget_set_label_size(WIDGET w, int s);
extern "C" int fl_widget_get_label_type(WIDGET w);
extern "C" void fl_widget_set_label_type(WIDGET w, int l);
+extern "C" void * fl_widget_get_parent(WIDGET w);
#endif