Tabbed TPageControl app in one 1024x768 window. Processes tab is a
live XProcessList from /proc (sortable Pid/Program/User/MemB/Cpu%).
Performance tab is XHistoryGraph (60 s CPU+memory), XCoreGrid
(per-core), XUsageBar (Memory, Disk /, Swap), XStackBar (memory
breakdown) and XNetGraph (live /proc/net/dev rates). Data sampled
every 500 ms from /proc/stat, /proc/meminfo, /proc/net/dev and
statvfs; repaint every 2 s (a full repaint issues ~500 XAllocColor
round trips via get_color_Srgb, ~0.5 s wall on this Xvfb, so a
500 ms repaint would never catch up). Widgets-only: no raw X11
drawing for UI elements.
Live process table from /proc (sortable columns, in-cell CPU% bars,
colour-coded rows, refresh()), load-average badge (1/5/15 min,
threshold colours, uptime from /proc), monitor button bound to a
process (/proc scan), systemd unit (systemctl is-active) or TCP port
(connect to localhost) with poll()/update() and click-for-details,
grid panel of monitor buttons with one shared poll_all(), composite
resource box (title + big number + history + usage bar). Header-only
C++, demo mains (polling loop for the live three), examples, Xvfb
screenshots.
Gradient usage bar (green->yellow->red, absolute scale), stacked
multi-segment bar with legend, vertical bar meter with scale +
peak-hold marker (click resets peak), round tachometer (needle,
redline zone, digital readout, peak hold), semicircular arc gauge
with coloured zones + big %, circular progress ring with centred %.
Header-only C++, demo mains, examples, Xvfb screenshots.
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.