A user-defined callback that can be used for specific items in a popup menu. More...
#include <juce_PopupMenu.h>
Public Member Functions | |
CustomCallback () | |
~CustomCallback () | |
void | decReferenceCount () noexcept |
Decreases the object's reference count. More... | |
bool | decReferenceCountWithoutDeleting () noexcept |
Decreases the object's reference count. More... | |
int | getReferenceCount () const noexcept |
Returns the object's current reference count. More... | |
void | incReferenceCount () noexcept |
Increments the object's reference count. More... | |
virtual bool | menuItemTriggered ()=0 |
Callback to indicate this item has been triggered. More... | |
A user-defined callback that can be used for specific items in a popup menu.
PopupMenu::CustomCallback::CustomCallback | ( | ) |
PopupMenu::CustomCallback::~CustomCallback | ( | ) |
|
inlinenoexceptinherited |
Decreases the object's reference count.
If the count gets to zero, the object will be deleted.
References jassert.
|
inlinenoexceptinherited |
Decreases the object's reference count.
If the count gets to zero, the object will not be deleted, but this method will return true, allowing the caller to take care of deletion.
References jassert.
|
inlinenoexceptinherited |
Returns the object's current reference count.
|
inlinenoexceptinherited |
Increments the object's reference count.
This is done automatically by the smart pointer, but is public just in case it's needed for nefarious purposes.
|
pure virtual |
Callback to indicate this item has been triggered.