ComponentViewer

I just created a ComponentViewer component. It’s a window the tracks the current position of the mouse. It will display current mouse position relative to screen, window & component.

The hierarchy of components under the mouse with class name, component name, bounds and opaque flag.

Colour under mouse.

Zoomed image of component under mouse from 1x to 30x.

It’s very useful when working with a new juce codebase to get your mind wrapped around the hierarchy of the components used.

You can get it here: https://github.com/figbug/gin

It’s simple to use new gin::ComponentViewer (this); and it will delete itself when user closes the window or the component you pass to it is deleted.

Let me know if you find it useful. Also thinking about a standalone version that runs on desktop that lets you inspect juce apps running on mobile.

9 Likes