A type of UI component that displays the parameters of an AudioProcessor as a simple list of sliders. More...
Inherits AudioProcessorEditor.
Public Member Functions | |
| GenericAudioProcessorEditor (AudioProcessor *owner) | |
| ~GenericAudioProcessorEditor () | |
| void | paint (Graphics &g) |
| Components can override this method to draw their content. | |
| void | resized () |
| Called when this component's size has been changed. | |
A type of UI component that displays the parameters of an AudioProcessor as a simple list of sliders.
This can be used for showing an editor for a processor that doesn't supply its own custom editor.
| GenericAudioProcessorEditor::GenericAudioProcessorEditor | ( | AudioProcessor * | owner ) |
| GenericAudioProcessorEditor::~GenericAudioProcessorEditor | ( | ) |
| void GenericAudioProcessorEditor::paint | ( | Graphics & | g ) | [virtual] |
Components can override this method to draw their content.
The paint() method gets called when a region of a component needs redrawing, either because the component's repaint() method has been called, or because something has happened on the screen that means a section of a window needs to be redrawn.
Any child components will draw themselves over whatever this method draws. If you need to paint over the top of your child components, you can also implement the paintOverChildren() method to do this.
If you want to cause a component to redraw itself, this is done asynchronously - calling the repaint() method marks a region of the component as "dirty", and the paint() method will automatically be called sometime later, by the message thread, to paint any bits that need refreshing. In Juce (and almost all modern UI frameworks), you never redraw something synchronously.
You should never need to call this method directly - to take a snapshot of the component you could use createComponentSnapshot() or paintEntireComponent().
| g | the graphics context that must be used to do the drawing operations. |
Reimplemented from Component.
| void GenericAudioProcessorEditor::resized | ( | ) | [virtual] |
Called when this component's size has been changed.
A component can implement this method to do things such as laying out its child components when its width or height changes.
The method is called synchronously as a result of the setBounds or setSize methods, so repeatedly changing a components size will repeatedly call its resized method (unlike things like repainting, where multiple calls to repaint are coalesced together).
If the component is a top-level window on the desktop, its size could also be changed by operating-system factors beyond the application's control.
Reimplemented from Component.