Lines Matching refs:masterPtr
32 struct ImageMaster *masterPtr;
84 static void DeleteImage _ANSI_ARGS_((ImageMaster *masterPtr));
152 ImageMaster *masterPtr;
211 masterPtr = (ImageMaster *) ckalloc(sizeof(ImageMaster));
212 masterPtr->typePtr = NULL;
213 masterPtr->masterData = NULL;
214 masterPtr->width = masterPtr->height = 1;
215 masterPtr->tablePtr = &winPtr->mainPtr->imageTable;
216 masterPtr->hPtr = hPtr;
217 masterPtr->instancePtr = NULL;
218 Tcl_SetHashValue(hPtr, masterPtr);
225 masterPtr = (ImageMaster *) Tcl_GetHashValue(hPtr);
226 if (masterPtr->typePtr != NULL) {
227 for (imagePtr = masterPtr->instancePtr; imagePtr != NULL;
229 (*masterPtr->typePtr->freeProc)(
232 masterPtr->width, masterPtr->height, masterPtr->width,
233 masterPtr->height);
235 (*masterPtr->typePtr->deleteProc)(masterPtr->masterData);
236 masterPtr->typePtr = NULL;
247 argv+firstOption, typePtr, (Tk_ImageMaster) masterPtr,
248 &masterPtr->masterData) != TCL_OK) {
249 DeleteImage(masterPtr);
252 masterPtr->typePtr = typePtr;
253 for (imagePtr = masterPtr->instancePtr; imagePtr != NULL;
256 imagePtr->tkwin, masterPtr->masterData);
267 masterPtr = (ImageMaster *) Tcl_GetHashValue(hPtr);
268 DeleteImage(masterPtr);
282 masterPtr = (ImageMaster *) Tcl_GetHashValue(hPtr);
283 sprintf(interp->result, "%d", masterPtr->height);
307 masterPtr = (ImageMaster *) Tcl_GetHashValue(hPtr);
308 if (masterPtr->typePtr != NULL) {
309 interp->result = masterPtr->typePtr->name;
333 masterPtr = (ImageMaster *) Tcl_GetHashValue(hPtr);
334 sprintf(interp->result, "%d", masterPtr->width);
378 ImageMaster *masterPtr = (ImageMaster *) imageMaster;
381 masterPtr->width = imageWidth;
382 masterPtr->height = imageHeight;
383 for (imagePtr = masterPtr->instancePtr; imagePtr != NULL;
412 ImageMaster *masterPtr = (ImageMaster *) imageMaster;
414 return Tcl_GetHashKey(masterPtr->tablePtr, masterPtr->hPtr);
455 ImageMaster *masterPtr;
462 masterPtr = (ImageMaster *) Tcl_GetHashValue(hPtr);
463 if (masterPtr->typePtr == NULL) {
469 imagePtr->masterPtr = masterPtr;
471 (*masterPtr->typePtr->getProc)(tkwin, masterPtr->masterData);
474 imagePtr->nextPtr = masterPtr->instancePtr;
475 masterPtr->instancePtr = imagePtr;
509 ImageMaster *masterPtr = imagePtr->masterPtr;
516 if (masterPtr->typePtr != NULL) {
517 (*masterPtr->typePtr->freeProc)(imagePtr->instanceData,
520 prevPtr = masterPtr->instancePtr;
522 masterPtr->instancePtr = imagePtr->nextPtr;
536 if ((masterPtr->typePtr == NULL) && (masterPtr->instancePtr == NULL)) {
537 Tcl_DeleteHashEntry(masterPtr->hPtr);
538 ckfree((char *) masterPtr);
578 if (imagePtr->masterPtr->typePtr == NULL) {
600 if ((imageX + width) > imagePtr->masterPtr->width) {
601 width = imagePtr->masterPtr->width - imageX;
603 if ((imageY + height) > imagePtr->masterPtr->height) {
604 height = imagePtr->masterPtr->height - imageY;
606 (*imagePtr->masterPtr->typePtr->displayProc)(
637 *widthPtr = imagePtr->masterPtr->width;
638 *heightPtr = imagePtr->masterPtr->height;
702 DeleteImage(masterPtr)
703 ImageMaster *masterPtr; /* Pointer to main data structure for image. */
708 typePtr = masterPtr->typePtr;
709 masterPtr->typePtr = NULL;
711 for (imagePtr = masterPtr->instancePtr; imagePtr != NULL;
716 masterPtr->width, masterPtr->height, masterPtr->width,
717 masterPtr->height);
719 (*typePtr->deleteProc)(masterPtr->masterData);
721 if (masterPtr->instancePtr == NULL) {
722 Tcl_DeleteHashEntry(masterPtr->hPtr);
723 ckfree((char *) masterPtr);
754 ImageMaster *masterPtr;
758 masterPtr = (ImageMaster *) Tcl_GetHashValue(hPtr);
759 DeleteImage(masterPtr);