| 210 | } |
| 211 | |
| 212 | CanvasElement* Canvas::get(const std::string& id) |
| 213 | { |
| 214 | for (auto& elem : m_elements) |
| 215 | { |
| 216 | if (elem->getId() == id) |
| 217 | { |
| 218 | return elem.get(); |
| 219 | } |
| 220 | } |
| 221 | return nullptr; |
| 222 | } |
| 223 | |
| 224 | void Canvas::render(Sprite& target) |
| 225 | { |
no test coverage detected