|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Manages a list of ActionListeners, and can send them messages. More...
#include "juce_ActionBroadcaster.h"
Classes | |
| class | ActionMessage |
Public Member Functions | |
| ActionBroadcaster () | |
| Creates an ActionBroadcaster. | |
| virtual | ~ActionBroadcaster () |
| Destructor. | |
| void | addActionListener (ActionListener *listener) |
| Adds a listener to the list. | |
| void | removeActionListener (ActionListener *listener) |
| Removes a listener from the list. | |
| void | removeAllActionListeners () |
| Removes all listeners from the list. | |
| void | sendActionMessage (const String &message) const |
| Broadcasts a message to all the registered listeners. | |
Friends | |
| class | ActionMessage |
Manages a list of ActionListeners, and can send them messages.
To quickly add methods to your class that can add/remove action listeners and broadcast to them, you can derive from this.
@tags{Events}
Definition at line 36 of file juce_ActionBroadcaster.h.
| juce::ActionBroadcaster::ActionBroadcaster | ( | ) |
Creates an ActionBroadcaster.
Definition at line 52 of file juce_ActionBroadcaster.cpp.
|
virtual |
Destructor.
Definition at line 58 of file juce_ActionBroadcaster.cpp.
| void juce::ActionBroadcaster::addActionListener | ( | ActionListener * | listener | ) |
Adds a listener to the list.
Trying to add a listener that's already on the list will have no effect.
Definition at line 64 of file juce_ActionBroadcaster.cpp.
| void juce::ActionBroadcaster::removeActionListener | ( | ActionListener * | listener | ) |
Removes a listener from the list.
If the listener isn't on the list, this won't have any effect.
Definition at line 72 of file juce_ActionBroadcaster.cpp.
| void juce::ActionBroadcaster::removeAllActionListeners | ( | ) |
Removes all listeners from the list.
Definition at line 78 of file juce_ActionBroadcaster.cpp.
Broadcasts a message to all the registered listeners.
Definition at line 84 of file juce_ActionBroadcaster.cpp.
|
friend |
Definition at line 70 of file juce_ActionBroadcaster.h.