| 39 | } |
| 40 | |
| 41 | void BasicAppMultiWindow::createNewWindow() |
| 42 | { |
| 43 | app::WindowRef newWindow = createWindow( Window::Format().size( 400, 400 ) ); |
| 44 | newWindow->setUserData( new WindowData ); |
| 45 | |
| 46 | // for demonstration purposes, we'll connect a lambda unique to this window which fires on close |
| 47 | int uniqueId = getNumWindows(); |
| 48 | newWindow->getSignalClose().connect( |
| 49 | [uniqueId,this] { this->console() << "You closed window #" << uniqueId << std::endl; } |
| 50 | ); |
| 51 | } |
| 52 | |
| 53 | void BasicAppMultiWindow::mouseDrag( MouseEvent event ) |
| 54 | { |
nothing calls this directly
no test coverage detected