| 184 | } |
| 185 | |
| 186 | void FormPreview::render() |
| 187 | { |
| 188 | if (displayform != nullptr) |
| 189 | { |
| 190 | displayform->render(); |
| 191 | } |
| 192 | previewselector->render(); |
| 193 | if (propertyeditor != nullptr) |
| 194 | { |
| 195 | propertyeditor->render(); |
| 196 | } |
| 197 | |
| 198 | if (currentSelectedControl != nullptr) |
| 199 | { |
| 200 | Vec2<int> border = currentSelectedControl->getLocationOnScreen(); |
| 201 | if (glowindex < 256) |
| 202 | { |
| 203 | fw().renderer->drawRect(border, currentSelectedControl->Size, |
| 204 | Colour(glowindex, glowindex, glowindex), 3.0f); |
| 205 | } |
| 206 | else |
| 207 | { |
| 208 | int revglow = 255 - (glowindex - 256); |
| 209 | fw().renderer->drawRect(border, currentSelectedControl->Size, |
| 210 | Colour(revglow, revglow, revglow), 3.0f); |
| 211 | } |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | bool FormPreview::isTransition() { return false; } |
| 216 |
nothing calls this directly
no test coverage detected