Definition at line 102 of file UpDownNumber.h. References mAsInt, mListener, mListenerData, mMaxVal, mMinVal, mStatTxt, mValue, OglGui::StaticText::SetText(), and OglGui::UpDownNumberListener::UpDownNumberChangedEvent(). Referenced by ChangeValue(). 00103 { 00104 float oldVal = mValue; 00105 char buf[40]; 00106 00107 mValue = value; 00108 00109 mValue = (mValue < mMinVal) ? mMinVal : mValue; 00110 mValue = (mValue > mMaxVal) ? mMaxVal : mValue; 00111 00112 sprintf(buf, mAsInt ? "%.0f" : "%.2f", mValue); 00113 mStatTxt->SetText(buf); 00114 if ((oldVal != mValue) && mListener ) 00115 mListener->UpDownNumberChangedEvent(this, mListenerData); 00116 }
Here is the call graph for this function:
|