MessageListener subclasses can post and receive Message objects.
More...
#include <juce_MessageListener.h>
MessageListener subclasses can post and receive Message objects.
- See also
- Message, MessageManager, ActionListener, ChangeListener
@tags{Events}
◆ MessageListener()
juce::MessageListener::MessageListener |
( |
| ) |
|
|
noexcept |
◆ ~MessageListener()
virtual juce::MessageListener::~MessageListener |
( |
| ) |
|
|
virtual |
◆ handleMessage()
virtual void juce::MessageListener::handleMessage |
( |
const Message & |
message | ) |
|
|
pure virtual |
◆ postMessage()
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.
- Parameters
-
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! |
- See also
- handleMessage
◆ WeakReference< MessageListener >
◆ masterReference
The documentation for this class was generated from the following file: