| 242 | } |
| 243 | |
| 244 | void GLPanel::removeChild(GLPanel *childPanel) { |
| 245 | auto i = std::find(children.begin(), children.end(), childPanel); |
| 246 | |
| 247 | if (i != children.end()) { |
| 248 | children.erase(i); |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | void GLPanel::drawChildren() { |
| 253 | if (!children.empty()) { |