Request: Add Component::getCentrePosition()


#1

Hi,
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.


#2

Have you found getBounds().getCentre() ?


#3

No, I have not. Thanks!


#4

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