| 283 | } |
| 284 | |
| 285 | void Window::DisplayContextMenu(const std::vector<ContextMenuEntry>& entries, vector2i_t pos){ |
| 286 | if(pos.x == -1 && pos.y == -1){ |
| 287 | pos = lastMousePos; |
| 288 | } |
| 289 | |
| 290 | std::ostringstream serializedEntries; |
| 291 | for(const ContextMenuEntry& ent : entries){ |
| 292 | serializedEntries << ent.id << "," << ent.name << ";"; |
| 293 | } |
| 294 | |
| 295 | std::string str = serializedEntries.str(); |
| 296 | |
| 297 | WMClient::DisplayContextMenu(pos.x, pos.y, str); |
| 298 | } |
| 299 | |
| 300 | void Window::CreateMenuBar(){ |
| 301 | menuBar = new WindowMenuBar(); |
no test coverage detected