JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::MenuBarModel::Listener Class Referenceabstract

A class to receive callbacks when a MenuBarModel changes. More...

#include <juce_MenuBarModel.h>

Inheritance diagram for juce::MenuBarModel::Listener:

Public Member Functions

virtual ~Listener ()=default
 Destructor. More...
 
virtual void menuBarActivated (MenuBarModel *menuBarModel, bool isActive)
 Called when the menu bar is first activated or when the user finished interacting with the menu bar. More...
 
virtual void menuBarItemsChanged (MenuBarModel *menuBarModel)=0
 This callback is made when items are changed in the menu bar model. More...
 
virtual void menuCommandInvoked (MenuBarModel *menuBarModel, const ApplicationCommandTarget::InvocationInfo &info)=0
 This callback is made when an application command is invoked that is represented by one of the items in the menu bar model. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ ~Listener()

virtual juce::MenuBarModel::Listener::~Listener ( )
virtualdefault

Destructor.

Member Function Documentation

◆ menuBarActivated()

virtual void juce::MenuBarModel::Listener::menuBarActivated ( MenuBarModel menuBarModel,
bool  isActive 
)
virtual

Called when the menu bar is first activated or when the user finished interacting with the menu bar.

◆ menuBarItemsChanged()

virtual void juce::MenuBarModel::Listener::menuBarItemsChanged ( MenuBarModel menuBarModel)
pure virtual

This callback is made when items are changed in the menu bar model.

Implemented in juce::MenuBarComponent, and juce::BurgerMenuComponent.

◆ menuCommandInvoked()

virtual void juce::MenuBarModel::Listener::menuCommandInvoked ( MenuBarModel menuBarModel,
const ApplicationCommandTarget::InvocationInfo info 
)
pure virtual

This callback is made when an application command is invoked that is represented by one of the items in the menu bar model.

Implemented in juce::MenuBarComponent, and juce::BurgerMenuComponent.


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