| 29 | void ScrollBar::loadResources() {} |
| 30 | |
| 31 | bool 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 | |
| 46 | bool ScrollBar::setMinimum(int newMininum) |
| 47 | { |
no test coverage detected