MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SetPos

Method SetPos

Descent3/newui_core.cpp:2453–2459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2451void newuiSlider::Offset(int16_t offs) { newuiSlider::SetPos(m_pos + offs); }
2452
2453void newuiSlider::SetPos(int16_t pos) {
2454 if (pos < 0)
2455 pos = 0;
2456 if (pos > m_unitrange)
2457 pos = m_unitrange;
2458 m_pos = pos;
2459}
2460
2461void newuiSlider::SetRange(int16_t range) { m_unitrange = range; }
2462

Callers 6

DoBOAVisProgressDialogFunction · 0.45
RealizeMethod · 0.45
UpdateChangesMethod · 0.45
SetCurrentValueMethod · 0.45
SetRangeMethod · 0.45
SliderSetPosFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected