Lines Matching refs:image

4  *	This file implements image items for canvas widgets.
19 * The structure below defines the record for each image item.
25 Tk_Canvas canvas; /* Canvas containing the image. */
27 * image. */
28 Tk_Anchor anchor; /* Where to anchor image relative to
30 char *imageString; /* String describing -image option (malloc-ed).
31 * NULL means no image right now. */
32 Tk_Image image; /* Image to display in window, or NULL if
33 * no image at present. */
47 {TK_CONFIG_STRING, "-image", (char *) NULL, (char *) NULL,
89 * The structures below defines the image item type in terms of
94 "image", /* name */
122 * This procedure is invoked to create a new image
132 * A new image item is created.
163 imgPtr->image = NULL;
189 * command on image items. See the user documentation for
241 * of an image item, such as its anchor position.
264 Tk_Image image;
273 * Create the image. Save the old image around and don't free it
275 * count from going to zero so the image doesn't have to be recreated
280 image = Tk_GetImage(interp, tkwin, imgPtr->imageString,
282 if (image == NULL) {
286 image = NULL;
288 if (imgPtr->image != NULL) {
289 Tk_FreeImage(imgPtr->image);
291 imgPtr->image = image;
303 * associated with a image item.
326 if (imgPtr->image != NULL) {
327 Tk_FreeImage(imgPtr->image);
338 * all the pixels that may be drawn as part of a image item.
339 * This procedure is where the child image's placement is
365 if (imgPtr->image == None) {
372 * Compute location and size of image, using anchor information.
375 Tk_SizeOfImage(imgPtr->image, &width, &height);
425 * This procedure is invoked to draw a image item in a given
451 if (imgPtr->image == NULL) {
456 * Translate the coordinates to those of the image, then redisplay it.
461 Tk_RedrawImage(imgPtr->image, x - imgPtr->header.x1, y - imgPtr->header.y1,
476 * are coordPtr[0] and coordPtr[1] is inside the image. If the
477 * point isn't inside the image then the return value is the
478 * distance from the point to the image.
643 * This procedure is invoked by the image code whenever the manager
644 * for an image does something that affects the image's size or
658 ClientData clientData; /* Pointer to canvas item for image. */
659 int x, y; /* Upper left pixel (within image)
663 int imgWidth, imgHeight; /* New dimensions of image. */
668 * If the image's size changed and it's not anchored at its
670 * image. This is a bit over-conservative, but we need to do