iPlug2 - C++ Audio Plug-in Framework
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
IPopupMenu::Item Class Reference

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
 
IPopupMenuGetSubmenu () 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< IPopupMenumSubmenu
 
int mFlags
 
int mTag = -1
 

Detailed Description

A class to specify an item of a pop up menu.

Definition at line 44 of file IGraphicsPopupMenu.h.


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