From: RJ A. <rj....@gm...> - 2025-07-02 15:57:35
|
Hi Matthias, That's great news. Thank you. I'm away until Thursday but I will test and commit this change when I get back home. BTW thank you for clearly explaning how this function works. On Wed, Jul 2, 2025, 3:13 a.m. Matthias Melcher <mm...@ma...> wrote: > > > > 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 > > > > > > _______________________________________________ > Pyfltk-user mailing list > Pyf...@li... > https://lists.sourceforge.net/lists/listinfo/pyfltk-user > |