Deft — Native GUI Framework for D
Build native, accessible desktop GUIs in the D programming language. Real platform controls, a delegate-based event system, and box & grid layouts.
Platforms
Deft is in active development, moving quickly toward its 1.0 release. Version 1.0 targets Windows; macOS (Cocoa) and Linux (GTK) are planned for future versions.
- Windows (Win32) — available
- macOS (Cocoa) — planned
- Linux (GTK) — planned
Features
- Automatic box layout (HBox and VBox) and table layout (Grid) that recalculate on resize
- A full set of native controls — labels, buttons, text fields, list, tree, and combo views, tabs, a status bar, menus with keyboard accelerators, a system-tray icon, and native dialogs
- A delegate-based event system for clean, modern event handling
- A small, modern D API with deterministic teardown and no Phobos dependency
- Screen-reader accessibility for free — standard platform controls work with JAWS and NVDA, no custom accessibility layer needed
Installation
Add Deft to your project with dub:
dub add deft
Requirements
- A D compiler — DMD 2.112 or later, or a recent LDC
- dub (ships with the compiler)
Source Code and Support
Deft is open-source software licensed under the Boost Software License 1.0.