Skip to content

Toolkit Convenience Functions

To use the functions defined in this section, you should include the header file <X11/Xmu/Initer.h> and link against the libXmu library.

void XmuAddInitializer(void ( *func )
	    (XtAppContext, XPointer), XPointer data);
void XmuAddInitializer(void ( *func )
	    (XtAppContext, XPointer), XPointer data);

func

specifies the procedure to register

data

specifies private data for the procedure

This function registers a procedure, to be invoked the first time XmuCallInitializers is called on a given application context. The procedure is called with the application context and the specified data:

	(*func)(app_con, data)
      

void XmuCallInitializers(XtAppContext app_con);
void XmuCallInitializers(XtAppContext app_con);

app_con

specifies the application context to initialize

This function calls each of the procedures that have been registered with XmuAddInitializer, if this is the first time the application context has been passed to XmuCallInitializers. Otherwise, this function does nothing.