MCPcopy Create free account
hub / github.com/cinder/Cinder / createNewWindow

Method createNewWindow

samples/BasicAppMultiWindow/src/BasicAppMultiWindowApp.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void 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
53void BasicAppMultiWindow::mouseDrag( MouseEvent event )
54{

Callers

nothing calls this directly

Calls 4

getNumWindowsFunction · 0.85
FormatClass · 0.50
sizeMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected