|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
MessageListener subclasses can post and receive Message objects. More...
#include "juce_MessageListener.h"
Public Member Functions | |
| virtual | ~MessageListener () |
| Destructor. | |
| virtual void | handleMessage (const Message &message)=0 |
| This is the callback method that receives incoming messages. | |
| void | postMessage (Message *message) const |
| Sends a message to the message queue, for asynchronous delivery to this listener later on. | |
Friends | |
| class | WeakReference< MessageListener > |
MessageListener subclasses can post and receive Message objects.
@tags{Events}
Definition at line 34 of file juce_MessageListener.h.
|
noexcept |
Definition at line 35 of file juce_MessageListener.cpp.
|
virtual |
Destructor.
Definition at line 41 of file juce_MessageListener.cpp.
This is the callback method that receives incoming messages.
This is called by the MessageManager from its dispatch loop.
Sends a message to the message queue, for asynchronous delivery to this listener later on.
This method can be called safely by any thread.
| message | the message object to send - this will be deleted automatically by the message queue, so make sure it's allocated on the heap, not the stack! |
Definition at line 46 of file juce_MessageListener.cpp.
|
friend |
Definition at line 66 of file juce_MessageListener.h.