summaryrefslogtreecommitdiff
path: root/src/fltk_binding/c_fl_widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk_binding/c_fl_widget.cpp')
-rw-r--r--src/fltk_binding/c_fl_widget.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/fltk_binding/c_fl_widget.cpp b/src/fltk_binding/c_fl_widget.cpp
index 9acc52f..a503dc1 100644
--- a/src/fltk_binding/c_fl_widget.cpp
+++ b/src/fltk_binding/c_fl_widget.cpp
@@ -4,6 +4,20 @@
#include "c_fl_widget.h"
+
+
+void * fl_widget_get_user_data(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->user_data();
+}
+
+
+void fl_widget_set_user_data(WIDGET w, void * d) {
+ reinterpret_cast<Fl_Widget*>(w)->user_data(d);
+}
+
+
+
+
int fl_widget_get_box(WIDGET w) {
return reinterpret_cast<Fl_Widget*>(w)->box();
}
@@ -53,3 +67,8 @@ void fl_widget_set_label_type(WIDGET w, int l) {
reinterpret_cast<Fl_Widget*>(w)->labeltype(static_cast<Fl_Labeltype>(l));
}
+
+void * fl_widget_get_parent(WIDGET w) {
+ return reinterpret_cast<Fl_Widget*>(w)->parent();
+}
+