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

Method setMaximum

forms/scrollbar.cpp:59–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool ScrollBar::setMaximum(int newMaximum)
60{
61 if (Maximum == newMaximum)
62 {
63 return false;
64 }
65 Maximum = newMaximum;
66 setValue(Value);
67 updateScrollChangeValue();
68 setDirty();
69 return true;
70}
71
72void ScrollBar::scrollPrev(int amount)
73{

Callers 6

setScrollbarValuesMethod · 0.80
createControlMethod · 0.80
onRenderMethod · 0.80
onRenderMethod · 0.80
onRenderMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected