MCPcopy Create free account
hub / github.com/Tracktion/choc / setupWindow

Method setupWindow

examples/webview_desktop_app.cpp:44–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 std::unique_ptr<choc::ui::WebView> webView;
43
44 void setupWindow()
45 {
46 window.setWindowTitle ("CHOC WebView Desktop App Example");
47 window.centreWithSize (800, 600);
48 window.setResizable (true);
49 window.setMinimumSize (400, 300);
50
51 // Set up close callback
52 window.windowClosed = []()
53 {
54 std::cout << "Window closed, stopping message loop...\n";
55 choc::messageloop::stop();
56 };
57 }
58
59 void setupWebView()
60 {

Callers

nothing calls this directly

Calls 5

stopFunction · 0.50
setWindowTitleMethod · 0.45
centreWithSizeMethod · 0.45
setResizableMethod · 0.45
setMinimumSizeMethod · 0.45

Tested by

no test coverage detected