29MenuBarModel::MenuBarModel() noexcept
49 if (manager !=
nullptr)
54 if (manager !=
nullptr)
77 listeners.call ([
this] (
Listener&
l) {
l.menuBarItemsChanged (
this); });
82 listeners.call ([
this, &info] (
Listener&
l) {
l.menuCommandInvoked (
this, info); });
90void MenuBarModel::handleMenuBarActivate (
bool isActive)
93 listeners.call ([
this, isActive] (Listener&
l) {
l.menuBarActivated (
this, isActive); });
One of these objects holds a list of all the commands your app can perform, and despatches these comm...
void addListener(ApplicationCommandManagerListener *listener)
Registers a listener that will be called when various events occur.
void removeListener(ApplicationCommandManagerListener *listener)
Deregisters a previously-added listener.
void triggerAsyncUpdate()
Causes the callback to be triggered at a later time.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
Contains contextual details about the invocation of a command.