openshot-audio  0.1.6
Public Member Functions | List of all members
juce::CallbackMessage Class Referenceabstract

#include <juce_events.h>

Inheritance diagram for juce::CallbackMessage:
juce::MessageManager::MessageBase juce::ReferenceCountedObject juce::AsyncUpdater::AsyncUpdaterMessage juce::DragHelpers::AsyncDropMessage

Public Member Functions

 CallbackMessage () noexcept
 
 ~CallbackMessage ()
 
virtual void messageCallback ()=0
 
- Public Member Functions inherited from juce::MessageManager::MessageBase
 MessageBase () noexcept
 
virtual ~MessageBase ()
 
bool post ()
 
- Public Member Functions inherited from juce::ReferenceCountedObject
void incReferenceCount () noexcept
 
void decReferenceCount () noexcept
 
bool decReferenceCountWithoutDeleting () noexcept
 
int getReferenceCount () const noexcept
 

Additional Inherited Members

- Public Types inherited from juce::MessageManager::MessageBase
typedef
ReferenceCountedObjectPtr
< MessageBase
Ptr
 
- Protected Member Functions inherited from juce::ReferenceCountedObject
 ReferenceCountedObject ()
 
virtual ~ReferenceCountedObject ()
 
void resetReferenceCount () noexcept
 

Detailed Description

A message that invokes a callback method when it gets delivered.

You can use this class to fire off actions that you want to be performed later on the message thread.

To use it, create a subclass of CallbackMessage which implements the messageCallback() method, then call post() to dispatch it. The event thread will then invoke your messageCallback() method later on, and will automatically delete the message object afterwards.

Always create a new instance of a CallbackMessage on the heap, as it will be deleted automatically after the message has been delivered.

See also
MessageManager, MessageListener, ActionListener, ChangeListener

Constructor & Destructor Documentation

juce::CallbackMessage::CallbackMessage ( )
inlinenoexcept
juce::CallbackMessage::~CallbackMessage ( )
inline

Destructor.

Member Function Documentation

virtual void juce::CallbackMessage::messageCallback ( )
pure virtual

Called when the message is delivered.

You should implement this method and make it do whatever action you want to perform.

Note that like all other messages, this object will be deleted immediately after this method has been invoked.

Implements juce::MessageManager::MessageBase.

Implemented in juce::DragHelpers::AsyncDropMessage, and juce::AsyncUpdater::AsyncUpdaterMessage.


The documentation for this class was generated from the following file: