tools/visreg/run.sh re-renders every widget example the same way the
pythondoc sweep did (Xvfb, import -window root, crop to window size),
diffs each shot against its golden with ImageMagick RMSE (normalized,
0.5% threshold), and writes out/report.md + report.json with per-widget
PASS/FAIL and diff percentages. Goldens vendored from the pythondoc
sweep shots. Full run on a clean tree: 547/547 PASS, max diff 0.0%.
Cairo drawings for all 103 kinds in lightgui/xframe/stock.py and
instruments.py (seeded 250-bar demo series so charts show their
colours with no series data; ddaf4bd anchor guard: ParallelChannel /
Pitchfork draw with 0-2 anchors; plot guard below 16px height).
Property tables generated by tools/gen_props_phase6.py from the C
Phase 4 tables (103 kinds, 1008 props, 116 distinct names; symbol
model-only; corrected up/down rgb(0,150,0)/rgb(200,30,30)).
Registry-name dispatch in core.lookup so kind-sharing entries
(IndVWAP/IndAnchoredVWAP kind VWAP, TArrow kind Arrow) keep their
own archetype drawings and generic-only tables.
- tools/gen_props.py parses /opt/lightgui/src/props.h (common_props +
props_for tables, enum labels/values) and the 547-kind palette,
emitting lightgui/props.py; REQUIRED spot-checks enforce the
proposal SS2.1-SS2.10 lists against the C tables.
- Every kind gets the 43-prop generic set (Name, geometry, Color,
Font Name/Size/Color/Style, Border, Enabled, Visible, Hint,
ShowHint, Cursor, TabOrder, TabStop, Constraints, BorderSpacing,
AutoSize, Tag, Align, Anchors); 38 family custom tables cover the
generic widgets. Stock/Instrumentation get the generic set only
(Phase 6 adds theirs via register_custom_table()).
- Lazarus display names + model_only flags (stored, generator
comments, no live canvas effect); validate() canonicalises
bool/int/double/enum/color or raises ValueError.