33#include <X11/Intrinsic.h>
40#define NewString(str) \
41 ((str) != NULL ? (strcpy((char*)malloc((unsigned)strlen(str) + 1), str)) : NULL)
87 args = (
char**)malloc(a_argn *
sizeof(
char*));
90 for(
int argi=0;argi<a_argn;argi++) {
95#if XtSpecificationRelease == 4
97 narg = (Cardinal)a_argn;
103 XtSetArg (xargs[0],XtNgeometry,
"100x100");
112 if( (a_argn!=0) && (
args!=NULL)) {
113 for(
int argi=0;argi<a_argn;argi++) {
115 strcpy(a_args[argi],
args[argi]);
121 XtSetMappedWhenManaged (
topWidget,False);
169 if(a_string==NULL)
return;
171 XrmDatabase dbres = XrmGetStringDatabase (a_string);
172 if(dbres==NULL)
return;
173 XrmDatabase database = XrmGetDatabase (dpy);
175 XrmMergeDatabases (dbres,&database);
177 XrmSetDatabase (dpy,dbres);
static XtAppContext appContext
G4GLOB_DLL std::ostream G4cout
void AddDispatcher(G4DispatchFunction)
void SetMainInteractor(G4Interactor)
void SetArguments(int, char **)
static G4Xt * getInstance()
void FlushAndWaitExecution()
void PutStringInResourceDatabase(char *)
static bool xt_dispatch_event(void *a_event)