* Draws the track (background bar) semi-transparent. */
| 240 | * Draws the track (background bar) semi-transparent. |
| 241 | */ |
| 242 | void ScrollBar::drawTrack() |
| 243 | { |
| 244 | if (_bg) |
| 245 | { |
| 246 | _track->copy(_bg); |
| 247 | if (_contrast) |
| 248 | { |
| 249 | _track->offset(-5, 1); |
| 250 | } |
| 251 | else if (_list->getComboBox()) |
| 252 | { |
| 253 | _track->offset(+1, Palette::backPos); |
| 254 | } |
| 255 | else |
| 256 | { |
| 257 | _track->offset(-5, Palette::backPos); |
| 258 | } |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | /** |
| 263 | * Draws the thumb (button) as a hollow square. |
nothing calls this directly
no test coverage detected