Every Ind* widget recomputes its lines from a loaded OHLCV series:
private recompute_lines() (moved out of the constructor), public
set_series()/load_csv()/clear_series()/series() matching the Stock*
chart widgets, same loader and CSV spec (StockData.h). Constructor
defaults keep the seeded 250-bar template; failed loads leave the
series untouched; clear_series() empties lines and draws clean.
Params that were constructor-only (fast/slow/period/...) are now
stored as members so a reloaded series uses the same settings.
Tests: widgets/tests/ind_csv_harness.cpp + test_ind_csv.py — 250/250
harnesses build, 250/250 numeric PASS, 39/39 screenshots PASS, 250/250
demo mains build. Docs: docs/stock-market-csv-data.md Indicators
section rewritten; all 250 cdoc pages updated (update-ind-csv.py).
One command rebuilds every examples Widget.cpp, re-renders it under
Xvfb, and diffs the screenshot against its golden with ImageMagick
RMSE (0.5 pct threshold):
tools/visreg/run.sh (also: make visreg)
Reuses the cdoc docs sweep render path (same g++ flags, same
Widget - XFrame demo window capture with the root-capture fallback).
Goldens vendored from /opt/lightgui-docs/shots (Dec 2, 2026). Report goes
to tools/visreg/report/report.txt (plus report.tsv and shots/); exit code
is 0 only when every gated widget passes.
Two deliberate behaviours, both documented in tools/visreg/README.md:
- failed shots are retried 3x (transient XOpenDisplay flakes; the docs
sweep needed a retry pass for the same four widgets)
- TTimeEdit, TDateEdit and TCalendar render the wall clock, so they are
reported SKIP (RMSE recorded, not gated) instead of FAIL
Baseline full run (Dec 2, 2026, HEAD beec92b): 544 PASS, 3 SKIP, 0 FAIL;
max RMSE among PASS 0.0000 pct (every passing widget pixel-identical).
Each examples/<Widget>.cpp is a minimal complete program: window +
widget (setup mirrors the widget demo) + standard event loop. Built,
run under Xvfb and screenshotted for the C widget docs.
Generated event loop now tracks pressed_widget (set on a handled ButtonPress) and focused_widget (click-to-focus). ButtonRelease goes to the pressed widget even if the pointer moved off it; MotionNotify goes to the pressed widget while a press is held (drag), otherwise to the topmost widget under the pointer; KeyPress goes to the focused widget only. ButtonPress hit-testing, Expose, ConfigureNotify and ClientMessage unchanged. Verified live under Xvfb with a generated 4-widget app (2 buttons + 2 entries) and an instrumented event log: keys go only to the focused entry, hover only to the widget under the pointer, drag motion and release only to the pressed button. The designer canvas does NOT share this loop (it already targets release/motion/keys by selection/hit-test), so it is unchanged.
27 widgets (18 dialogs, 2 calendars, 3 views, 4 choosers) get larger defaults via MIN_SIZES in widgets/tools/gen_registry.py, applied in default_size() and regenerated into widgets/common/registry.h. Verified live under Xvfb (dialogs sweep, 28 widgets, screenshots): 15 of the 18 originally-overflowing dialogs now fit at placement time (e.g. GtkAboutDialog 520x260, TPageSetupDialog 320x400, TColorDialog 520x300, picture dialogs 480x240). Three are internal draw-layout collisions, not placement size: TFindDialog Direction label overlaps Find Next, GtkFileChooserDialog Name header overlaps the path field, TFontDialog caption overlaps OK/Cancel (its lists expand to fill the dialog height).
Task 1: placing a widget now disarms placement mode — the next canvas
click places nothing until another palette widget is selected. Escape
(canvas or palette window) and clicking the selected palette entry
again also cancel an armed placement. Previously sel_type persisted
across placements, so every click placed another fresh widget.
Task 2: placing a widget refreshes the Code window at once
(Lazarus-style) via the placed callback -> refresh_code_view(), so the
generated code shows the new widget without pressing Generate.
Verified live under Xvfb (9/9 in c-place-verify.sh): place-once,
Escape-cancel, toggle-cancel, re-arm, code sync, clean app log.
Replace screenshots/01_designer.png with the newer designer shot:
canvas with Dialog/TextView/Option/TTimer, Object Inspector with
Widget properties, Bulk parameter and Colour palette, and the
Widgets palette. Same path, so the README link is unchanged.
The new shot is 1425x823 (the old one was 2560x1440).
The gutter (line numbers + fold markers) lived inside the scrolled
window, so clicking in the code let the text view scroll the whole
row horizontally: the scrolled window's hadj jumped to 76, exactly
the gutter width, and the gutter scrolled off-screen left. Resizing
did not bring it back.
Move the gutter out of the horizontal scroll: it now sits beside the
scrolled window in code_box, so it can never be scrolled away, and
only tracks the vertical scroll (on_gutter_draw shifts line positions
by the vadj value; gutter_line_at_y adds it back for fold/breakpoint
clicks; on_scroll_changed repaints). The scrolled window's shadow
is off so the first line starts exactly at the gutter's top edge.
Horizontal scrolling of long lines still works.
Verified live under Xvfb: click in the code leaves the gutter in
place; vertical scroll keeps line numbers aligned; clicking a fold
marker while scrolled collapses the region correctly.
The property editors in the grid sat at their natural width while
the Bulk parameter fields below filled the panel. Set hexpand on the
control in add_row so the control column takes the extra width, like
the Bulk fields. Entries, spins, combos and the entry+Pick boxes all
stretch; the label column stays narrow.
The font-name entry gets a Pick button (same pattern as the Color
Pick button) that opens a font chooser listing the available system
fonts. Choosing one sets font-name to the picked family; setting the
entry text fires the existing changed handler, so the pick
live-applies exactly like typing the name. Only the family is stored
(size/bold/italic stay separate properties). Added to both the GTK
and the XFrame property editors.
Pressing Enter in the password entry did nothing (the default-widget
chain does not fire under a nested gtk_dialog_run). Wire the entry
activate signal directly to Accept so Enter submits, matching the
usual password-dialog convention.
Adds Tools > Install Libraries: builds the designer as the user, then
installs system-wide as root (pkexec when present, else a GTK password
dialog feeding sudo -S). Installs the designer binary to
/usr/local/bin/lightgui, widget headers to /usr/local/include/lightgui,
designer UI + 547 palette icons to /usr/local/share/lightgui, and a
desktop entry + icon to the app menu. Headers are header-only, so no
shared libraries and no ldconfig step. The installed binary now finds
its UI and palette icons under /usr/local/share/lightgui, so it runs
from anywhere without the checkout. Install output is shown in the
scrollable log dialog.
The build-result dialog packed its ScrolledWindow with
gtk_container_add(), which packs a GtkBox child with expand=FALSE,
so the log area stayed at its ~2-line natural height pinned to the
top and the rest of the 700x420 window was wasted space. Pack it
with gtk_box_pack_start(..., TRUE, TRUE, 0) so it fills the dialog.
Also drop the 6000-char tail truncation (the log now scrolls, so the
whole build log is visible), wrap long lines so cmake command lines
are readable without horizontal scrolling, and start scrolled to the
end of the log (via an idle callback, so the scroll happens after
realisation/allocation and lands on the true last line) where build
failures are.
Verification find: typing rgb(255,0,0) into a StockChart up-color row
stored the value in the model but never redrew -- parse_hex_color()
accepted only #rrggbb, while the XFrame Inspector stores the raw entry
text and the Phase 4 colour defaults/display use the rgb(...) form
(the Pick... chooser stores hex, so chooser edits worked). Extend the
parser to the same set the generator's parse_color() accepts -- named
colours, #rgb/#rrggbb, rgb(r,g,b) (clamped) -- so live-apply and
generation can never disagree on a colour again. Affects every colour
prop edited by typing, not just Stock/Inst: background, foreground,
border-color go through the same parser.
The Rust generator needs the same capability/background tables in Rust
syntax (PHASE4_CAPS / PHASE4_BG_COLOR in crates/lightgui-gen/src/
gen.rs); the C++ modes emit C++ syntax, so add Rust-syntax modes.
emit_widget_props gains a generic Phase 4 loop driven by the capability
table from tools/gen_phase4_props.py (caps mode): one setter call per
Inspector-table prop the widget actually has, with the arg form from the
table kind (set_value(double) for gauges, set_value("...") for Seg
displays). Pairs are emitted together (minimum/maximum -> set_range,
y-min/y-max -> set_y_range, anchor-1/2/3 -> set_anchors3 when all six
components are present, else one set_anchor per complete anchor). The
StockChart branch keeps only the NOTE for data-file/indicators/drawings/
compare-files/scale-mode; its up/down colours now come from the generic
loop. The common background prop falls back to set_bg_color for
Stock/Inst classes that have it (kPhase4BgColor, bg mode).
xframe_core_apply_prop gains a Phase 4 block, first in the type-specific
section: for Stock*/Inst* classes, pairs apply together from the model
(minimum/maximum -> set_range, y-min/y-max -> set_y_range, anchor-N-bar/
price -> set_anchor) and every other table prop goes through the named
dispatch in registry.h (kind from find_prop). Unhandled props fall through
to the generic branches. background drives set_bg_color via
set_named_color(bg-color) for these classes, and a non-numeric value
falls back to set_value_str (Seg displays). props.h must be included before
X11 headers (Xlib.h defines Bool as int, breaking PropKind::Bool) and the
Bool kind is the else branch, never named.
Also fixes -Wmisleading-indentation in StockSectorComparison::set_labels_text.
src/props.h gains the generated Phase 4 tables (103 classes, 1008 props)
from tools/gen_phase4_props.py, dispatched on the exact XFrame class name.
The StockChart table is the legacy 8 props plus the candlestick chart's
own Phase 4 props; its up/down defaults are corrected to the widget's
real defaults rgb(0,150,0)/rgb(200,30,30) (the legacy rgb(0,200,0)/
rgb(220,0,0) did not match the widget). src/main.cpp refresh_xframe_props
falls back to the exact class name when xframe_type_key() returns "" so
every Stock*/Inst* class shows its own table, not just common props.
registry.h gains 8 Phase 4 IWidget virtuals (set_named_color/double/int/
bool/string, set_y_range, set_anchor, set_value_str), one SFINAE trait per
distinct Stock/Instrumentation setter, and Holder overrides with if-chains
over (prop -> setter). The named dispatch keeps the virtual count flat
while covering all 116 Phase 4 prop names.
gen_registry.py was stale: regenerating it deleted the hand-added Phase 2
colour virtuals and the whole Phase 3 block. tools/port_registry_blocks.py
ports those 60 virtuals/traits/overrides back into the template (verified:
regeneration is a byte-identical no-op) and inserts the Phase 4 blocks, so
registry.h is generated again, not hand-edited.
8 tank widgets gain set_alarm_hi_hi/hi/lo/lo_lo (member bands_);
StockSectorComparison gains set_labels_text (pipe-separated labels);
InstControlPanel gains set_grid_rows/set_grid_cols. tools/gen_phase4_props.py
parses the C headers and emits the per-widget Inspector tables (C++ and
Rust) plus the generator capability table from one source of truth.
set_anchors() leaves only 2 anchors, but draw() indexed anchors_[2]
unconditionally (abort under _GLIBCXX_DEBUG; stale slot read otherwise).
ParallelChannel now falls back to the midline for the outer line and
draws only the anchors present; Pitchfork falls back to a trendline
through the two anchors (tines need the third anchor).
The Inspector window had no scrolled window: props_grid sat directly
in props_box, so every row below the window bottom edge was built but
unreachable -- no scrolling was possible at all. Phase 1 added ~15
rows to the common set (constraints, margins, autosize, tag, anchors,
align), so the lower half of the generic set and the Events section
were invisible and uneditable. The grid now lives in a vertically
scrolling window (verified live: tag, anchor-top/left/right/bottom,
align and Events all reachable).
A wildcard XLFD pattern can match a two-byte font first (e.g. a JIS
fixed font at size 16, which has no misc twin). XDrawString with
1-byte Latin text draws nothing with such a font, so widget labels
vanished whenever the font size resolved to one (size 16 confirmed:
JIS min_byte1=33; Sony and misc 1-byte fonts render fine). Both
font-resolution paths now list every match per pattern and return
the full XLFD name of the first single-byte font
(min_byte1 == max_byte1 == 0): font_xlfd_for (designer canvas) and
the emitted lightgui_pick_font helper (generated apps). Also silences
the -Wmissing-field-initializers warning on the Placed aggregate init
and adds the missing <cstdio> include to the shared core header.
05_menus failed the matrix with -Wunused-parameter: a menubar-only
design uses new_w alone, so new_h is unused (and a bottom-only
anchor set would leave new_w unused). The generator now emits
(void)new_w; / (void)new_h; when the lambda body does not use that
size.
props.h: common_props gains enabled, visible, font-name/size/bold/
italic/underline/strikeout, hint, show-hint, cursor, tab-order,
tab-stop, min/max-width/height, margin-*/around, autosize, tag,
anchor-top/left/right/bottom and align (None|Top|Bottom|Left|Right|
Client); Entry visibility replaced by password + show-password
(generator still honours legacy visibility=false).
generator.cpp: Anchors/effective_anchors (align maps to anchor
sets), lightgui_pick_font helper (XLFD candidate chain, emitted
only when a widget has a custom font) + conditional <cctype>,
apply_autosize helper (emitted only when a widget has autosize),
per-widget font into emit_widget_styles, Entry password/
show-password, Listbox selection-mode 3 -> set_multi_select,
Menubutton direction, Scrollbar lower/page-increment, Text
cursor-visible, enabled/visible via the IWidget virtuals, a
model-only NOTE comment (hint, tooltip-text, tag, cursor,
tab-order, tab-stop, margins, show-hint, font-underline/
strikeout), the apply_anchors resize lambda (Flag 1) called from
ConfigureNotify, and an apply_autosize call per autosize widget.
New props emit only when non-default, so 02_all_types stays
byte-identical.
main.cpp: GTK apply_prop guard -- the new generic props never reach
g_object_set with unknown names (enabled -> set_sensitive, tab-stop
-> can-focus, min-width/height -> size request, hint -> tooltip,
margin-around -> margin; the rest model-only in the GTK designer).
XFrame Inspector handlers sync the geometry spins after apply
(autosize / constraint clamping can resize the widget).
The GtkMenuButton standalone demo includes the component-local
(core/xframe_core.h) copy first, which lacked xf::draw_triangle_left
that the direction work (C1) calls -- the demo build failed while
the designer build worked (registry.h includes another component
first, whose core include resolves to the shared copy, and the
include guard then skips this copy). Mirror of draw_triangle_right
in this file.
GtkEntry::set_placeholder_text takes std::string BY VALUE, so the
exact-signature static_cast detector never matched it and the
Holder set_placeholder_text was a silent no-op. The detector now
uses the callable pattern
decltype(std::declval<T&>().set_placeholder_text(std::declval<std::string>())).
registry.h regenerated; verified by the standalone registry test
(set_placeholder_text now resolves and returns true).
rebuild_widget_style builds a per-widget w{id}_style (background,
foreground, border-width/color/radius, per-widget font via an XLFD
candidate chain probed with XListFonts) on the placement border style
when one exists; the w style always owns its font so delete_style is
safe, and the border_<id> style is never deleted. Background also
drives set_fill_color on the classes whose draw overrides style fill
(Entry/TextView/Memo/PasswordEntry/SearchEntry). Full apply_prop
dispatch for the generic set plus value/range/step/page/lower/upper/
fraction/digits/active/items/password/direction/cursor-visible/
selection-mode/orientation/draw-value/editable/max-length/placeholder/
wrap/xalign/selectable/inconsistent/show-heading/show-day-names/color,
autosize (resize to fit caption/text, measured with the resolved
style font) and min/max constraint clamping in resize paths and
handle drags. Model-only props (anchors, align, tab order, cursor,
tag, margins, hints, font underline/strikeout) are stored only.
Adds set_value, set_active, set_active_index, set_items,
set_fill_color, set_range, set_digits, set_fraction, set_draw_value,
set_editable, set_max_length, set_placeholder_text, set_wrap,
set_wrap_mode, set_xalign, set_selectable, set_inconsistent,
set_show_heading, set_show_day_names, set_color_rgb,
set_orientation_vertical, set_page_size, set_upper, set_step,
set_lower, set_page_increment, set_password, set_show_password,
set_direction, set_cursor_visible, set_multi_select, and get_text.
Default no-op (false / empty), Holder overrides via SFINAE with
exact-signature static_cast member pointers, so a bool never matches
set_active(int) and a double never matches set_value(int). registry.h
is generated from gen_registry.py; the diff is additions only.
ComboBox/ComboBoxText/ListBox set_items (pipe-separated, live canvas
only; generator keeps emitting per-item calls); ListBox multi-select
(set_multi_select, toggle on click, draw highlights the set);
Scrollbar lower_ + page_increment_ (clamp/thumb/Home/End honour lower,
PgUp/PgDn use page-increment); Entry password_ + show_password_ (masked
with * unless revealed); MenuButton direction_ (0=Up 1=Down 2=Left
3=Right 4=None, arrow zone moves to the matching side); TextView
cursor_visible_ (gates the caret). Shared core gains
SStyle_Manager::add_widget_style (per-widget style clone that owns its
font, so delete_style is safe on it; unlike add_border_style, which
shares the base font) and xf::draw_triangle_left.
The Inspector read g_selected, a GTK Item* that real palette placements
never create, so it always showed Window (Root). The canvas now notifies
the designer on selection change (xframe_canvas_set_selection_callback,
fired after press/key/place/select/delete); the Inspector mirrors the
selected widget into g_xframe_sel with geometry spins, property editors
(mapped to the GTK prop/event tables), events and delete, and Inspector
edits live-apply (text/label/caption, enabled, visible via SFINAE
setters on IWidget/Holder) and persist to codegen through per-widget
props/signals stored in the core and copied by snapshot_project().
Also syncs the generator template (gen_registry.py) with the
hand-edited registry.h, verified by byte-identical regeneration.
The reported symptom (a blank line after every line of generated
source) was investigated Nov 29, 2026 and does NOT reproduce in the
current generator: all 16 gen_matrix cases measure a
blank-after-content ratio of 0.01-0.06 (section separators only),
while double-spaced output scores ~1.0. This guard pins the clean
output so a regression fails loudly: tests/blank_lines_guard.py
checks every generated .cpp/.h under tests/out/ for a
blank-after-content ratio >= 0.20, and run_matrix.sh runs it right
after generation. Scope is source files only (README/Makefile are
short files whose paragraph/rule breaks legitimately score 0.25-0.34).
Verified: PASS on clean output (16 files); FAILs a double-spaced
file at ratio 0.99. Matrix: all 16 cases + guard pass.
Widgets are header-only (common/ + core/ + components/, 1100
headers), so make install copies them to
PREFIX/include/lightgui (default /usr/local/include/lightgui).
The generator now emits that as the default WIDGETS_DIR /
LIGHTGUI_WIDGETS_DIR instead of the hardcoded /opt/lightgui/widgets;
the -DLIGHTGUI_WIDGETS_DIR / make WIDGETS_DIR override still works.
Verified: make install puts 1100 headers in place; a generated
project builds with -I/usr/local/include/lightgui only and its
Makefile/CMakeLists contain no /opt/lightgui reference.
The drag removal left on_button_release with an unused button
parameter in GtkWindow and GtkApplicationWindow. Add (void)button.
TForm uses button, so it needed no change. Build is 0 warnings.
Root cause: GtkWindow, TForm and GtkApplicationWindow implemented
title-bar drag-to-move (drag_/dragging_ set on title-bar press,
on_motion moved the whole widget). In the generated app that let the
user drag a window widget around by its title bar -- widgets behaved
like design objects. Verified: dragging Toplevel_001 (GtkWindow) by
its title bar moved it before this change; after, it stays put.
Regular widgets (Button etc.) never moved -- only the three window
widgets had drag code. Removed the drag-to-move from all three
(members, press-to-start-drag, motion move, release clear). The
designer canvas still moves widgets via its own set_bounds path, so
design-time moving is unaffected. The Rust repo shares these widget
headers (/opt/lightgui/widgets), so Rust-generated apps get the fix
too.
The XFrame canvas (GtkFixed + DrawingArea in the scrolled window)
kept its fixed 800x600 size request when the designer window was
resized, leaving the dark viewport background visible as a border
around it. A size-allocate handler on the viewport now resizes the
canvas (and the project, which shares its size) to the viewport
allocation. The resize is deferred to an idle callback: the
size-allocate signal fires after the viewport has already allocated
its child for this pass, so resizing inside the handler lagged one
resize behind.
Verified geometrically under Xvfb/openbox: canvas X window tracks
the viewport exactly (1150x683 @ 1150x720, 1400x863 @ 1400x900,
900x563 @ 900x600); unfixed build stayed 800x600 at all sizes.
SELFTEST PASS.
alloc_rgb was emitted unconditionally and warned as unused under
-Wall -Wextra when the project has no background. It is now emitted
only when has_bg. GtkTreeView Column/Node are public because
set_columns/set_roots/get_roots expose them in public signatures.
Rust fixtures were regenerated from this fixed gen_matrix.
Replace the C++/GTK generator with one that emits a self-contained
XFrame app: XOpenDisplay/XCreateSimpleWindow, SStyle_Manager, one
lg::Holder<T> per placed widget with getter/setter properties, X event
loop dispatching via IWidget (contains/on_button_press/on_key/...),
WM_DELETE_WINDOW close. Output is main.cpp + CMakeLists.txt + Makefile
+ README.md (no indicators.h/drawings.h, no GTK).
Colours: background via verified direct setters where they exist, else
per-widget style clone; foreground ALWAYS via the style clone, because
the widgets set_text_color_rgb only affects the DISABLED text (every
draw() gates it on !enabled_) while enabled text comes from the style.
Class names are namespace-qualified from the registry create_widget()
spelling (165 xframe:: classes, e.g. IndADX; 85 Ind* classes are global).
Verified: make 0 warnings, SELFTEST PASS, palette 547/547,
code_window_tests ALL PASS, make test (547-widget generate + CMake
build) SEAM TEST ALL PASS, demo app renders under Xvfb with colour
proof (button bg red 6051px vs plain 0; label fg blue 185px).
Motion below the threshold no longer moves a widget, so a human
double-click (which jiggles a few px) is not swallowed by a drag.
The double-click check already ran before any drag logic (the dbl
branch returns before dragging=true is set); verified, not
restructured. Comments updated to 8px.
ide just launches ./lightgui (builds only with --build via plain make;
the redundant cmake re-build is gone). Delete widgets/layout/ (the
standalone layout executable) and drop it from widgets/CMakeLists.txt.
The file-based IPC header widgets/common/ipc.h is KEPT: it is still
referenced by widgets/palette/main_palette.cpp, which is now dead code
(ide no longer launches the palette process) but was not authorized
for deletion in this step.
Palette is XFrame-only: the 36 GTK widgets are gone from designer.ui
and main.cpp (547 entries from xframe_palette.h). .fdj holds only
XFrame widgets; on load a GTK/unknown type is skipped with a clear
message, never migrated. snapshot/load now go through the embedded
XFrame canvas; the GTK Item machinery stays only as selftest
scaffolding (legacy_gtk_snapshot) until it is removed in a follow-up.
Selftest phases 3-8 rewritten for the step-4 XFrame generator (4
files, lg::Holder markers, file-level + XFrame round-trips, GTK skip
rule, bad-file rejection). Palette/converter tests updated to 547;
xframe_palette.h regenerated (one stale comment line). Docs updated.
Also: selftest cleans scratch generation dirs first, and the cleanup
call assigns its return value (void cast does not silence
-Wunused-result for system() on this toolchain).
Embed the XFrame canvas in the designer window: a GtkDrawingArea
(double-buffered FALSE) in the GtkFixed canvas area, with the pure-X11
core (xframe_canvas_core) drawing placed widgets on its X window and
the DrawingArea GTK signals (draw, button-press/release, motion,
key-press) driving place/move/resize/delete/select. Palette selection
is wired in-process (no selection/place files); the core owns the
Placed vector and exposes accessors for later save/codegen steps.
Ports the standalone layout interaction (16px handles, 8px hit pad,
450ms double-click rule, Delete/BackSpace/Escape) without modifying
widgets/layout/main_layout.cpp.
The canvas is deliberately NOT a GtkSocket + raw X child window: that
design rendered and interacted correctly but killed the whole app with
an untrapped XInputExtension BadWindow error (GDK X error handler
calls _exit(1)) whenever another toplevel (e.g. the code window) was
closed. Bisected against the parent binary (survives) and a socket
with no child (survives); removing the foreign GdkWindow, setting the
event mask with raw XSelectInput, and forwarding all canvas events to
gtk_main_do_event did not fix it, and without a foreign window GDK
drops canvas events entirely. A GtkDrawingArea keeps the canvas a
normal GDK-managed window (verified with /tmp/proto_da.c). Also fixes
a latent -Wmaybe-uninitialized in GtkInfoBar.h (bx/by/bw/bh).
One widget per draw template; each gains bg/grid/axis colour, line
width, grid divisions, per-line colour and view/period accessors with
defaults preserving the pre-pass render (verified pixel-identical vs
pristine headers, setters exercised by harness).
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged); tier colours for
StackLight draw_tier(); needle line width for TemperatureGauge/VuMeter;
lever line widths for ToggleSwitch/ToggleSwitchIlluminated. Dead colour
locals that draw() never used are removed. Setters mutate state only,
matching every existing setter in the codebase; the host redraws after a
state change. Group D (66 Instrumentation widgets) complete.
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged). Dead colour
locals that draw() never used are removed. Setters mutate state only,
matching every existing setter in the codebase; the host redraws after a
state change.
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged); pointer line
width for RotarySelector. Dead colour locals that draw() never used are
removed. Setters mutate state only, matching every existing setter in the
codebase; the host redraws after a state change.
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged); lens colours for
the lamp_colour() helpers; RGB channel + swatch-outline colours for
RgbStatusLed; needle line width for PressureGauge; set_on for PushButton
(on_ previously had no setter). Dead colour locals that draw() never used
are removed. Setters mutate state only, matching every existing setter in
the codebase; the host redraws after a state change.
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged); lens colour for
the PanelLamp lamp_colour() helper; engraved brass text colour (Nameplate),
water surface colour (OpenChannelLevel). Dead colour locals that draw()
never used are removed. Setters mutate state only, matching every existing
setter in the codebase; the host redraws after a state change.
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged); lens colour for
the lamp_colour() helpers; pointer line width for KeySwitch. Dead colour
locals that draw() never used are removed. Setters mutate state only,
matching every existing setter in the codebase; the host redraws after a
state change.
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged); needle/marker/
lever line widths as int members; set_on for EmergencyStop (latched_) and
PushButton-family gap. Dead colour locals that draw() never used are removed.
Setters mutate state only, matching every existing setter in the codebase
(set_level/set_value/...); the host redraws after a state change.