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

Public Types

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

Public Member Functions

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

Private Attributes

WeakReference< Componentcomp
 
const FunctionType function
 

Member Typedef Documentation

◆ FunctionType

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

Constructor & Destructor Documentation

◆ ComponentCaller1()

template<typename ComponentType>
ModalCallbackFunction::ComponentCaller1< ComponentType >::ComponentCaller1 ( FunctionType f,
ComponentType *  c 
)
inline

Member Function Documentation

◆ modalStateFinished()

template<typename ComponentType>
void ModalCallbackFunction::ComponentCaller1< ComponentType >::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>
WeakReference<Component> ModalCallbackFunction::ComponentCaller1< ComponentType >::comp
private

◆ function

template<typename ComponentType>
const FunctionType ModalCallbackFunction::ComponentCaller1< ComponentType >::function
private

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