MessageListener subclasses can post and receive Message objects.
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. | |
|
noexcept |
Referenced by WeakReference< MessageListener >, and ~MessageListener().
|
virtual |
Destructor.
References MessageListener().
|
pure virtual |
This is the callback method that receives incoming messages.
This is called by the MessageManager from its dispatch loop.
References handleMessage().
Referenced by handleMessage().
| void juce::MessageListener::postMessage | ( | Message * | message | ) | const |
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! |
References postMessage().
Referenced by postMessage().