f4611498d98c0a242e300873857cd7934d78c684
Widget trait gains set_named_color/double/int/bool/string, set_y_range, set_anchor and set_value_str (default: false = model-only). XGraph gains axis/line/up/down/candle/annotation/text colours + line_width (per-kind table defaults); the y-labels use axis_color and Line series use line_width. InstrumentWidget gains brightness (C lamp factor 0.08+0.92*b/100 plumbed into draw_led/draw_panel_lamp/draw_beacon, per-tier into draw_stack_light, channels+lens into draw_rgb_led), decimal_places (LedDigits formatting) and stack tier brightness, plus the full colour/level/on dispatch (lens/lit/dim routed per kind). ChartWidget gains anchors + overlay colour and dispatches colours into the XGraph (and any series present), view/axis props into the PlotView, y-range and anchors. Toggle/Button dispatch "on" (checked / latched). Props with no Rust counterpart (alarm bands, flash-rate/phase, switch line-widths/positions, per-indicator colours, symbol/labels, etc.) return false and stay model-only; the generator still emits them.
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.
Languages
Rust
92.6%
Python
6.6%
Shell
0.5%
C++
0.2%
Makefile
0.1%