diff options
Diffstat (limited to 'c_fl_widget.cpp')
-rw-r--r-- | c_fl_widget.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/c_fl_widget.cpp b/c_fl_widget.cpp index 9acc52f..a503dc1 100644 --- a/c_fl_widget.cpp +++ b/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(); +} + |