ActionBroadcaster — string-based action dispatch (for menu commands, etc.).
More...
#include <coalesced_updater.hpp>
ActionBroadcaster — string-based action dispatch (for menu commands, etc.).
◆ ActionCallback
◆ add_listener()
| int pulp::events::ActionBroadcaster::add_listener |
( |
ActionCallback | fn | ) |
|
|
inline |
Add a listener. Returns an ID for removal.
◆ remove_listener()
| void pulp::events::ActionBroadcaster::remove_listener |
( |
int | id | ) |
|
|
inline |
◆ send_action()
| void pulp::events::ActionBroadcaster::send_action |
( |
std::string_view | action | ) |
|
|
inline |
Send an action to all listeners.
The documentation for this class was generated from the following file: