Build your own
UI framework.
Start with a connection to the desktop. Build up to rendering, layout, input, and apps running on your own framework.
Five chapters · Twenty stagesConnect to the display
Acquire your first native resource: an X11 connection.
Open Stage 01Prerequisites Basic C++ and a Linux terminal. No X11 experience needed.
SetupCourse syllabus
Learn the mechanism, run an example, then build and check it in your own project.
01 Desktop foundations
02 Rendering
03 Layout
04 Input and state
05 Text and applications
After the capstone: bring web-like UI capabilities to native
Start here
Use one Linux repository for all stages. Work from its root. The checker uses Python 3, CMake 4.0+, Make, and a C++ compiler. For X11 stages install development headers for XCB, pkg-config, a C compiler (for the checker’s observer), and Xvfb. Common distro package names are libxcb1-dev and xvfb on Debian/Ubuntu, or libxcb and xorg-server-xvfb on Arch. Your session desktop alone is not a substitute for the isolated X server.
python3 course/check.py --list
python3 course/check.py setup-build
The checker snapshots CMakeLists.txt and src/, builds that copy using Unix Makefiles, then tests the freshly built target/debug/gpui_cc. It leaves your project and normal desktop alone. PASS means it saw the expected behavior. FAIL includes the mismatch. BLOCKED means the check could not run; it does not count as a pass. Add --verbose to see the commands and output. If Xvfb is not on PATH, pass --xvfb /path/to/Xvfb.
Each stage starts with a worked example you can run and change without touching the framework. Then run the checker before implementing the framework task. Confirm it is red for the expected reason. Edit and rerun until it is green. Add --previous to include applicable earlier checks. The bootstrap greeting is only checked when you select setup-build; subsequent stages still build from scratch.
After Chapter 1, the verification guide explains the native pixel checks and how to add your own CTest fixtures. Stay on the current stage until its checks are green.