On OSX I need to programmatically clear a section of my JUCE window in order to simulate it being below a window on a lower level. Because of other layering considerations it's impossible to actually lower my window's level or send it to the back, so I'm trying this (admittedly) hacky solution to fake the desired effect.
Is there a way in JUCE to completely clear a section of my component after the paint callback. Basically I want to cut a hole in it, including all child components so that everything is transparent in the desired Rectangle. It would be similar to paintOverChildren but instead of painting on top of, I'd be clearing everything out in a certain section.