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.