Lines Matching refs:instPtr
929 TImageInstance *instPtr;
937 instPtr = (TImageInstance *) ckalloc(sizeof(TImageInstance));
938 instPtr->masterPtr = timPtr;
939 instPtr->fg = Tk_GetColor(timPtr->interp, tkwin, "#ff0000");
940 gcValues.foreground = instPtr->fg->pixel;
941 instPtr->gc = Tk_GetGC(tkwin, GCForeground, &gcValues);
942 return (ClientData) instPtr;
976 TImageInstance *instPtr = (TImageInstance *) clientData;
980 instPtr->masterPtr->imageName, imageX, imageY, width, height,
982 Tcl_SetVar(instPtr->masterPtr->interp, instPtr->masterPtr->varName, buffer,
984 if (width > (instPtr->masterPtr->width - imageX)) {
985 width = instPtr->masterPtr->width - imageX;
987 if (height > (instPtr->masterPtr->height - imageY)) {
988 height = instPtr->masterPtr->height - imageY;
990 XDrawRectangle(display, drawable, instPtr->gc, drawableX, drawableY,
992 XDrawLine(display, drawable, instPtr->gc, drawableX, drawableY,
994 XDrawLine(display, drawable, instPtr->gc, drawableX,
1022 TImageInstance *instPtr = (TImageInstance *) clientData;
1025 sprintf(buffer, "%s free", instPtr->masterPtr->imageName);
1026 Tcl_SetVar(instPtr->masterPtr->interp, instPtr->masterPtr->varName, buffer,
1028 Tk_FreeColor(instPtr->fg);
1029 Tk_FreeGC(display, instPtr->gc);
1030 ckfree((char *) instPtr);