From: Matthias M. <mm...@ma...> - 2025-07-02 10:13:31
|
Awesome. I am learning swig as we go ;-) So in the file `swig/Fl_Widget.i` - insert the following line 50 before %include "FL/Fl_Widget.H" %ignore measure_label(int& ww, int& hh); - and starting at line 61 after #include <FL/Fl_Image.H> %apply int *OUTPUT { int *w_ret }; %apply int *OUTPUT { int *h_ret }; void measure_label(int w, int h, int *w_ret, int *h_ret) const { self->measure_label(w, h); if (w_ret) *w_ret = w; if (h_ret) *h_ret = h; } - tested and working, Matthias |