|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Base class for traversing components. More...
#include "juce_ComponentTraverser.h"
Public Member Functions | |
| virtual | ~ComponentTraverser ()=default |
| Destructor. | |
| virtual Component * | getDefaultComponent (Component *parentComponent)=0 |
| Returns the component that should be used as the traversal entry point within the given parent component. | |
| virtual Component * | getNextComponent (Component *current)=0 |
| Returns the component that comes after the specified one when moving "forwards". | |
| virtual Component * | getPreviousComponent (Component *current)=0 |
| Returns the component that comes after the specified one when moving "backwards". | |
| virtual std::vector< Component * > | getAllComponents (Component *parentComponent)=0 |
| Returns all of the traversable components within the given parent component in traversal order. | |
Base class for traversing components.
If you need custom focus or keyboard focus traversal for a component you can create a subclass of ComponentTraverser and return it from Component::createFocusTraverser() or Component::createKeyboardFocusTraverser().
@tags{GUI}
Definition at line 41 of file juce_ComponentTraverser.h.
|
pure virtual |
Returns all of the traversable components within the given parent component in traversal order.
Implemented in juce::LabelKeyboardFocusTraverser, juce::FocusTraverser, and juce::KeyboardFocusTraverser.
|
pure virtual |
Returns the component that should be used as the traversal entry point within the given parent component.
This must return nullptr if there is no default component.
Implemented in juce::LabelKeyboardFocusTraverser, juce::FocusTraverser, and juce::KeyboardFocusTraverser.
Returns the component that comes after the specified one when moving "forwards".
This must return nullptr if there is no next component.
Implemented in juce::LabelKeyboardFocusTraverser, juce::FocusTraverser, and juce::KeyboardFocusTraverser.
|
pure virtual |
Returns the component that comes after the specified one when moving "backwards".
This must return nullptr if there is no previous component.
Implemented in juce::LabelKeyboardFocusTraverser, juce::FocusTraverser, and juce::KeyboardFocusTraverser.