Lines Matching refs:x11funcs

373 static X11Functions *x11funcs = NULL;
413 while (dispatch && x11funcs && appcontext)
417 while (x11funcs->XtAppPending(appcontext))
420 x11funcs->XtAppNextEvent(appcontext, &event);
421 x11funcs->XtDispatchEvent(&event);
469 if (!x11funcs)
471 x11funcs = (X11Functions *)MemAlloc(sizeof(X11Functions));
472 if ((x11funcs->XCloseDisplay = (XCloseDisplay_t)dlsym(libgui, "XCloseDisplay")) == NULL) goto error;
473 if ((x11funcs->XOpenDisplay = (XOpenDisplay_t)dlsym(libgui, "XOpenDisplay")) == NULL) goto error;
474 if ((x11funcs->XRaiseWindow = (XRaiseWindow_t)dlsym(libgui, "XRaiseWindow")) == NULL) goto error;
475 if ((x11funcs->XSetErrorHandler = (XSetErrorHandler_t)dlsym(libgui, "XSetErrorHandler")) == NULL) goto error;
476 if ((x11funcs->XSetIOErrorHandler = (XSetIOErrorHandler_t)dlsym(libgui, "XSetIOErrorHandler")) == NULL) goto error;
477 if ((x11funcs->XSetLocaleModifiers = (XSetLocaleModifiers_t)dlsym(libgui, "XSetLocaleModifiers")) == NULL) goto error;
478 if ((x11funcs->XSupportsLocale = (XSupportsLocale_t)dlsym(libgui, "XSupportsLocale")) == NULL) goto error;
479 if ((x11funcs->XmCreateErrorDialog = (XmCreateErrorDialog_t)dlsym(libgui, "XmCreateErrorDialog")) == NULL) goto error;
480 if ((x11funcs->XmCreateInformationDialog = (XmCreateInformationDialog_t)dlsym(libgui, "XmCreateInformationDialog")) == NULL) goto error;
481 if ((x11funcs->XmCreateTemplateDialog = (XmCreateTemplateDialog_t)dlsym(libgui, "XmCreateTemplateDialog")) == NULL) goto error;
482 if ((x11funcs->XmMessageBoxGetChild = (XmMessageBoxGetChild_t)dlsym(libgui, "XmMessageBoxGetChild")) == NULL) goto error;
483 if ((x11funcs->XmStringCreateLtoR = (XmStringCreateLtoR_t)dlsym(libgui, "XmStringCreateLtoR")) == NULL) goto error;
484 if ((x11funcs->XmStringFree = (XmStringFree_t)dlsym(libgui, "XmStringFree")) == NULL) goto error;
485 if ((x11funcs->XtAppNextEvent = (XtAppNextEvent_t)dlsym(libgui, "XtAppNextEvent")) == NULL) goto error;
486 if ((x11funcs->XtAppPending = (XtAppPending_t)dlsym(libgui, "XtAppPending")) == NULL) goto error;
487 if ((x11funcs->XtAppSetErrorHandler = (XtAppSetErrorHandler_t)dlsym(libgui, "XtAppSetErrorHandler")) == NULL) goto error;
488 if ((x11funcs->XtAppSetWarningHandler = (XtAppSetWarningHandler_t)dlsym(libgui, "XtAppSetWarningHandler")) == NULL) goto error;
489 if ((x11funcs->XtDestroyWidget = (XtDestroyWidget_t)dlsym(libgui, "XtDestroyWidget")) == NULL) goto error;
490 if ((x11funcs->XtDispatchEvent = (XtDispatchEvent_t)dlsym(libgui, "XtDispatchEvent")) == NULL) goto error;
491 if ((x11funcs->XtGetValues = (XtGetValues_t)dlsym(libgui, "XtGetValues")) == NULL) goto error;
492 if ((x11funcs->XtIsManaged = (XtIsManaged_t)dlsym(libgui, "XtIsManaged")) == NULL) goto error;
493 if ((x11funcs->XtManageChild = (XtManageChild_t)dlsym(libgui, "XtManageChild")) == NULL) goto error;
494 if ((x11funcs->XtRealizeWidget = (XtRealizeWidget_t)dlsym(libgui, "XtRealizeWidget")) == NULL) goto error;
495 if ((x11funcs->XtScreenOfObject = (XtScreenOfObject_t)dlsym(libgui, "XtScreenOfObject")) == NULL) goto error;
496 if ((x11funcs->XtUnmanageChild = (XtUnmanageChild_t)dlsym(libgui, "XtUnmanageChild")) == NULL) goto error;
497 if ((x11funcs->XtVaAppInitialize = (XtVaAppInitialize_t)dlsym(libgui, "XtVaAppInitialize")) == NULL) goto error;
498 if ((x11funcs->XtVaSetValues = (XtVaSetValues_t)dlsym(libgui, "XtVaSetValues")) == NULL) goto error;
499 if ((x11funcs->XtWindowOfObject = (XtWindowOfObject_t)dlsym(libgui, "XtWindowOfObject")) == NULL) goto error;
504 return x11funcs;
509 return x11funcs;
512 if ((display = x11funcs->XOpenDisplay(NULL)) == NULL)
515 x11funcs->XSetErrorHandler(HandleX11Error);
516 x11funcs->XSetIOErrorHandler(HandleX11IOError);
519 if (!x11funcs->XSupportsLocale())
525 x11funcs->XSetLocaleModifiers("");
531 appshell = x11funcs->XtVaAppInitialize(&appcontext, (char *)GetTitle(), NULL, 0, &argc, NULL, NULL, NULL);
532 x11funcs->XtVaSetValues(appshell,
535 x11funcs->XtAppSetErrorHandler(appcontext, (XtErrorHandler)HandleX11Error);
536 x11funcs->XtAppSetWarningHandler(appcontext, (XtErrorHandler)HandleX11Warning);
537 x11funcs->XtRealizeWidget(appshell);
563 return x11funcs;
575 if (x11funcs)
578 x11funcs->XCloseDisplay(display);
580 free(x11funcs);
581 x11funcs = NULL;