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

Method run

examples/webview_desktop_app.cpp:19–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }
18
19 void run()
20 {
21 std::cout << "Starting WebView desktop application...\n";
22 std::cout << "The application window should appear shortly.\n";
23 std::cout << "Close the window or press Ctrl+C to exit.\n";
24
25 // Initialize message loop and DPI awareness
26 choc::ui::setWindowsDPIAwareness(); // No-op on non-Windows platforms
27 choc::messageloop::initialise();
28
29 // Make window visible and bring to front
30 window.setVisible (true);
31 window.toFront();
32
33 // Run the message loop
34 choc::messageloop::run();
35
36 std::cout << "Application closed.\n";
37 }
38
39private:
40 choc::ui::DesktopWindow window { {100, 100, 800, 600} };

Callers 1

mainFunction · 0.45

Calls 5

setWindowsDPIAwarenessFunction · 0.85
runFunction · 0.85
initialiseFunction · 0.50
setVisibleMethod · 0.45
toFrontMethod · 0.45

Tested by

no test coverage detected