|
|
El 26/10/22 a las 07:21, 'melcher....@googlemail.com' via fltk.coredev
escribió:
tl;dr Proposal to add Fl_Widget::resizable(int width_factor, int
height_factor) and merge Fl_Flex into Fl_Pack.
I was looking into how Fl_Flex differs from Fl_Pack, and apart from
the margins, Fl_Flex adds the option the make individual children
resizable while the rest stays fixed. So instead of introducing a new
widget, wouldn't it be better to add this functionality to Fl_Pack?
No. Fl_Pack resizes itself to fit the widgets and pack them together
during the redraw function. This can be useful when you don't know (or
care for) one of the sizes in one direction.
Thanks to Greg I also have a version of Fl_Pack that has a layout
function to do the packing before hand (adding *that* to fltk1.4 would
be useful).
Fl_Flex, on the other hand, requires you to provide its size before hand
and it fits the widgets proportionally in the available space, except
when one or some of them have had the fixed set_size() set for them.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/dfebdf7d-3b89-e3b9-2044-a9efb6813c92%40gmail.com.
[ Direct Link to Message ] | |
|
| |