Skip to content

BlaiseUI v0.1.0

Latest

Choose a tag to compare

@graemeg graemeg released this 30 Nov 15:52
· 3 commits to master since this release

BlaiseUI v0.1.0

The first release of BlaiseUI, a cross-platform GUI toolkit written in Blaise Object Pascal (176 commits, 2026-10-30 to 2026-11-30).

BlaiseUI is custom-drawn, has no third-party runtime dependencies, and renders identical pixels on every platform. Hexagram, the IDE for Blaise, is built on it.

Platforms

Platform Backend Notes
macOS (arm64) Cocoa, with a Metal renderer Bound at run time through the Objective-C runtime; VoiceOver through the NSAccessibility bridge.
Linux (x86_64) Wayland and X11 Both protocols spoken directly (no Xlib or libwayland); AT-SPI over the toolkit's own D-Bus client; libxkbcommon loaded on Wayland for keymaps.
FreeBSD (x86_64) Wayland and X11 As Linux; tested less often.
Windows (x86_64) Win32 Windows 11; the tests pass with the same goldens as the other platforms.
Any Headless No display: tests, CI and screenshots.

What is in the box

  • Widgets: labels, buttons, check boxes, radio buttons, edits, memos, a code editor (folding, gutters, marks), sliders, spin boxes, progress bars, combo boxes, menus and a menu bar, tool bars, tabs, splitters, scroll areas, list, tree, table, icon and card views, tooltips, dialogs, a file dialog with places and drag and drop, and media widgets (video view and timeline).
  • Layout: box, grid and stack containers, with pixel snapping and right-to-left mirroring.
  • Commands and shortcuts that follow each platform's conventions (Cmd on macOS, Ctrl elsewhere).
  • Themes with light and dark variants, painted through overridable painters, and a high-contrast theme.
  • Text: TrueType and CFF fonts (Noto Sans embedded), kerning and basic GSUB/GPOS shaping, grapheme and line segmentation, bidi (Unicode 15.1, every conformance test passes), and input methods.
  • Rendering: an exact, multi-threaded software rasteriser with a glyph cache, and a GPU renderer for Metal. The software renderer is deterministic: the golden images are byte-for-byte the same on macOS, Linux and Windows.
  • Clipboard: the system clipboard on macOS, Windows and X11 (CLIPBOARD and PRIMARY, with incremental transfers for large text).
  • Accessibility and testing: every widget describes itself in a semantic tree, which the screen-reader bridges and the headless test driver both read. Golden-image tests run with no display.
  • No third-party dependencies: PNG and JPEG decoders, inflate, font parsing, text shaping and a D-Bus client are all part of the toolkit.

Using it

Each library module is in the PasBuild registry. Add the modules to your project.xml, and PasBuild downloads, verifies and builds them with your compiler:

<dependencies>
  <dependency><name>bui-widgets</name><version>0.1.0</version></dependency>
  <dependency><name>bui-platform-default</name><version>0.1.0</version></dependency>
  <dependency><name>bui-toolkit-cocoa</name><version>0.1.0</version></dependency>
</dependencies>

Getting Started covers the rest, and the Pocket Ledger tutorial builds an application in nine steps. Both guides are also attached below as EPUB books, for reading offline or on an e-reader.

Requirements: Blaise 0.16.0 or later and PasBuild 1.11.0 or later. PasBuild loads OpenSSL 3 to reach the registry (on macOS, install it with Homebrew or MacPorts).

Known limitations

  • Windows: no screen-reader support yet (the UI Automation bridge is designed, not written), no drag and drop between applications, and scaling and input methods have not been checked on real hardware.
  • Linux: the Wayland backend's clipboard works within the application only (BUI_BACKEND=x11 gives the system clipboard through XWayland). Text copied on X11 is lost when the application quits unless a clipboard manager has kept a copy. On a compositor that draws no window frames (GNOME, weston) the toolkit uses XWayland, as it cannot draw its own frames yet.
  • macOS: VoiceOver works but has rough edges; menus are in the window, not in the global menu bar.
  • Still to come: a stand-alone scroll bar, toolkit-drawn window frames, and GPU rendering on Linux and Windows.
  • The API may change between 0.x releases.

Release artefacts

You don't need to download anything here to use BlaiseUI: PasBuild fetches the modules from the registry. The bui-*-src.zip files are what the registry points at, and the EPUBs are the two guides, for reading offline.

Archive Contents
bui-<module>-0.1.0-src.zip (14) Each library module's sources, LICENSE, NOTICE and a stand-alone project.xml; these are the archives the registry entries point at.
blaiseui-0.1.0-getting-started.epub The Getting Started guide, for reading offline.
blaiseui-0.1.0-tutorial.epub The Pocket Ledger tutorial, for reading offline.
SHA256SUMS SHA-256 checksums of the files above.

The 14 library modules: bui-core, bui-platform, bui-platform-cocoa, bui-platform-wayland, bui-platform-x11, bui-platform-win32, bui-platform-default, bui-graphics, bui-graphics-gpu, bui-graphics-metal, bui-text, bui-toolkit, bui-toolkit-cocoa and bui-widgets.

Tests: 601 tests pass on macOS arm64 and Linux x86_64, and the 512 for the modules that run on Windows pass in a Windows 11 guest, all with the Blaise 0.16.0 and PasBuild 1.11.0 releases. The widget goldens also pass through the GPU renderer, with both the reference executor and Metal.

BlaiseUI is licensed under the Apache License 2.0 with the Runtime Library Exception, the same as Blaise.