This is something that I have been thinking about on and off for a while now. There are things in dlib right now that help you place widgets in a window, the widget_group for instance. Also, doing a lot of simple things like getting bunch of buttons in a row is easy to do by saying something like:
What sort of scenarios do you want to use something like the GridBagLayout for? For me, stuff like the above code is usually easier than dealing with a Java style layout manager (I think).
I think something similar so the sizers in wxWidgets might be good to have (http://docs.wxwidgets.org/stable/wx_sizeroverview.html).
-Davis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is something that I have been thinking about on and off for a while now. There are things in dlib right now that help you place widgets in a window, the widget_group for instance. Also, doing a lot of simple things like getting bunch of buttons in a row is easy to do by saying something like:
button1.set_pos(0,0);
button2.set_pos(button1.right()+5,0);
button3.set_pos(button2.right()+5,0);
button4.set_pos(button3.right()+5,0);
...
What sort of scenarios do you want to use something like the GridBagLayout for? For me, stuff like the above code is usually easier than dealing with a Java style layout manager (I think).
I think something similar so the sizers in wxWidgets might be good to have (http://docs.wxwidgets.org/stable/wx_sizeroverview.html).
-Davis