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

Method createChildMenu

include/ui/MenuItem.hpp:23–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 void onDragDrop(const DragDropEvent& e) override;
22 void doAction(bool consume = true);
23 virtual Menu* createChildMenu() {
24 return NULL;
25 }
26 /** Override to handle behavior when user clicks the menu item.
27 Event is consumed by default. Unconsume to prevent the menu from being closed.
28 If Ctrl (Cmd on Mac) is held, the event is *not* pre-consumed, so if your menu must be closed, always consume the event.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected