diff options
Diffstat (limited to 'c_fl_widget.cpp')
-rw-r--r-- | c_fl_widget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/c_fl_widget.cpp b/c_fl_widget.cpp index 9dea7ee..30c4de3 100644 --- a/c_fl_widget.cpp +++ b/c_fl_widget.cpp @@ -1,6 +1,7 @@ #include <FL/Fl_Widget.H> +#include <FL/Fl_Image.H> #include "c_fl_widget.h" @@ -111,3 +112,8 @@ void fl_widget_position(WIDGET w, int x, int y) { reinterpret_cast<Fl_Widget*>(w)->position(x, y); } + +void fl_widget_set_image(WIDGET w, void * img) { + reinterpret_cast<Fl_Widget*>(w)->image(reinterpret_cast<Fl_Image*>(img)); +} + |