2025-06-13 23:59:36 +02:00
|
|
|
# HelloWindow Example
|
|
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
2025-11-22 20:58:42 +01:00
|
|
|
This example demonstrates the minimal code needed to create a window and show it on the screen. This uses the Framebuffer and Title capability.
|
2025-06-13 23:59:36 +02:00
|
|
|
|
|
|
|
|
## Expected Result
|
|
|
|
|
|
|
|
|
|
A empty window with the title "HelloWindow" shows onscreen.
|
|
|
|
|
|
|
|
|
|
## Highlighted Code Snippet
|
|
|
|
|
|
|
|
|
|
```cpp
|
2025-11-23 04:04:53 +01:00
|
|
|
WindowWayland window(1280, 720, "Hello Window!");
|
2025-06-13 23:59:36 +02:00
|
|
|
window.StartSync();
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## How to Run
|
|
|
|
|
|
|
|
|
|
```bash
|
2025-11-16 18:52:52 +01:00
|
|
|
crafter-build build executable -r
|
|
|
|
|
```
|