openshot-audio  0.1.4
Public Member Functions | List of all members
juce::KeyboardFocusTraverser Class Reference

#include <juce_gui_basics.h>

Inheritance diagram for juce::KeyboardFocusTraverser:
juce::LabelKeyboardFocusTraverser

Public Member Functions

 KeyboardFocusTraverser ()
 
virtual ~KeyboardFocusTraverser ()
 
virtual ComponentgetNextComponent (Component *current)
 
virtual ComponentgetPreviousComponent (Component *current)
 
virtual ComponentgetDefaultComponent (Component *parentComponent)
 

Detailed Description

Controls the order in which focus moves between components.

The default algorithm used by this class to work out the order of traversal is as follows:

If you need traversal in a more customised way, you can create a subclass of KeyboardFocusTraverser that uses your own algorithm, and use Component::createFocusTraverser() to create it.

See also
Component::setExplicitFocusOrder, Component::createFocusTraverser

Constructor & Destructor Documentation

◆ KeyboardFocusTraverser()

KeyboardFocusTraverser::KeyboardFocusTraverser ( )

◆ ~KeyboardFocusTraverser()

KeyboardFocusTraverser::~KeyboardFocusTraverser ( )
virtual

Destructor.

Member Function Documentation

◆ getDefaultComponent()

Component * KeyboardFocusTraverser::getDefaultComponent ( Component parentComponent)
virtual

Returns the component that should receive focus be default within the given parent component.

The default implementation will just return the foremost child component that wants focus.

This may return nullptr if there's no suitable candidate.

◆ getNextComponent()

Component * KeyboardFocusTraverser::getNextComponent ( Component current)
virtual

Returns the component that should be given focus after the specified one when moving "forwards".

The default implementation will return the next component which is to the right of or below this one.

This may return nullptr if there's no suitable candidate.

Reimplemented in juce::LabelKeyboardFocusTraverser.

◆ getPreviousComponent()

Component * KeyboardFocusTraverser::getPreviousComponent ( Component current)
virtual

Returns the component that should be given focus after the specified one when moving "backwards".

The default implementation will return the next component which is to the left of or above this one.

This may return nullptr if there's no suitable candidate.

Reimplemented in juce::LabelKeyboardFocusTraverser.


The documentation for this class was generated from the following files: