LCUI is a C library for cross-platform desktop GUIs with custom-drawn widgets, CSS layout, XML UI, and TypeScript JSX build tooling.
Overview
LCUI is a C library for building graphical desktop applications with a widget tree, events, and a frame-driven main loop. It targets Windows and Linux with fully custom-drawn controls so appearance stays consistent across platforms.
Widgets cover buttons, inputs, selects, dialogs, and related controls. Layout and styling use a CSS parser and selector engine similar to web development. High-DPI displays are handled with automatic scaling.
Developers may describe interfaces in XML, C code, or TypeScript JSX processed by the lcui CLI into C sources. The stack builds on bundled libraries for utilities, rendering, platform windows, threading, routing, and UI server mapping.
LCUI is positioned for small desktop tools rather than large GPU-heavy interfaces. It is not a browser engine; it borrows web-like authoring ideas while rendering natively.
Key features
- Cross-platform Windows Linux
- Custom-drawn widget set
- CSS layout and styling
- XML-defined interfaces
- TypeScript JSX to C build
- DPI-aware scaling
- Widget tree and events
- xmake-based builds
Use cases
- Small native desktop utilities
- C apps needing simple GUIs
- Teams with web CSS familiarity
- Todo and form-style tools
- Cross-platform internal tools