Searched defs:gc (Results 1 - 24 of 24) sorted by relevance

/ast/src/lib/libtk/generic/
H A DtkUtil.c39 Tk_DrawFocusHighlight(tkwin, gc, width, drawable)
42 GC gc; /* Graphics context to use for drawing
66 XFillRectangles(Tk_Display(tkwin), drawable, gc, rects, 4);
65 XFillRectangles(Tk_Display(tkwin), drawable, gc, rects, 4); local
H A DtkGC.c26 GC gc; /* Graphics context. */ member in struct:__anon400
27 Display *display; /* Display to which gc belongs. */
28 int refCount; /* Number of active uses of gc. */
54 GC gc; /* X's identifier for GC. */ member in struct:__anon402
245 return gcPtr->gc;
274 gcPtr->gc = XCreateGC(valueKey.display, d, valueMask, &valueKey.values);
279 idKey.gc = gcPtr->gc;
290 return gcPtr->gc;
306 * The reference count associated with gc i
[all...]
H A DtkSquare.c46 GC gc; /* Graphics context for copying from member in struct:__anon418
163 squarePtr->gc = None;
336 if ((squarePtr->gc == None) && (squarePtr->doubleBuffer)) {
340 squarePtr->gc = Tk_GetGC(squarePtr->tkwin,
514 XCopyArea(Tk_Display(tkwin), pm, Tk_WindowId(tkwin), squarePtr->gc,
547 if (squarePtr->gc != None) {
548 Tk_FreeGC(squarePtr->display, squarePtr->gc);
H A DtkCanvBmap.c32 GC gc; /* Graphics context to use for drawing member in struct:BitmapItem
167 bmapPtr->gc = None;
293 if (bmapPtr->gc != None) {
294 Tk_FreeGC(Tk_Display(tkwin), bmapPtr->gc);
296 bmapPtr->gc = newGC;
339 if (bmapPtr->gc != NULL) {
340 Tk_FreeGC(display, bmapPtr->gc);
506 XSetClipOrigin(display, bmapPtr->gc, drawableX - bmapX,
509 bmapPtr->gc, bmapX, bmapY, (unsigned int) bmapWidth,
H A DtkColor.c45 GC gc; /* Simple gc with this color as foreground member in struct:TkColor
235 tkColPtr->gc = None;
320 tkColPtr->gc = None;
415 if (tkColPtr->gc == None) {
417 tkColPtr->gc = XCreateGC(DisplayOfScreen(tkColPtr->screen),
420 return tkColPtr->gc;
488 if (tkColPtr->gc != None) {
489 XFreeGC(DisplayOfScreen(screen), tkColPtr->gc);
H A DtkFrame.c612 GC gc;
629 gc = Tk_GCForColor(framePtr->highlightColorPtr,
632 gc = Tk_GCForColor(framePtr->highlightBgColorPtr,
635 Tk_DrawFocusHighlight(tkwin, gc, framePtr->highlightWidth,
606 GC gc; local
H A DtkMessage.c728 GC gc;
731 gc = Tk_GCForColor(msgPtr->highlightColorPtr, Tk_WindowId(tkwin));
733 gc = Tk_GCForColor(msgPtr->highlightBgColorPtr, Tk_WindowId(tkwin));
735 Tk_DrawFocusHighlight(tkwin, gc, msgPtr->highlightWidth,
722 GC gc; local
H A DtkImgBmap.c65 GC gc; /* Graphics context for displaying bitmap. member in struct:BitmapInstance
342 GC gc;
413 gc = Tk_GetGC(instancePtr->tkwin, mask, &gcValues);
415 gc = None;
417 if (instancePtr->gc != None) {
418 Tk_FreeGC(Tk_Display(instancePtr->tkwin), instancePtr->gc);
420 instancePtr->gc = gc;
430 if (instancePtr->gc != None) {
431 Tk_FreeGC(Tk_Display(instancePtr->tkwin), instancePtr->gc);
339 GC gc; local
[all...]
H A DtkMenubutton.c780 GC gc;
795 gc = mbPtr->disabledGC;
798 gc = mbPtr->activeTextGC;
801 gc = mbPtr->normalTextGC;
854 gc, 0, 0, (unsigned) width, (unsigned) height, x, y, 1);
888 mbPtr->justify, mbPtr->underline, gc);
938 GC gc;
941 gc = Tk_GCForColor(mbPtr->highlightColorPtr, pixmap);
943 gc = Tk_GCForColor(mbPtr->highlightBgColorPtr, pixmap);
945 Tk_DrawFocusHighlight(tkwin, gc, mbPt
775 GC gc; local
933 GC gc; local
[all...]
H A DtkScrollbar.c830 GC gc;
833 gc = Tk_GCForColor(scrollPtr->highlightColorPtr, pixmap);
835 gc = Tk_GCForColor(scrollPtr->highlightBgColorPtr, pixmap);
837 Tk_DrawFocusHighlight(tkwin, gc, scrollPtr->highlightWidth, pixmap);
825 GC gc; local
H A DtkTest.c153 GC gc; /* Graphics context for drawing in image. */ member in struct:TImageInstance
941 instPtr->gc = Tk_GetGC(tkwin, GCForeground, &gcValues);
990 XDrawRectangle(display, drawable, instPtr->gc, drawableX, drawableY,
992 XDrawLine(display, drawable, instPtr->gc, drawableX, drawableY,
994 XDrawLine(display, drawable, instPtr->gc, drawableX,
1029 Tk_FreeGC(display, instPtr->gc);
H A Dtk3d.c765 GC gc;
911 gc = borderPtr->lightGC;
913 gc = borderPtr->darkGC;
915 XFillPolygon(display, drawable, gc, poly, 4, Convex,
753 GC gc; local
H A DtkButton.c1136 GC gc;
1156 gc = butPtr->disabledGC;
1159 gc = butPtr->activeTextGC;
1162 gc = butPtr->normalTextGC;
1241 XSetClipOrigin(butPtr->display, gc, x, y);
1242 XCopyPlane(butPtr->display, butPtr->bitmap, pixmap, gc, 0, 0,
1244 XSetClipOrigin(butPtr->display, gc, 0, 0);
1286 butPtr->justify, butPtr->underline, gc);
1311 GC gc;
1313 gc
1130 GC gc; local
1305 GC gc; local
1331 GC gc; local
1385 GC gc; local
[all...]
H A DtkCanvLine.c42 GC gc; /* Graphics context for filling line. */ member in struct:LineItem
252 linePtr->gc = None;
465 if (linePtr->gc != None) {
466 Tk_FreeGC(Tk_Display(tkwin), linePtr->gc);
471 linePtr->gc = newGC;
564 if (linePtr->gc != None) {
565 Tk_FreeGC(display, linePtr->gc);
720 if (linePtr->gc == None) {
763 Tk_CanvasSetStippleOrigin(canvas, linePtr->gc);
766 XDrawLines(display, drawable, linePtr->gc, pointPt
[all...]
H A DtkCanvText.c71 GC gc; /* Graphics context for drawing text. */ member in struct:TextItem
244 textPtr->gc = None;
383 if (textPtr->gc != None) {
384 Tk_FreeGC(Tk_Display(tkwin), textPtr->gc);
386 textPtr->gc = newGC;
474 if (textPtr->gc != None) {
475 Tk_FreeGC(display, textPtr->gc);
732 if (textPtr->gc == None) {
743 Tk_CanvasSetStippleOrigin(canvas, textPtr->gc);
862 TkDisplayChars(display, drawable, textPtr->gc, textPt
[all...]
H A DtkCanvas.c1753 GC gc;
1756 gc = Tk_GCForColor(canvasPtr->highlightColorPtr,
1759 gc = Tk_GCForColor(canvasPtr->highlightBgColorPtr,
1762 Tk_DrawFocusHighlight(tkwin, gc, canvasPtr->highlightWidth,
1748 GC gc; local
H A DtkEntry.c1179 GC gc;
1182 gc = Tk_GCForColor(entryPtr->highlightColorPtr, pixmap);
1184 gc = Tk_GCForColor(entryPtr->highlightBgColorPtr, pixmap);
1186 Tk_DrawFocusHighlight(tkwin, gc, entryPtr->highlightWidth, pixmap);
1174 GC gc; local
H A DtkListbox.c1040 GC gc;
1099 gc = listPtr->textGC;
1101 gc = listPtr->selTextGC;
1147 XDrawString(listPtr->display, pixmap, gc, x, y,
1155 XFillRectangle(listPtr->display, pixmap, gc,
1174 GC gc;
1177 gc = Tk_GCForColor(listPtr->highlightColorPtr, pixmap);
1179 gc = Tk_GCForColor(listPtr->highlightBgColorPtr, pixmap);
1181 Tk_DrawFocusHighlight(tkwin, gc, listPtr->highlightWidth, pixmap);
1035 GC gc; local
1169 GC gc; local
H A DtkMenu.c1742 GC gc;
1794 * Choose the gc for drawing the foreground part of the entry.
1798 gc = mePtr->activeGC;
1799 if (gc == NULL) {
1800 gc = menuPtr->activeGC;
1805 gc = mePtr->disabledGC;
1806 if (gc == NULL) {
1807 gc = menuPtr->disabledGC;
1810 gc = mePtr->textGC;
1811 if (gc
1734 GC gc; local
[all...]
H A DtkScale.c1556 GC gc;
1559 gc = Tk_GCForColor(scalePtr->highlightColorPtr, pixmap);
1561 gc = Tk_GCForColor(scalePtr->highlightBgColorPtr, pixmap);
1563 Tk_DrawFocusHighlight(tkwin, gc, scalePtr->highlightWidth, pixmap);
1545 GC gc; local
H A DtkImgPhoto.c205 GC gc; /* Graphics context for writing images member in struct:PhotoInstance
1746 instancePtr->gc = Tk_GetGC(tkwin,
1820 * valid data. We set this region as the clip mask for the gc,
1825 TkSetRegion(display, instancePtr->gc, instancePtr->masterPtr->validRegion);
1826 XSetClipOrigin(display, instancePtr->gc, drawableX - imageX,
1828 XCopyArea(display, instancePtr->pixels, drawable, instancePtr->gc,
1831 XSetClipMask(display, instancePtr->gc, None);
1832 XSetClipOrigin(display, instancePtr->gc, 0, 0);
2186 instancePtr->gc, validBox.x, validBox.y,
2971 if (instancePtr->gc !
[all...]
H A DtkTextDisp.c2212 GC gc;
2215 gc = Tk_GCForColor(textPtr->highlightColorPtr,
2218 gc = Tk_GCForColor(textPtr->highlightBgColorPtr,
2221 Tk_DrawFocusHighlight(textPtr->tkwin, gc, textPtr->highlightWidth,
2202 GC gc; local
/ast/src/lib/libtk/unix/
H A DtkUnixDraw.c58 TkScrollWindow(tkwin, gc, x, y, width, height, dx, dy, damageRgn)
60 GC gc; /* GC for window to be scrolled. */
69 XCopyArea(Tk_Display(tkwin), Tk_WindowId(tkwin), Tk_WindowId(tkwin), gc,
68 XCopyArea(Tk_Display(tkwin), Tk_WindowId(tkwin), Tk_WindowId(tkwin), gc, local
/ast/src/cmd/re/
H A Dsed1.c71 #define gc Tc macro
669 xx,ac,bc,cc,dc,xx,xx,gc,hc,ic,xx,xx,lc,xx,nc,xx, /* a-n */

Completed in 905 milliseconds