acce7e143f2aa7fe1ebe29db18a5f034150dad0d
Mirror of the C++ fixes (same defects existed in the Rust designer): - ComboBox/Listbox: new editable items prop (pipe-separated, default Item 1|Item 2|Item 3); the preview rebuilds from it (rebuild_combobox / rebuild_listbox in canvas.rs), the generator emits one append_text / list_box_insert per item. active / selection-mode unchanged. - Scrollbar: editable lower/upper/step-increment/page-increment/ page-size; the preview reconfigures the adjustment, the generator emits them. value/inverted unchanged; defaults preserve 0-100/1/10/10. - Text: new text prop (same as Memo); preview and generator use it, falling back to the widget name when empty. - Memo: preview now uses the text prop (was hardcoded to the name); added cursor-visible (same as Text). - Border (GTK): border-width/border-color/border-radius in the common prop set; preview (refresh_item_css) and generator (colour_lines) emit border + border-radius CSS. Defaults (0/empty/0) preserve the current appearance. The XFrame border is NOT wired here: the Rust layout has no place-file channel (it reads the selection file directly), so there is no per-widget border path to it; the GTK border works. - Generator region markers: // #region -> //region (and #endregion), matching the C++ generator since the audit; the Rust generator had never tracked that change, which the refreshed fixtures exposed. Verified: cargo test --workspace under Xvfb, all suites ok, including generator_matches_cpp_fixtures (390 files byte-for-byte).
lightgui_rust — LightGUI ported to Rust
Rust port of LightGUI
(HEAD eb0b5fc): a C++/GTK 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++/GTK, byte-identical) |
in progress |
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.
Languages
Rust
92.7%
Python
6.5%
Shell
0.5%
C++
0.2%
Makefile
0.1%