JUCE  v5.1.1-3-g1a0b28c73
JUCE API
ModalCallbackFunction::FunctionCaller2< ParamType1, ParamType2 > Struct Template Reference
Inheritance diagram for ModalCallbackFunction::FunctionCaller2< ParamType1, ParamType2 >:
Collaboration diagram for ModalCallbackFunction::FunctionCaller2< ParamType1, ParamType2 >:

Public Types

typedef void(* FunctionType) (int, ParamType1, ParamType2)
 

Public Member Functions

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

Private Attributes

const FunctionType function
 
ParamType1 param1
 
ParamType2 param2
 

Member Typedef Documentation

◆ FunctionType

template<typename ParamType1, typename ParamType2>
typedef void(* ModalCallbackFunction::FunctionCaller2< ParamType1, ParamType2 >::FunctionType) (int, ParamType1, ParamType2)

Constructor & Destructor Documentation

◆ FunctionCaller2()

template<typename ParamType1, typename ParamType2>
ModalCallbackFunction::FunctionCaller2< ParamType1, ParamType2 >::FunctionCaller2 ( FunctionType f,
ParamType1 &  p1,
ParamType2 &  p2 
)
inline

Member Function Documentation

◆ modalStateFinished()

template<typename ParamType1, typename ParamType2>
void ModalCallbackFunction::FunctionCaller2< ParamType1, ParamType2 >::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 ParamType1, typename ParamType2>
const FunctionType ModalCallbackFunction::FunctionCaller2< ParamType1, ParamType2 >::function
private

◆ param1

template<typename ParamType1, typename ParamType2>
ParamType1 ModalCallbackFunction::FunctionCaller2< ParamType1, ParamType2 >::param1
private

◆ param2

template<typename ParamType1, typename ParamType2>
ParamType2 ModalCallbackFunction::FunctionCaller2< ParamType1, ParamType2 >::param2
private

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