← All projects
Project record1 mention
Originally shared on Hacker News

Cross-platform C UI Library

This library is a cross-platform UI toolkit written in C that leverages the OS as much as possible without using native widgets outright, with a focus on letting the library's user customize the look of controls. Its API is DOM-inspired, building interfaces from styleable divs in pure retained mode. Platform implementations include a custom NSView with CoreAnimation layers and nested NSTextView on macOS, a custom class using Windows.UI.Composition surfaces with a windowless RichEdit control on Windows, and a custom QWidget with nested QTextEdit on Linux; context menus are native on each platform.

Last shared For Developers building cross-platform applications with the library
01 / The problem

What it addresses

Native UI with native controls has mostly died off for complex cross-platform applications, and implementing native-look controls cross-platform never works well (e.g., Win32 tab bars lack close buttons and Cocoa tabs aren't suited to them).

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Cross-platform C UI Library

    This library is a cross-platform UI toolkit written in C that leverages the OS as much as possible without using native widgets outright, with a focus on letting the library's user customize the look of controls. Its API is DOM-inspired, building interfaces from styleable divs in pure retained mode. Platform implementations include a custom NSView with CoreAnimation layers and nested NSTextView on macOS, a custom class using Windows.UI.Composition surfaces with a windowless RichEdit control on Windows, and a custom QWidget with nested QTextEdit on Linux; context menus are native on each platform.

    Problem: Native UI with native controls has mostly died off for complex cross-platform applications, and implementing native-look controls cross-platform never works well (e.g., Win32 tab bars lack close buttons and Cocoa tabs aren't suited to them).

    Audience: Developers building cross-platform applications with the library

    Posted by @sirwhinesalot · Original source ↗

    Source text · @sirwhinesalot · · Source ↗

    I've been working (very slowly) on a cross-platform UI library written in C. It uses as much as it can from the OS without outright using the native widgets for everything. Rather the focus is on letting the user of the library customize the look of the controls as they see fit.