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

Method getModules

src/app/RackWidget.cpp:716–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714}
715
716std::vector<ModuleWidget*> RackWidget::getModules() {
717 std::vector<ModuleWidget*> mws;
718 mws.reserve(internal->moduleContainer->children.size());
719 for (widget::Widget* w : internal->moduleContainer->children) {
720 ModuleWidget* mw = dynamic_cast<ModuleWidget*>(w);
721 assert(mw);
722 mws.push_back(mw);
723 }
724 return mws;
725}
726
727bool RackWidget::hasModules() {
728 return internal->moduleContainer->children.empty();

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected