NAME
XmuAddInitializer − register an application context initialization procedure.
SYNOPSIS
#include <X11/Xmu/Initer.h>
void XmuAddInitializer(func, data)
void (∗func)();
caddr_t data;
Inputs
funcSpecifies the procedure to register.
dataSpecifies private data to be passed to the procedure.
DESCRIPTION
XmuAddInitializer() registers a procedure that will be invoked the first time the function XmuCallInitializers() is invoked on a given application context. The procedure will be called with two arguments, the application context and the private data registered with the procedure.
USAGE
If a widget needs to do application-context-specific initialization, it can register a function with XmuAddInitializer() in its class_initialize() method, and then call XmuCallInitializers() for the application context of each widget instance in the initialize() method.