Lines Matching defs:wh

315   XDPSPrivContext	wh;
351 if ((wh = (XDPSPrivContext) calloc (sizeof (XDPSPrivContextRec), 1)) != 0)
353 wh->dpy = dpy;
354 wh->drawable = drawable;
355 wh->gc = gc;
356 wh->x = x;
357 wh->y = y;
358 wh->eventmask = eventmask;
359 wh->grayramp = grayramp;
360 wh->ccube = ccube;
361 wh->actual = actual;
362 wh->newObjFormat = format_operands[rdpy->ctxtTokenType - DPS_HI_IEEE];
363 wh->secure = secure;
364 return (wh);
372 XDPSPrivContext wh,
384 if ((rdpy = IsRegistered (wh->dpy)) == NIL)
388 wh->cxid = XDPSLCreateContextAndSpace (wh->dpy, wh->drawable, wh->gc,
389 wh->x, wh->y, wh->eventmask,
390 wh->grayramp, wh->ccube,
391 wh->actual, cidP, sxidP,
392 wh->secure); /* L2-DPS/PROTO 9 */
394 wh->cxid = XDPSLCreateContext (wh->dpy, *sxidP, wh->drawable, wh->gc,
395 wh->x, wh->y, wh->eventmask,
396 wh->grayramp, wh->ccube, wh->actual, cidP,
397 wh->secure); /* L2-DPS/PROTO 9 */
398 if (wh->cxid == None) return((DPSNumFormat) -1);
399 wh->ctxt = ctxt;
400 if (wh->newObjFormat != NIL)
402 XDPSLGiveInput (wh->dpy, wh->cxid, wh->newObjFormat, 1);
403 XDPSLGiveInput (wh->dpy, wh->cxid, " setobjectformat\n", 17);
413 XDPSPrivContext wh,
427 *newWh = *wh;
428 if (IsRegistered (wh->dpy) != NIL)
430 newWh->cxid = XDPSLCreateContextFromID (wh->dpy, cid, &space);
437 if (wh->newObjFormat != NIL) /* Yes, do it for the child too. */
439 XDPSLGiveInput (wh->dpy, newWh->cxid, wh->newObjFormat, 1);
440 XDPSLGiveInput (wh->dpy, newWh->cxid, " setobjectformat\n", 17);
454 register XDPSPrivContext wh,
463 if (IsRegistered (wh->dpy) == NIL)
464 (*printProc) (wh->ctxt, NIL, 0);
467 XDPSLGiveInput (wh->dpy, wh->cxid, buffer, count);
470 XDPSLFlush (wh->dpy);
471 if (BlockForEvent (wh->dpy) < 0 && wh->ctxt->errorProc != NIL) {
472 (*(wh->ctxt->errorProc)) (wh->ctxt, dps_err_closedDisplay,
473 ConnectionNumber(wh->dpy),
477 DPSCheckRaiseError(wh->ctxt);
484 XDPSPrivContext wh,
488 XDPSLNotifyContext (wh->dpy, wh->cxid, PSINTERRUPT);
494 XDPSPrivContext wh,
498 XDPSLReset (wh->dpy, wh->cxid);
504 XDPSPrivContext wh,
508 XDPSLNotifyContext (wh->dpy, wh->cxid, PSKILL);
522 XDPSPrivContext wh,
526 XDPSLDestroySpace (wh->dpy, sxid);