From 44a2547394a3b4f8b0177c2f33aa8ed47a2c1051 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 15 Dec 2022 16:46:40 +0100 Subject: Rename some Fl_Flex methods for FLTK compliance (#594) Change some method names to comply with FLTK style as discussed in fltk.coredev, thread "Fl_Flex method name question". * Rename Fl_Flex::margins(...) to Fl_Flex::margin(...) (use singular form for all margin related methods) * Remove Fl_Flex::setSize() and isSetSize() "backwards compatibility" methods * Rename Fl_Flex::set_size(...) to fixed(...) Note: the latter affects existing (pre-release) fluid (.fl) files: you may want to edit and replace "set_size_tuples" with "fixed_size_tuples" --- examples/howto-flex-simple.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/howto-flex-simple.cxx b/examples/howto-flex-simple.cxx index 329fe9351..15bdde715 100644 --- a/examples/howto-flex-simple.cxx +++ b/examples/howto-flex-simple.cxx @@ -49,7 +49,7 @@ int main(int argc, char **argv) { // set gap between adjacent buttons and extra spacing (invisible box size) flex.gap(10); - flex.set_size(bx, 30); // total 50: 2 * gap + 30 + flex.fixed(bx, 30); // total 50: 2 * gap + 30 // end() groups flex.end(); -- cgit v1.2.3