lightgui.com An Opensource C++/Rust GUI IDE Alternative.
LightGUI is a visual C++/GTK 3 designer: 547 widgets, six windows, a code generator that emits .ui + C++ + Makefile + CMakeLists, a real GDB stepping debugger, and a code view you can now edit. With a full click-by-click debugger guide.
We are slowly expanding our original FDesigner with a Opensource C++ / Rust based IDE. It is completely opensource, and both repositories are under heavy development. We won't mince about it - AI is quickly doing the work that was done by hand in days that took years, so why not guide it and work with it?
History of The IDE
Back as far as the middle 1990's a powerful product from Borland Software existed named Delphi 2.0 (which came out in 1996.) It was far ahead of its time offering powerful widget based development, a stepping-debugger, event handlers, and compiled quickly to Windows 95. However it was coded in a now forgotten language - Pascal
This was a giant threat to the new ecosystems and Microsoft would declared war on it, poaching 34 of Borland's engineers resulting in a 1997 lawsuit.
Fast forward today, and these IDE's cost $1000's, and are really just priced out of the market for the small guy. The one exception was a free version that would remain a quiet forgotten fork was the Lazarus-IDE which still has it's own cult following, but again it's pascal, and not much support exists.
Enter LightGUI
LightGUI is a C++ rebuild of the author's fdesigner (Tkinter Rapid Designer), a ~7,000-line Python/Tkinter app. Being that it was super basic it's only job was to allow manual layouts of basic Tkinter widgets and the generation of some boilerplate code. LightGui builds off of this creating a C++ version that generates C++/GTK code, not Tkinter Python, and its own UI is GTK as well, defined in Glade .ui files.
The workflow is the whole point. Place widgets on a canvas at absolute positions — the GTK equivalent of Tk's .place() — drag, resize, align, multi-select. Edit every property in the Object Inspector, which is its own top-level window, separate from the layout, so the properties of the selected widget never cover the thing you are editing. Then File → Generate C++/GTK… writes the project out. The designer is one g++ invocation driven by a plain Makefile; there is no configure step and no external build system for LightGUI itself.
Six windows, each doing one job
The IDE opens six top-level windows, each doing one job: the designer canvas, the Widgets palette, the Object Inspector, the code view, the 547-widget palette, and the layout window. The Object Inspector is its own window, separate from the layout — 340×700 — so you can move, resize, and close each independently. Nothing is tabbed or folded away to make the program simpler; the separation is the design.
The code it generates
For each designed window, Generate emits:
<name>.ui— a Glade/GtkBuilder layout file (GtkWindow + GtkFixed, widgets at their designed x/y with width/height requests).<name>.h/<name>.cpp— a C++ class that loads the.uiwith GtkBuilder, fetches each widget by id, and declares one stub signal handler per connected signal (// Code block here), ready to fill in.- A
Makefileand aCMakeLists.txt— so a generated project builds with either tool. CMake build works from inside the designer, including rebuilding the last generated project and opening any directory holding aCMakeLists.txt.
Build the generated project with either path:
# Makefile path
g++ -o app *.cpp $(pkg-config --cflags --libs gtk+-3.0)
# CMake path
cmake -S . -B build && cmake --build buildProject files are JSON (.fdj), replacing the original's Python pickle format — so a project is readable, diffable, and portable.
547 widgets, 583 palette entries — with corrections
LightGUI ships two widget libraries in one IDE. The designer palette has 36 widgets (Window, Frame, Button, Label, Entry, CheckButton, RadioButton, ComboBox, ListBox, Menu, Notebook, TreeView, and more), each with its own 16×16 icon. Alongside it sits the XFrame library: 547 hand-drawn X11 widgets in 11 sections, each with its own demo, merged into the same IDE. The combined palette is 583 entries (36 designer + 547 XFrame), and the palette self-test covers all 583 — every entry resolves to a real widget.
The 547 break down into 14 archetypes, and every widget belongs to exactly one:
| Archetype | Widgets |
|---|---|
| Indicator | 250 |
| Container | 53 |
| Instrument | 49 |
| Chart | 36 |
| ListSel | 37 |
| Dialog | 25 |
| Display | 22 |
| Button | 21 |
| Toggle | 18 |
| Entry | 14 |
| Range | 13 |
| Label | 7 |
| Graph | 1 |
| Spreadsheet | 1 |
| Total | 547 |
Three corrections, stated openly, because the old numbers are still floating around. The widget families in the registry are Stock 37, Instrumentation 66, and X 2 — not 38 and 67. The shared StockData.h and InstData.h headers were counted as widgets by mistake; they are headers, not widgets. And the event kinds are 10, not 11. If you see 38, 67, or 11 anywhere, those are the old counts.
The stepping debugger — a real GDB session, not a toy
The debugger is a real GDB session over the MI protocol (gdb -q -i=mi2): Run, Continue, Step Over/Into/Out, Stop, Restart, breakpoints (file.cpp:123 or a function name, saved between runs), locals, a watch list, stack frames, and target stdout/stderr. It works on any program compiled with -g — including the projects LightGUI itself generates. The debugger harness runs 44 checks against real GDB, and all 44 pass.

That is the headline, but the useful part is the walkthrough. There is a full step-by-step debugger guide in the repo — docs/step-debugger-guide.md — 512 lines with 20 real screenshots taken from the actual GUI running under Xvfb, no mockups. It walks through two real debug sessions, click by click:
- Opening the debugger and turning on "Break on main", so every Run stops at the first line of
main(). - Setting breakpoints two ways — by typing a location (
console.cpp:23) and by clicking in the code window's gutter, where a red dot appears and the paused line shows solid red with a ▶. - Step Into a call to watch the locals switch frames, Step Out to return, and Step Over to walk a loop without following its calls — with the watch
sum + 1updating at every stop. - Conditional breakpoints (stop only when
i == 2), logpoints (print without stopping), watches, and the toolbar reference. - Debugging a generated project end to end: place three widgets, generate, build with
make CXXFLAGS="-g -O0 -Wall -std=c++17"(the generated Makefile doesn't add-gitself — the guide calls that out), run it under the debugger, and watch the generated window appear live.
The guide also documents the 8 bugs found while writing it — the breakpoint pane opening too narrow, list selection not sticking, Step Out in main() hitting a modal error, Stop timing out on a GUI app in gtk_main — reported honestly, not fixed, and not hidden. If you want to learn the debugger, start there: github.com/cnmcdee/lightgui/blob/main/docs/step-debugger-guide.md.

The code view is finally editable
The code window — the generated-code viewer — was deliberately read-only: no editing, no cursor, you could look but not touch. That is fixed as of commit 0206b69. The view is now editable with a visible cursor, a Save button and Ctrl+S to write the buffer back to the file, a dirty indicator, and a status bar. Type a fix, press Ctrl+S, and it is on disk.

One honest limit, stated in the code and the status line: the next Generate overwrites hand edits. There is no merge-back into the designer model — the code view edits the generated file, not the project. So edit, save, and know that regenerating will replace your changes. That is the trade-off, and it is written on the tin.
Install — one command
On Debian, Ubuntu, or ParrotOS, one command installs the whole toolchain from a bare system — compiler, GTK 3, CMake, GDB, Xvfb, Python:
sudo apt update && sudo apt install build-essential pkg-config libgtk-3-dev glade cmake gdb xvfb python3Then:
git clone https://github.com/cnmcdee/lightgui.git
cd lightgui
make
./ide # the full IDE: designer + palette + inspector + code view
./lightgui # the designer alonePer-distro install scripts (install-ubuntu.sh, install-debian.sh, install-fedora.sh, install-arch.sh, install-mint.sh, install-parrot.sh) are in the repo, each tested end to end in its own LXC container on 2026-11-28 — Ubuntu 24.04 (GTK 3.24.41), Debian 13 (3.24.49), Fedora 43 (3.24.52), Arch rolling (3.24.52), Mint 22.3 (3.24.33), and ParrotOS via its Debian 13 parent. The one gotcha worth knowing: on ParrotOS the backports suite is echo-backports, not trixie-backports, so if libgtk-3-dev conflicts with newer ATK runtimes, the fix is sudo apt install -t echo-backports libgtk-3-dev.
The tests, measured
| Suite | Result |
|---|---|
Full test suite (./tests/run_matrix.sh, under Xvfb) | green |
| Debugger harness (real GDB) | 44 / 44 checks |
| Palette self-test | 583 / 583 entries |
| Designer seam test (XFrame layout → LightGUI project → builds) | 136 mapped, 411 pass through unmapped |
| Code window tests | all pass |
The seam test is the one that matters most for a designer: an XFrame layout goes through the seam converter into a LightGUI project, generates, and builds. 136 of the 547 widgets map directly; the rest pass through unmapped and still build.
Where it lives
LightGUI is open source at github.com/cnmcdee/lightgui — main branch, MIT licence. Clone it, make, and you are placing widgets on a canvas in under a minute. The debugger guide is at docs/step-debugger-guide.md, and the project site is lightgui.com. And if you want the same designer in Rust — the whole thing ported, 547 widgets, byte-for-byte code generation — that is the next article.
