Lines Matching defs:context
172 DPSContext context,
190 if (context == NULL) {
191 context = XDPSGetSharedContext(DisplayOfScreen(screen));
215 if (context != NULL) return dps_status_success;
331 DPSContext context,
339 info->ctxt = context;
352 DPSContext context,
357 while (info != NULL && info->ctxt != context) info = info->next;
362 DPSContext context,
369 while (info != NULL && info->ctxt != context) info = info->next;
372 (void) XDPSXIDFromContext(&dpy, context);
377 (*info->oldProc) (context, status);
389 DPSContext context,
398 context */
400 _DPSPCheckForError(context, &err);
403 DPSWritePostScript(context, restorebuf, strlen(restorebuf));
408 while (info != NULL && info->ctxt != context) info = info->next;
413 XDPSRegisterStatusProc(context, info->oldProc);
422 DPSContext context,
428 if (context == NULL) {
429 context = XDPSGetSharedContext(DisplayOfScreen(screen));
430 if (context == NULL) return dps_status_no_extension;
433 while (info != NULL && info->ctxt != context) info = info->next;
436 status = XDPSGetContextStatus(context);
439 XDPSUnfreezeContext(context);
440 return FinishUp(context, info->cookie);
454 DPSContext context,
490 if (context == NULL) {
491 context = XDPSGetSharedContext(DisplayOfScreen(screen));
492 if (context == NULL) {
503 DPSWaitContext(context);
508 status = _XDPSTestComponentInitialized(context,
512 (void) _XDPSSetComponentInitialized(context, dps_init_bit_preview);
513 _DPSPDefineExecFunction(context);
529 status = XDPSPushContextParameters(context, screen, drawableDepth,
537 _DPSPSetMatrix(context, xOffset, yOffset, pixelsPerPoint);
539 if (clear) _DPSPClearArea(context, (int) bbox->x, (int) bbox->y,
542 if (createMask) _DPSPSetMaskTransfer(context);
545 _DPSPSaveBeforeExec(context, !waitForCompletion);
546 DPSWritePostScript(context, "\nexec\n", EXECLEN);
550 DPSWritePostScript(context, buf, strlen(buf));
555 DPSWritePostScript(context, eobuf, strlen(eobuf));
559 oldProc = XDPSRegisterStatusProc(context, HandlePreviewStatus);
560 SetUpStatusVariables(context, cookie, doneFlag, startReqNum, oldProc);
561 XDPSSetStatusMask(context, 0, 0, PSFROZENMASK);
568 if (XDPSGetContextStatus(context) == PSFROZEN) {
570 XDPSUnfreezeContext(context);
584 if (waitForCompletion) return FinishUp(context, cookie);
587 SetEndReqNum(context, endReqNum);