JUCE  v5.1.1-3-g1a0b28c73
JUCE API
ModalComponentManager::Callback Class Referenceabstract

Receives callbacks when a modal component is dismissed. More...

#include <juce_ModalComponentManager.h>

Inheritance diagram for ModalComponentManager::Callback:

Public Member Functions

 Callback ()
 
virtual ~Callback ()
 Destructor. More...
 
virtual void modalStateFinished (int returnValue)=0
 Called to indicate that a modal component has been dismissed. More...
 

Detailed Description

Receives callbacks when a modal component is dismissed.

You can register a callback using Component::enterModalState() or ModalComponentManager::attachCallback().

For some quick ways of creating callback objects, see the ModalCallbackFunction class.

See also
ModalCallbackFunction

Constructor & Destructor Documentation

◆ Callback()

ModalComponentManager::Callback::Callback ( )
inline

◆ ~Callback()

virtual ModalComponentManager::Callback::~Callback ( )
inlinevirtual

Member Function Documentation

◆ modalStateFinished()

virtual void ModalComponentManager::Callback::modalStateFinished ( int  returnValue)
pure virtual

Called to indicate that a modal component has been dismissed.

You can register a callback using Component::enterModalState() or ModalComponentManager::attachCallback().

The returnValue parameter is the value that was passed to Component::exitModalState() when the component was dismissed.

The callback object will be deleted shortly after this method is called.

Implemented in ModalCallbackFunction::ComponentCaller2< ComponentType, ParamType1 >, ModalCallbackFunction::ComponentCaller1< ComponentType >, ModalCallbackFunction::FunctionCaller2< ParamType1, ParamType2 >, and ModalCallbackFunction::FunctionCaller1< ParamType >.


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