0bdc9e2da8492e6a01f99796a301da2f73bb1bfa
refresh_item_style now reads the font-name/size/bold/italic props and picks the first loadable XLFD from the candidate chain (probed here, font id cached in a new CanvasBackend font_ids map). redraw_canvas installs each item's style font into the GC before drawing it (resolve_font fills metrics on first use; the cached font id is rebound on later redraws) -- this also fixes the pre-existing bug where a widget with a custom background/border drew no label text at all. apply_prop gains enabled (alias sensitive), items, lower/upper (via set_range), page-increment, page-size, step-increment, password, show-password, direction, cursor-visible, selection-mode (3 -> multi-select), font-* (via refresh_item_style), constraint clamping and AutoSize (apply_autosize: longest line + 16, (ascent+descent)*lines + 8, clamped to constraints and 24x16). resize_item clamps to the min/max constraints.
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%