OpenShot Library | OpenShotAudio 0.2.2
|
MessageListener subclasses can post and receive Message objects. More...
#include <juce_MessageListener.h>
Public Member Functions | |
virtual | ~MessageListener () |
Destructor. More... | |
virtual void | handleMessage (const Message &message)=0 |
This is the callback method that receives incoming messages. More... | |
void | postMessage (Message *message) const |
Sends a message to the message queue, for asynchronous delivery to this listener later on. More... | |
Friends | |
class | WeakReference< MessageListener > |
MessageListener subclasses can post and receive Message objects.
Definition at line 38 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.
|
pure virtual |
This is the callback method that receives incoming messages.
This is called by the MessageManager from its dispatch loop.
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! |
Definition at line 46 of file juce_MessageListener.cpp.
|
friend |
Definition at line 70 of file juce_MessageListener.h.