Hello everybody !
Recently, I had to deal with controls positionning on a plug-in GUI, where the background was either a PNG file, or a SVG. The plug-in editor is resizeable, and the controls need to be at very specific places depending on the background.
Since the position of
Component objects in JUCE is always an integer, I had to write the positions of the controls using the scale factor and the function
roundToInt, and sometimes they look “off” because you have say one pixel of delay on the left and not on the right, and then for another size everything looks good.
How do you deal with this ? Would it be a good idea to allow the components in JUCE to have bounds being
Rectangle<float> instead of
Rectangle<int> ? Or would it be a design mistake ?
Thanks in advance !