Request: Add Component::getCentrePosition()

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.

Have you found getBounds().getCentre() ?

1 Like

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.