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

Method getString

src/Quantity.cpp:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136std::string Quantity::getString() {
137 std::string s;
138 std::string label = getLabel();
139 std::string valueString = getDisplayValueString() + getUnit();
140 s += label;
141 if (label != "" && valueString != "")
142 s += ": ";
143 s += valueString;
144 return s;
145}
146
147void Quantity::reset() {
148 setValue(getDefaultValue());

Callers 4

stepMethod · 0.80
stepMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected