aad728a8aaaf4d10813f2507eb5df04e72f061d2
- Delete xframe-common::widget (StubWidget + duplicate Widget trait); the one trait is now xframe-widgets::Widget. - New xframe-common::target::CtxTarget: xframe_core::DrawTarget (and FontSource) adapter over DrawCtx, so the real widgets draw into the demo/layout windows. Text goes through DrawCtx::draw_text (PolyText8), keeping the black-bars fix intact. - xframe-core X11Target::draw_string: ImageText8 -> PolyText8 (same black-bars fix; the live target still had the bug). - xframe-demo / xframe-layout: create widgets via xframe_widgets::create, core StyleManager with the exact C++ default/dark styles, fonts resolved through the target; label text = registry kind (closest available approximation of each C++ constructor default text). - xframe-test-runner: doc note updated (real widgets under test now). - Fix pre-existing clippy error in xframe-common ico test (0*16+5 -> 5). - NOTE: do not run cargo fmt --all here: rustfmt inserts commas in the archetype_impl! macro call sites and breaks the build (verified); generated files are intentionally unformatted.
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.6%
Python
6.6%
Shell
0.5%
C++
0.2%
Makefile
0.1%