MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / setValue

Method setValue

forms/scrollbar.cpp:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29void ScrollBar::loadResources() {}
30
31bool ScrollBar::setValue(int newValue)
32{
33 newValue = std::max(newValue, Minimum);
34 newValue = std::min(newValue, Maximum);
35 if (newValue == Value)
36 {
37 return false;
38 }
39
40 Value = newValue;
41 this->pushFormEvent(FormEventType::ScrollBarChange, nullptr);
42 setDirty();
43 return true;
44}
45
46bool ScrollBar::setMinimum(int newMininum)
47{

Callers 15

eventOccuredMethod · 0.95
serializeManifestMethod · 0.45
serializeOutFunction · 0.45
serializeOutFunction · 0.45
SelectForcesMethod · 0.45
SkirmishMethod · 0.45
setScrollbarValuesMethod · 0.45
updateValuesMethod · 0.45
linkMethod · 0.45
beginMethod · 0.45
beginMethod · 0.45
setDisplayTypeMethod · 0.45

Calls 1

pushFormEventMethod · 0.80

Tested by

no test coverage detected