iPlug2 - C++ Audio Plug-in Framework
|
A class to specify an item of a pop up menu. More...
#include <IGraphicsPopupMenu.h>
Public Types | |
enum | Flags { kNoFlags = 0, kDisabled = 1 << 0, kTitle = 1 << 1, kChecked = 1 << 2, kSeparator = 1 << 3 } |
Public Member Functions | |
Item (const char *str, int flags=kNoFlags, int tag=-1) | |
Item (const char *str, IPopupMenu *pSubMenu) | |
Item (const Item &)=delete | |
void | operator= (const Item &)=delete |
void | SetText (const char *str) |
const char * | GetText () const |
bool | GetEnabled () const |
bool | GetChecked () const |
bool | GetIsTitle () const |
bool | GetIsSeparator () const |
int | GetTag () const |
IPopupMenu * | GetSubmenu () const |
bool | GetIsChoosable () const |
void | SetEnabled (bool state) |
void | SetChecked (bool state) |
void | SetTitle (bool state) |
void | SetSubmenu (IPopupMenu *pSubmenu) |
Protected Member Functions | |
void | SetFlag (Flags flag, bool state) |
Protected Attributes | |
WDL_String | mText |
std::unique_ptr< IPopupMenu > | mSubmenu |
int | mFlags |
int | mTag = -1 |
A class to specify an item of a pop up menu.
Definition at line 44 of file IGraphicsPopupMenu.h.