LMMS
Loading...
Searching...
No Matches
juce::WindowsMessageBoxBase Class Referenceabstract
Inheritance diagram for juce::WindowsMessageBoxBase:
juce::AsyncUpdater juce::PreVistaMessageBox juce::WindowsTaskDialog

Public Member Functions

 WindowsMessageBoxBase (Component *comp, std::unique_ptr< ModalComponentManager::Callback > &&cb)
virtual int getResult ()=0
HWND getParentHWND () const
void triggerAsyncUpdate ()

Private Member Functions

void handleAsyncUpdate () override
Private Member Functions inherited from juce::AsyncUpdater
 AsyncUpdater ()
virtual ~AsyncUpdater ()
void triggerAsyncUpdate ()
void cancelPendingUpdate () noexcept
void handleUpdateNowIfNeeded ()
bool isUpdatePending () const noexcept

Private Attributes

Component::SafePointer< ComponentassociatedComponent
std::unique_ptr< ModalComponentManager::Callbackcallback

Constructor & Destructor Documentation

◆ WindowsMessageBoxBase()

juce::WindowsMessageBoxBase::WindowsMessageBoxBase ( Component * comp,
std::unique_ptr< ModalComponentManager::Callback > && cb )
inline

Member Function Documentation

◆ getParentHWND()

HWND juce::WindowsMessageBoxBase::getParentHWND ( ) const
inline

◆ getResult()

virtual int juce::WindowsMessageBoxBase::getResult ( )
pure virtual

◆ handleAsyncUpdate()

void juce::WindowsMessageBoxBase::handleAsyncUpdate ( )
inlineoverrideprivatevirtual

Called back to do whatever your class needs to do.

This method is called by the message thread at the next convenient time after the triggerAsyncUpdate() method has been called.

Implements juce::AsyncUpdater.

◆ triggerAsyncUpdate()

void juce::AsyncUpdater::triggerAsyncUpdate ( )

Causes the callback to be triggered at a later time.

This method returns immediately, after which a callback to the handleAsyncUpdate() method will be made by the message thread as soon as possible.

If an update callback is already pending but hasn't happened yet, calling this method will have no effect.

It's thread-safe to call this method from any thread, BUT beware of calling it from a real-time (e.g. audio) thread, because it involves posting a message to the system queue, which means it may block (and in general will do on most OSes).

Member Data Documentation

◆ associatedComponent

Component::SafePointer<Component> juce::WindowsMessageBoxBase::associatedComponent
private

◆ callback

std::unique_ptr<ModalComponentManager::Callback> juce::WindowsMessageBoxBase::callback
private

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