39 template <
typename FocusContainerFn>
40 static void findAllComponents (
Component* parent,
74 if (! (c->*isFocusContainer)())
75 findAllComponents (c, components, isFocusContainer);
79 enum class NavigationDirection { forwards, backwards };
81 template <
typename FocusContainerFn>
84 NavigationDirection direction,
87 if (focusContainer !=
nullptr)
90 findAllComponents (focusContainer, components, isFocusContainer);
94 if (iter == components.
cend())
99 case NavigationDirection::forwards:
105 case NavigationDirection::backwards:
106 if (iter != components.
cbegin())
The base class for all JUCE user-interface objects.
bool isVisible() const noexcept
Tests whether the component is visible or not.
int getNumChildComponents() const noexcept
Returns the number of child components that this component contains.
bool isAlwaysOnTop() const noexcept
Returns true if this component is set to always stay in front of its siblings.
int getX() const noexcept
Returns the x coordinate of the component's left edge.
int getExplicitFocusOrder() const
Returns the focus order of this component, if one has been specified.
int getY() const noexcept
Returns the y coordinate of the top of this component.
bool isEnabled() const noexcept
Returns true if the component (and all its parents) are enabled.
const Array< Component * > & getChildren() const noexcept
Provides access to the underlying array of child components.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...