Lines Matching refs:context
83 the extension exists on the display. If context is not NULL, the
84 display has a default context associated with it. */
90 static ContextInfo AllocContextInfo(DPSContext context)
97 DPSAddContextExtensionRec(context, (DPSContextExtensionRec *) c);
102 static ContextInfo FindContextInfo(DPSContext context)
106 return (ContextInfo) DPSGetContextExtensionRec(context, extensionId);
109 static ContextInfo RemoveContextInfo(DPSContext context)
111 return (ContextInfo) DPSRemoveContextExtensionRec(context,
119 DPSContext context)
121 ContextInfo c = FindContextInfo(context);
127 c = AllocContextInfo(context);
134 DPSContext context)
144 d->defaultContext = context;
145 d->extensionPresent = (context == NULL) ? ext_no_idea : ext_yes;
176 int _XDPSSetComponentInitialized(DPSContext context, unsigned long bit)
178 ContextInfo c = FindContextInfo(context);
186 DPSContext context,
190 ContextInfo c = FindContextInfo(context);
201 DPSContext context,
205 return XDPSSetContextParameters(context, screen, depth, None, 0,
212 DPSContext context,
217 _DPSSSetContextDrawable(context, drawable, height);
222 DPSContext context,
225 return XDPSSetContextParameters(context, (Screen *) NULL, 0, None, 0,
231 DPSContext context,
234 return XDPSSetContextParameters(context, (Screen *) NULL, 0, None, 0,
270 DPSContext context,
279 ContextInfo c = FindContextInfo(context);
301 (void) XDPSXIDFromContext(&dpy, context);
368 _DPSSSetContextParameters(context, gctx, drawable, height, map,
378 DPSContext context,
388 ContextInfo c = FindContextInfo(context);
393 DPSgsave(context);
395 status = XDPSSetContextParameters(context, screen, depth, drawable, height,
398 *pushCookieReturn = (DPSPointer) context;
404 DPSContext context = (DPSContext) pushCookie;
405 ContextInfo c = FindContextInfo(context);
409 DPSgrestore(context);
414 int XDPSCaptureContextGState(DPSContext context, DPSGState *gsReturn)
420 _DPSSCaptureGState(context, *gsReturn);
425 int XDPSUpdateContextGState(DPSContext context, DPSGState gs)
427 _DPSSUpdateGState(context, gs);
432 int XDPSFreeContextGState(DPSContext context, DPSGState gs)
434 _DPSSUndefineUserObject(context, gs);
440 DPSContext context,
443 _DPSSRestoreGState(context, gs);
449 DPSContext context,
455 DPSgsave(context);
457 status = XDPSSetContextGState(context, gs);
458 *pushCookieReturn = (DPSPointer) context;
464 DPSContext context = (DPSContext) pushCookie;
466 DPSgrestore(context);
470 void XDPSRegisterContext(DPSContext context, Bool makeSharedContext)
477 (void) XDPSXIDFromContext(&display, context);
480 c = LookupContext(display, context);
481 c->displayInfo->defaultContext = context;
482 } else { /* Just add to the context list */
483 c = LookupContext(display, context);
488 (void) _XDPSTestComponentInitialized(context, dps_init_bit_share, &inited);
490 (void) _XDPSSetComponentInitialized(context, dps_init_bit_share);
491 _DPSSInstallDPSlibDict(context);
499 DPSContext context;
503 if (d->defaultContext != NULL) context = d->defaultContext;
505 context = XDPSCreateSimpleContext(display,
509 if (context != NULL) {
510 c = AllocContextInfo(context);
511 d->defaultContext = context;
513 (void) _XDPSSetComponentInitialized(context, dps_init_bit_share);
514 _DPSSInstallDPSlibDict(context);
515 (void) XDPSSetContextDepth(context,
522 if (context == NULL) d->extensionPresent = ext_no;
525 return context;
528 void XDPSDestroySharedContext(DPSContext context)
530 ContextInfo c = RemoveContextInfo(context);
534 if (c->displayInfo->defaultContext == context) {
537 DPSDestroySpace(DPSSpaceFromContext(context)); /* Also gets context */
542 void XDPSUnregisterContext(DPSContext context)
544 ContextInfo c = RemoveContextInfo(context);
548 if (c->displayInfo->defaultContext == context) {
587 int XDPSChainTextContext(DPSContext context, Bool enable)
589 ContextInfo c = FindContextInfo(context);
603 DPSChainContext(context, c->text);