diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-12-15 16:46:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-15 16:46:40 +0100 |
| commit | 44a2547394a3b4f8b0177c2f33aa8ed47a2c1051 (patch) | |
| tree | d0611bedf1be051c9e5b2183314bc7e17648c5ad /examples | |
| parent | 2fd1866f492daa4caa7fdad6c05cd34bc79ba913 (diff) | |
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"
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/howto-flex-simple.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
