Lines Matching refs:canvas

4  *	This file implements image items for canvas widgets.
25 Tk_Canvas canvas; /* Canvas containing the image. */
63 Tk_Canvas canvas, Tk_Item *itemPtr, int argc,
65 static int ImageToArea _ANSI_ARGS_((Tk_Canvas canvas,
67 static double ImageToPoint _ANSI_ARGS_((Tk_Canvas canvas,
69 static void ComputeImageBbox _ANSI_ARGS_((Tk_Canvas canvas,
72 Tk_Canvas canvas, Tk_Item *itemPtr, int argc,
75 Tk_Canvas canvas, struct Tk_Item *itemPtr,
77 static void DeleteImage _ANSI_ARGS_((Tk_Canvas canvas,
79 static void DisplayImage _ANSI_ARGS_((Tk_Canvas canvas,
82 static void ScaleImage _ANSI_ARGS_((Tk_Canvas canvas,
85 static void TranslateImage _ANSI_ARGS_((Tk_Canvas canvas,
123 * item in a canvas.
138 CreateImage(interp, canvas, itemPtr, argc, argv)
140 Tk_Canvas canvas; /* Canvas to hold new item. */
150 Tk_PathName(Tk_CanvasTkwin(canvas)), " create ",
160 imgPtr->canvas = canvas;
169 if ((Tk_CanvasGetCoord(interp, canvas, argv[0], &imgPtr->x) != TCL_OK)
170 || (Tk_CanvasGetCoord(interp, canvas, argv[1], &imgPtr->y)
175 if (ConfigureImage(interp, canvas, itemPtr, argc-2, argv+2, 0) != TCL_OK) {
176 DeleteImage(canvas, itemPtr, Tk_Display(Tk_CanvasTkwin(canvas)));
202 ImageCoords(interp, canvas, itemPtr, argc, argv)
204 Tk_Canvas canvas; /* Canvas containing item. */
220 if ((Tk_CanvasGetCoord(interp, canvas, argv[0], &imgPtr->x) != TCL_OK)
221 || (Tk_CanvasGetCoord(interp, canvas, argv[1],
225 ComputeImageBbox(canvas, imgPtr);
254 ConfigureImage(interp, canvas, itemPtr, argc, argv, flags)
256 Tk_Canvas canvas; /* Canvas containing itemPtr. */
266 tkwin = Tk_CanvasTkwin(canvas);
292 ComputeImageBbox(canvas, imgPtr);
315 DeleteImage(canvas, itemPtr, display)
316 Tk_Canvas canvas; /* Info about overall canvas widget. */
319 * canvas. */
354 ComputeImageBbox(canvas, imgPtr)
355 Tk_Canvas canvas; /* Canvas that contains item. */
433 * information in canvas.
439 DisplayImage(canvas, itemPtr, display, drawable, x, y, width, height)
440 Tk_Canvas canvas; /* Canvas that contains item. */
445 int x, y, width, height; /* Describes region of canvas that
459 Tk_CanvasDrawableCoords(canvas, (double) x, (double) y,
472 * rectangle, in canvas units.
487 ImageToPoint(canvas, itemPtr, coordPtr)
488 Tk_Canvas canvas; /* Canvas containing item. */
545 ImageToArea(canvas, itemPtr, rectPtr)
546 Tk_Canvas canvas; /* Canvas containing item. */
590 ScaleImage(canvas, itemPtr, originX, originY, scaleX, scaleY)
591 Tk_Canvas canvas; /* Canvas containing rectangle. */
601 ComputeImageBbox(canvas, imgPtr);
624 TranslateImage(canvas, itemPtr, deltaX, deltaY)
625 Tk_Canvas canvas; /* Canvas containing item. */
634 ComputeImageBbox(canvas, imgPtr);
651 * Arranges for the canvas to get redisplayed.
658 ClientData clientData; /* Pointer to canvas item for image. */
679 Tk_CanvasEventuallyRedraw(imgPtr->canvas, imgPtr->header.x1,
682 ComputeImageBbox(imgPtr->canvas, imgPtr);
683 Tk_CanvasEventuallyRedraw(imgPtr->canvas, imgPtr->header.x1 + x,