Lines Matching defs:imagePtr
153 Image *imagePtr;
227 for (imagePtr = masterPtr->instancePtr; imagePtr != NULL;
228 imagePtr = imagePtr->nextPtr) {
230 imagePtr->instanceData, imagePtr->display);
231 (*imagePtr->changeProc)(imagePtr->widgetClientData, 0, 0,
253 for (imagePtr = masterPtr->instancePtr; imagePtr != NULL;
254 imagePtr = imagePtr->nextPtr) {
255 imagePtr->instanceData = (*typePtr->getProc)(
256 imagePtr->tkwin, masterPtr->masterData);
379 Image *imagePtr;
383 for (imagePtr = masterPtr->instancePtr; imagePtr != NULL;
384 imagePtr = imagePtr->nextPtr) {
385 (*imagePtr->changeProc)(imagePtr->widgetClientData, x, y,
456 Image *imagePtr;
466 imagePtr = (Image *) ckalloc(sizeof(Image));
467 imagePtr->tkwin = tkwin;
468 imagePtr->display = Tk_Display(tkwin);
469 imagePtr->masterPtr = masterPtr;
470 imagePtr->instanceData =
472 imagePtr->changeProc = changeProc;
473 imagePtr->widgetClientData = clientData;
474 imagePtr->nextPtr = masterPtr->instancePtr;
475 masterPtr->instancePtr = imagePtr;
476 return (Tk_Image) imagePtr;
508 Image *imagePtr = (Image *) image;
509 ImageMaster *masterPtr = imagePtr->masterPtr;
517 (*masterPtr->typePtr->freeProc)(imagePtr->instanceData,
518 imagePtr->display);
521 if (prevPtr == imagePtr) {
522 masterPtr->instancePtr = imagePtr->nextPtr;
524 while (prevPtr->nextPtr != imagePtr) {
527 prevPtr->nextPtr = imagePtr->nextPtr;
529 ckfree((char *) imagePtr);
576 Image *imagePtr = (Image *) image;
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)(
607 imagePtr->instanceData, imagePtr->display, drawable,
635 Image *imagePtr = (Image *) image;
637 *widthPtr = imagePtr->masterPtr->width;
638 *heightPtr = imagePtr->masterPtr->height;
705 Image *imagePtr;
711 for (imagePtr = masterPtr->instancePtr; imagePtr != NULL;
712 imagePtr = imagePtr->nextPtr) {
713 (*typePtr->freeProc)(imagePtr->instanceData,
714 imagePtr->display);
715 (*imagePtr->changeProc)(imagePtr->widgetClientData, 0, 0,