| 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 | |
| 39 | private: |
| 40 | choc::ui::DesktopWindow window { {100, 100, 800, 600} }; |
no test coverage detected