MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / GetRange

Method GetRange

Source/TextEntry.cpp:543–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543void TextEntry::GetRange(float& min, float& max)
544{
545 if (mType == kTextEntry_Int)
546 {
547 min = mIntMin;
548 max = mIntMax;
549 }
550 else if (mType == kTextEntry_Float)
551 {
552 min = mFloatMin;
553 max = mFloatMax;
554 }
555 else
556 {
557 min = 0;
558 max = 1;
559 }
560}
561
562void TextEntry::SetValue(float value, double time, bool forceUpdate /*= false*/)
563{

Callers 5

LoadStateMethod · 0.45
MouseScrolledMethod · 0.45
LoadStateMethod · 0.45
LoadIntMethod · 0.45
LoadFloatMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected