Skeleton loading presentation
XmSkeleton is a bounded placeholder for content that is loading. It owns
no data, timer queue or application state. Animation is opt-in presentation
only, is disabled by XmNskeletonReducedMotion, and has a per-instance
interval; XmSkeletonStop always provides a static fallback. Applications
choose the placeholder geometry and replace it with their real view.
Animation start, timer ticks, and stop are safe before realization: the phase
continues to advance, but an X redraw is requested only after the widget owns a
window. This prevents an early timer or stop request from issuing a BadWindow
request during construction. The focused source-contract regression is
tests/automated/check-skeleton-realize-guard.py.
The label is a copied XmString used for accessibility; it is not drawn into
the placeholder. The widget does not introduce a generalized animation
framework or require animation for a usable loading state. The installed
fixture covers start/stop, reduced-motion behavior, accessibility naming,
timer teardown and destruction.
Component demo
Captured gallery example and its corresponding source excerpt.

Actual gallery excerpt: class = xmSkeletonWidgetClass. The host supplies parent, name, callback and client_data. Shared factory locals: Widget example; XmString label = NULL. The shared factory frees label, attaches callbacks and sizes the preview. Helpers and the complete factory are in gallery_examples.c.
example = XtVaCreateManagedWidget((char *)name, class, parent,
XmNwidth, 360, XmNheight, 64, NULL);
CK Core Motif