void dbc::ProxyProgressObserver::SetRange(float lower, float upper)
{
	m_rangeLower = AdjustRange(lower);
	m_rangeUpper = AdjustRange(upper);
	if (m_rangeLower > m_rangeUpper)
	{
		m_rangeLower = m_rangeUpper; // Progress will stuck in lower range
	}
}
示例#2
0
文件: panel.cpp 项目: ICRAR/void
void
ValueSliderWithLabel::SetValueInternal(
    float value, bool slider, bool textbox)
{
    if(m_Value != value)
    {
        m_Value = value;
        AdjustRange(m_Value);
        onValueChanged.Call(this);
        UpdateValueSlider(slider, textbox);
    }
}