UI API (libui.h)
Interact with the BoredOS Window Manager (WM).
---
For an application to be visible on the screen, it must interact with the BoredOS Window Manager (WM). The tools required for this are located in `src/userland/libc/libui.h` and `libui.c`.
## 🧠Core Concepts
The UI library sends requests (via `SYS_GUI`) to the kernel to reserve an area on the screen (a `Window`) and then issues commands to color specific pixels within that area. The kernel is responsible for compositing this area over other windows.
## 🪟 Example: Creating a Window
First, include the library and define an event structure:
```c
#include