|
LMMS
|
#include <ivstcontextmenu.h>
Public Types | |
| typedef IContextMenuItem | Item |
Public Member Functions | |
| virtual int32 PLUGIN_API | getItemCount ()=0 |
| virtual tresult PLUGIN_API | getItem (int32 index, Item &item, IContextMenuTarget **target)=0 |
| virtual tresult PLUGIN_API | addItem (const Item &item, IContextMenuTarget *target)=0 |
| virtual tresult PLUGIN_API | removeItem (const Item &item, IContextMenuTarget *target)=0 |
| virtual tresult PLUGIN_API | popup (UCoord x, UCoord y)=0 |
| Public Member Functions inherited from Steinberg::FUnknown | |
| virtual tresult PLUGIN_API | queryInterface (const TUID _iid, void **obj)=0 |
| virtual uint32 PLUGIN_API | addRef ()=0 |
| virtual uint32 PLUGIN_API | release ()=0 |
Static Public Attributes | |
| static const FUID | iid |
| Static Public Attributes inherited from Steinberg::FUnknown | |
| static const FUID | iid |
Context Menu interface: Vst::IContextMenu
A context menu is composed of Item (entry). A Item is defined by a name, a tag, a flag and a associated target (called when this item will be selected/executed). With IContextMenu the plug-in can retrieve a Item, add a Item, remove a Item and pop-up the menu.
|
pure virtual |
Adds a menu item and its target.
|
pure virtual |
Gets a menu item and its target (target could be not assigned).
|
pure virtual |
Gets the number of menu items.
Pop-ups the menu. Coordinates are relative to the top-left position of the plug-ins view.
|
pure virtual |
Removes a menu item.