"...for applications with multiple nested panels, you would use more than one StretchableLayoutManager" (from juce docs)
This is what I want to do... I have a series of roughly 10 columns that I want equally spaced, and inside each I have 2-4 items that I want stacked upwards (and downwards in other cases). Normally I would use something like a "VBox" or "HBox" in other API's, but it looks like StretchableLayoutManager is the closest thing available in JUCE.
It looks like I can't add components to this manager, but need to have components so that I can extract the calculated values. I *think* what I need to do is create 10 components for the 10 columns, and then use those coords to calculate where the items go in each column.
1. Regarding the docs above, how does it help to have more than one StretchablelayoutManager? It looks like it contains no state. I am creating a list of Components just to extract the horizontal positioning, but maybe I'm using this incorrectly?
2. Is there a way to add padding (between components)? I don't really want them immediately adjacent.
3. Am I going about this incorrectly? Is there a better class?
4. The API takes a Component* list which is kind of annoying when working with std::vector (my display changes sizes), but that's just a nit.