sudara / melatonin_inspector

A JUCE module that gives you the ability to inspect and visually edit (non-destructively) components in your UI.
MIT License
156 stars 18 forks source link

Add z-order as a prop #84

Open sudara opened 1 year ago

sudara commented 1 year ago

I believe the tree is actually implicitly organized by z order, as it should just be built via getChildren.

Unfortunately z-order isn't stored as a property, as its the implicit position of a child within a component's private childComponentList.

Worst case: when displaying properties, figuring out the index via testing against parent->getChildren() is probably the way to go.