cnmcdee ee1519ee5a Task 4: route ButtonRelease, MotionNotify and KeyPress to the right widget in generated apps
Same pressed/focused routing as the C generator: generated event loop tracks pressed_widget (set on a handled ButtonPress) and focused_widget (click-to-focus). ButtonRelease goes to the pressed widget even if the pointer moved off it; MotionNotify goes to the pressed widget while a press is held (drag), otherwise to the topmost widget under the pointer; KeyPress goes to the focused widget only. ButtonPress hit-testing, Expose, ConfigureNotify and ClientMessage unchanged. Verified live under Xvfb on hot_chicago: the Rust designer generates main.cpp with the new loop. The generated loop is line-for-line the same one proven live in C with an instrumented 4-widget app (keys only to the focused entry, hover only to the widget under the pointer, drag/release only to the pressed button). The Rust designer canvas does NOT share this loop (it already targets release/motion/keys by selection/hit-test), so it is unchanged.
2026-12-02 05:33:11 +00:00

lightgui_rust — LightGUI ported to Rust

Rust port of LightGUI (HEAD eb0b5fc): an XFrame-native form designer with 547 XFrame widgets. See PORTING_PLAN.md for the survey and module map.

Workspace

Crate C++ source Status
crates/lightgui-core src/model.h, src/props.h, src/events.h, src/project_io.cpp, canonicalize() in src/main.cpp done
crates/lightgui-gen src/generator.cpp / src/generator.h (emits C++/XFrame, byte-identical) done
crates/lightgui-debug src/debugger.cpp / src/debugger.h (GDB/MI) in progress
crates/lightgui-support data extraction (registry, palette, indicators) in progress

probe/ is the step-0 crates.io probe (standalone, excluded from the workspace). data/ / tools/ are generated data + extraction tooling.

Build / test

cargo test    # workspace; rustc/cargo are login-shell-only: use `bash -lc`
cargo build   # must be warning-free (the C++ build was zero-warning)

Rust 1.100.1 stable, GTK 3.24 (gtk-rs 0.18), serde/serde_json 1.0.

S
Description
No description provided
Readme
2.4 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 92.6%
Python 6.6%
Shell 0.5%
C++ 0.2%
Makefile 0.1%