MCPcopy Create free account
hub / github.com/VCVRack/Rack / createMenuItem

Function createMenuItem

include/helpers.hpp:203–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201
202template <class TMenuItem = ui::MenuItem>
203TMenuItem* createMenuItem(std::string text, std::string rightText = "") {
204 TMenuItem* item = new TMenuItem;
205 item->text = text;
206 item->rightText = rightText;
207 return item;
208}
209
210
211/** Creates a MenuItem with an action that calls a lambda function.

Callers 15

appendContextMenuMethod · 0.85
appendContextMenuMethod · 0.85
appendContextMenuMethod · 0.85
appendContextMenuMethod · 0.85
appendContextMenuMethod · 0.85
appendPresetItemsFunction · 0.85
createContextMenuMethod · 0.85
createContextMenuMethod · 0.85
createContextMenuMethod · 0.85
onActionMethod · 0.85
onActionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected