JUCE  v5.1.1-3-g1a0b28c73
JUCE API
ModalCallbackFunction::FunctionCaller1< ParamType > Struct Template Reference
Inheritance diagram for ModalCallbackFunction::FunctionCaller1< ParamType >:
Collaboration diagram for ModalCallbackFunction::FunctionCaller1< ParamType >:

Public Types

typedef void(* FunctionType) (int, ParamType)
 

Public Member Functions

 FunctionCaller1 (FunctionType &f, ParamType &p1)
 
void modalStateFinished (int returnValue) override
 Called to indicate that a modal component has been dismissed. More...
 

Private Attributes

const FunctionType function
 
ParamType param
 

Member Typedef Documentation

◆ FunctionType

template<typename ParamType>
typedef void(* ModalCallbackFunction::FunctionCaller1< ParamType >::FunctionType) (int, ParamType)

Constructor & Destructor Documentation

◆ FunctionCaller1()

template<typename ParamType>
ModalCallbackFunction::FunctionCaller1< ParamType >::FunctionCaller1 ( FunctionType f,
ParamType &  p1 
)
inline

Member Function Documentation

◆ modalStateFinished()

template<typename ParamType>
void ModalCallbackFunction::FunctionCaller1< ParamType >::modalStateFinished ( int  returnValue)
inlineoverridevirtual

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.

Implements ModalComponentManager::Callback.

Member Data Documentation

◆ function

template<typename ParamType>
const FunctionType ModalCallbackFunction::FunctionCaller1< ParamType >::function
private

◆ param

template<typename ParamType>
ParamType ModalCallbackFunction::FunctionCaller1< ParamType >::param
private

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