MessageListener subclasses can post and receive Message objects. More...
#include <juce_MessageListener.h>
Public Member Functions | |
MessageListener () noexcept | |
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. | |
MessageListener subclasses can post and receive Message objects.
|
noexcept |
|
virtual |
Destructor.
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! |