Lines Matching defs:xw

124 traceVTwin(XtermWidget xw, const VTwin *value)
129 else if (value == &(TScreenOf(xw)->fullVwin))
132 else if (value == &(TScreenOf(xw)->iconVwin))
183 tracePixel(XtermWidget xw, Pixel value)
207 TScreen *screen = TScreenOf(xw);
270 myCache(XtermWidget xw, VTwin *cgsWin, CgsEnum cgsId)
276 (void) xw;
279 if (cgsWin == &(TScreenOf(xw)->iconVwin))
280 result = ALLOC_CACHE(&(TScreenOf(xw)->icon_cgs_cache));
283 result = ALLOC_CACHE(&(TScreenOf(xw)->main_cgs_cache));
295 myDisplay(XtermWidget xw)
297 return TScreenOf(xw)->display;
301 myDrawable(XtermWidget xw, VTwin *cgsWin)
308 drawable = RootWindowOfScreen(XtScreen(xw));
313 newCache(XtermWidget xw, VTwin *cgsWin, CgsEnum cgsId, CgsCache * me)
355 XmuCreateStippledPixmap(XtScreen((Widget) xw),
358 xw->core.depth);
386 THIS(gc) = XCreateGC(myDisplay(xw), myDrawable(xw, cgsWin), mask, &xgcv);
404 chgCache(XtermWidget xw, CgsEnum cgsId GCC_UNUSED, CgsCache * me, Bool both)
413 tracePixel(xw, THIS(fg)),
414 tracePixel(xw, THIS(bg)),
423 TRACE2(("...chgCache new fg=%s\n", tracePixel(xw, NEXT(fg))));
425 TRACE2(("...chgCache new bg=%s\n", tracePixel(xw, NEXT(bg))));
439 XChangeGC(myDisplay(xw), THIS(gc), mask, &xgcv);
451 setCgsFore(XtermWidget xw, VTwin *cgsWin, CgsEnum cgsId, Pixel fg)
455 if ((me = myCache(xw, cgsWin, cgsId)) != NULL) {
460 tracePixel(xw, NEXT(fg))));
465 setCgsBack(XtermWidget xw, VTwin *cgsWin, CgsEnum cgsId, Pixel bg)
469 if ((me = myCache(xw, cgsWin, cgsId)) != NULL) {
474 tracePixel(xw, NEXT(bg))));
480 setCgsCSet(XtermWidget xw, VTwin *cgsWin, CgsEnum cgsId, unsigned cset)
484 if ((me = myCache(xw, cgsWin, cgsId)) != NULL) {
490 #define setCgsCSet(xw, cgsWin, dstCgsId, cset) /* nothing */
494 setCgsFont2(XtermWidget xw, VTwin *cgsWin, CgsEnum cgsId, XTermFonts * font, unsigned which)
498 if ((me = myCache(xw, cgsWin, cgsId)) != NULL) {
499 TScreen *screen = TScreenOf(xw);
502 (void) getCgsGC(xw, cgsWin, gcNorm);
504 if (cgsWin == &(TScreenOf(xw)->iconVwin))
526 setCgsFont(XtermWidget xw, VTwin *cgsWin, CgsEnum cgsId, XTermFonts * font)
528 setCgsFont2(xw, cgsWin, cgsId, font, fNorm);
536 clrCgsFonts(XtermWidget xw, VTwin *cgsWin, XTermFonts * font)
542 if ((me = myCache(xw, cgsWin, (CgsEnum) j)) != NULL) {
572 getCgsGC(XtermWidget xw, VTwin *cgsWin, CgsEnum cgsId)
577 if ((me = myCache(xw, cgsWin, cgsId)) != NULL) {
579 traceVTwin(xw, cgsWin), traceCgsEnum(cgsId)));
595 setCgsFont(xw, cgsWin, cgsId, NULL);
599 tracePixel(xw, NEXT(fg)),
600 tracePixel(xw, NEXT(bg)),
624 result = newCache(xw, cgsWin, cgsId, me);
644 result = chgCache(xw, cgsId, me, True);
654 traceVTwin(xw, cgsWin),
664 getCgsId(XtermWidget xw, VTwin *cgsWin, GC gc)
672 if ((me = myCache(xw, cgsWin, (CgsEnum) n)) != NULL) {
686 getCgsFont(XtermWidget xw, VTwin *cgsWin, GC gc)
694 if ((me = myCache(xw, cgsWin, (CgsEnum) n)) != NULL) {
708 getCgsFore(XtermWidget xw, VTwin *cgsWin, GC gc)
716 if ((me = myCache(xw, cgsWin, (CgsEnum) n)) != NULL) {
730 getCgsBack(XtermWidget xw, VTwin *cgsWin, GC gc)
738 if ((me = myCache(xw, cgsWin, (CgsEnum) n)) != NULL) {
752 copyCgs(XtermWidget xw, VTwin *cgsWin, CgsEnum dstCgsId, CgsEnum srcCgsId)
757 if ((me = myCache(xw, cgsWin, srcCgsId)) != NULL) {
765 tracePixel(xw, THIS(fg)),
766 tracePixel(xw, THIS(bg)),
769 setCgsCSet(xw, cgsWin, dstCgsId, THIS(cset));
770 setCgsFore(xw, cgsWin, dstCgsId, THIS(fg));
771 setCgsBack(xw, cgsWin, dstCgsId, THIS(bg));
772 setCgsFont(xw, cgsWin, dstCgsId, THIS(font));
782 redoCgs(XtermWidget xw, Pixel fg, Pixel bg, CgsEnum cgsId)
784 VTwin *cgsWin = WhichVWin(TScreenOf(xw));
785 CgsCache *me = myCache(xw, cgsWin, cgsId);
797 setCgsFore(xw, cgsWin, cgsId, bg);
798 setCgsBack(xw, cgsWin, cgsId, fg);
801 setCgsFore(xw, cgsWin, cgsId, fg);
802 setCgsBack(xw, cgsWin, cgsId, bg);
807 (void) chgCache(xw, cgsId, me, False);
818 swapCgs(XtermWidget xw, VTwin *cgsWin, CgsEnum dstCgsId, CgsEnum srcCgsId)
823 if ((src = myCache(xw, cgsWin, srcCgsId)) != NULL) {
826 if ((dst = myCache(xw, cgsWin, dstCgsId)) != NULL) {
844 freeCgs(XtermWidget xw, VTwin *cgsWin, CgsEnum cgsId)
848 if ((me = myCache(xw, cgsWin, cgsId)) != NULL) {
854 traceVTwin(xw, cgsWin),
856 clrCgsFonts(xw, cgsWin, LIST(j).font);
859 XmuReleaseStippledPixmap(XtScreen((Widget) xw), LIST(j).tile);
862 XFreeGC(TScreenOf(xw)->display, LIST(j).gc);
873 noleaks_cachedCgs(XtermWidget xw)
876 free(TScreenOf(xw)->icon_cgs_cache);
878 free(TScreenOf(xw)->main_cgs_cache);