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"
This commit is contained in:
Albrecht Schlosser
2022-12-15 16:46:40 +01:00
committed by GitHub
parent 2fd1866f49
commit 44a2547394
9 changed files with 115 additions and 144 deletions

View File

@@ -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();