| 339 | } |
| 340 | |
| 341 | int64_t WMClient::CreateWindow(int x, int y, int width, int height, unsigned int flags, const std::string& title) const { |
| 342 | Message ret; |
| 343 | |
| 344 | Call(Message(WMCreateWindow, x, y, width, height, flags, title), ret, WindowBufferReturn); |
| 345 | |
| 346 | int64_t key = 0; |
| 347 | if(ret.Decode(key)){ |
| 348 | return 0; |
| 349 | } |
| 350 | |
| 351 | return key; |
| 352 | } |
| 353 | |
| 354 | void WMClient::DestroyWindow() const { |
| 355 | Queue(Message(WMDestroyWindow)); |