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

Public Types

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

Public Member Functions

 ComponentCaller2 (FunctionType &f, ComponentType *c, ParamType1 p1)
 
void modalStateFinished (int returnValue) override
 Called to indicate that a modal component has been dismissed. More...
 

Private Attributes

WeakReference< Componentcomp
 
const FunctionType function
 
ParamType1 param1
 

Member Typedef Documentation

◆ FunctionType

template<typename ComponentType, typename ParamType1>
typedef void(* ModalCallbackFunction::ComponentCaller2< ComponentType, ParamType1 >::FunctionType) (int, ComponentType *, ParamType1)

Constructor & Destructor Documentation

◆ ComponentCaller2()

template<typename ComponentType, typename ParamType1>
ModalCallbackFunction::ComponentCaller2< ComponentType, ParamType1 >::ComponentCaller2 ( FunctionType f,
ComponentType *  c,
ParamType1  p1 
)
inline

Member Function Documentation

◆ modalStateFinished()

template<typename ComponentType, typename ParamType1>
void ModalCallbackFunction::ComponentCaller2< ComponentType, ParamType1 >::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

◆ comp

template<typename ComponentType, typename ParamType1>
WeakReference<Component> ModalCallbackFunction::ComponentCaller2< ComponentType, ParamType1 >::comp
private

◆ function

template<typename ComponentType, typename ParamType1>
const FunctionType ModalCallbackFunction::ComponentCaller2< ComponentType, ParamType1 >::function
private

◆ param1

template<typename ComponentType, typename ParamType1>
ParamType1 ModalCallbackFunction::ComponentCaller2< ComponentType, ParamType1 >::param1
private

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