Lines Matching defs:timPtr
810 TImageMaster *timPtr;
828 timPtr = (TImageMaster *) ckalloc(sizeof(TImageMaster));
829 timPtr->master = master;
830 timPtr->interp = interp;
831 timPtr->width = 30;
832 timPtr->height = 15;
833 timPtr->imageName = (char *) ckalloc((unsigned) (strlen(name) + 1));
834 strcpy(timPtr->imageName, name);
835 timPtr->varName = (char *) ckalloc((unsigned) (strlen(varName) + 1));
836 strcpy(timPtr->varName, varName);
837 Tcl_CreateCommand(interp, name, ImageCmd, (ClientData) timPtr,
839 *clientDataPtr = (ClientData) timPtr;
870 TImageMaster *timPtr = (TImageMaster *) clientData;
889 || (Tcl_GetInt(interp, argv[6], &timPtr->width) != TCL_OK)
890 || (Tcl_GetInt(interp, argv[7], &timPtr->height) != TCL_OK)) {
893 Tk_ImageChanged(timPtr->master, x, y, width, height, timPtr->width,
894 timPtr->height);
928 TImageMaster *timPtr = (TImageMaster *) clientData;
933 sprintf(buffer, "%s get", timPtr->imageName);
934 Tcl_SetVar(timPtr->interp, timPtr->varName, buffer,
938 instPtr->masterPtr = timPtr;
939 instPtr->fg = Tk_GetColor(timPtr->interp, tkwin, "#ff0000");
1057 TImageMaster *timPtr = (TImageMaster *) clientData;
1060 sprintf(buffer, "%s delete", timPtr->imageName);
1061 Tcl_SetVar(timPtr->interp, timPtr->varName, buffer,
1064 Tcl_DeleteCommand(timPtr->interp, timPtr->imageName);
1065 ckfree(timPtr->imageName);
1066 ckfree(timPtr->varName);
1067 ckfree((char *) timPtr);