| 226 | } |
| 227 | |
| 228 | void onResize(const ResizeEvent& ev) override |
| 229 | { |
| 230 | const uint width = ev.size.getWidth(); |
| 231 | const uint height = ev.size.getHeight(); |
| 232 | const double scaleFactor = getWindow().getScaleFactor(); |
| 233 | |
| 234 | bgIcon.setWidth(width - 4 * scaleFactor); |
| 235 | bgIcon.setHeight(width - 4 * scaleFactor); |
| 236 | |
| 237 | lineSep.setStartPos(width, 0); |
| 238 | lineSep.setEndPos(width, height); |
| 239 | } |
| 240 | |
| 241 | private: |
| 242 | Callback* const callback; |
nothing calls this directly
no test coverage detected