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

Method mergeJson

src/app/CableWidget.cpp:250–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248
249
250void CableWidget::mergeJson(json_t* rootJ) {
251 std::string s = color::toHexString(color);
252 json_object_set_new(rootJ, "color", json_string(s.c_str()));
253}
254
255
256void CableWidget::fromJson(json_t* rootJ) {

Callers

nothing calls this directly

Calls 1

toHexStringFunction · 0.85

Tested by

no test coverage detected