Request: Add Component::getCentrePosition()


from time to time I use the setCentrePosition() function of the component class and I always miss the corresponding getter function. Could you add this to the class? It’s a very small addition but it’s kind of annoying.


Have you found getBounds().getCentre() ?


No, I have not. Thanks!


Great, I wasn’t sure you just didn’t like the extra indirection. FWIW manipulating rectangles is a really useful technique for GUI layout.