Lines Matching refs:canvas
4 * This file implements polygon items for canvas widgets.
74 static void ComputePolygonBbox _ANSI_ARGS_((Tk_Canvas canvas,
77 Tk_Canvas canvas, Tk_Item *itemPtr, int argc,
80 Tk_Canvas canvas, struct Tk_Item *itemPtr,
82 static void DeletePolygon _ANSI_ARGS_((Tk_Canvas canvas,
84 static void DisplayPolygon _ANSI_ARGS_((Tk_Canvas canvas,
88 Tk_Canvas canvas, Tk_Item *itemPtr,
90 static int PolygonToArea _ANSI_ARGS_((Tk_Canvas canvas,
92 static double PolygonToPoint _ANSI_ARGS_((Tk_Canvas canvas,
95 Tk_Canvas canvas, Tk_Item *itemPtr, int prepass));
96 static void ScalePolygon _ANSI_ARGS_((Tk_Canvas canvas,
99 static void TranslatePolygon _ANSI_ARGS_((Tk_Canvas canvas,
145 * a canvas.
161 CreatePolygon(interp, canvas, itemPtr, argc, argv)
163 Tk_Canvas canvas; /* Canvas to hold new item. */
174 Tk_PathName(Tk_CanvasTkwin(canvas)), " create ",
209 if (PolygonCoords(interp, canvas, itemPtr, i, argv) != TCL_OK) {
213 if (ConfigurePolygon(interp, canvas, itemPtr, argc-i, argv+i, 0)
219 DeletePolygon(canvas, itemPtr, Tk_Display(Tk_CanvasTkwin(canvas)));
243 PolygonCoords(interp, canvas, itemPtr, argc, argv)
245 Tk_Canvas canvas; /* Canvas containing item. */
289 if (Tk_CanvasGetCoord(interp, canvas, argv[i],
306 ComputePolygonBbox(canvas, polyPtr);
332 ConfigurePolygon(interp, canvas, itemPtr, argc, argv, flags)
334 Tk_Canvas canvas; /* Canvas containing itemPtr. */
346 tkwin = Tk_CanvasTkwin(canvas);
402 ComputePolygonBbox(canvas, polyPtr);
425 DeletePolygon(canvas, itemPtr, display)
426 Tk_Canvas canvas; /* Info about overall canvas widget. */
429 * canvas. */
473 ComputePolygonBbox(canvas, polyPtr)
474 Tk_Canvas canvas; /* Canvas that contains item. */
517 * information in canvas.
523 TkFillPolygon(canvas, coordPtr, numPoints, display, drawable, gc, outlineGC)
524 Tk_Canvas canvas; /* Canvas whose coordinate system
556 Tk_CanvasDrawableCoords(canvas, coordPtr[0], coordPtr[1], &pPtr->x,
592 * information in canvas.
598 DisplayPolygon(canvas, itemPtr, display, drawable, x, y, width, height)
599 Tk_Canvas canvas; /* Canvas that contains item. */
604 int x, y, width, height; /* Describes region of canvas that
620 Tk_CanvasSetStippleOrigin(canvas, polyPtr->fillGC);
624 TkFillPolygon(canvas, polyPtr->coordPtr, polyPtr->numPoints,
643 numPoints = TkMakeBezierCurve(canvas, polyPtr->coordPtr,
670 * polygon, in canvas units.
686 PolygonToPoint(canvas, itemPtr, pointPtr)
687 Tk_Canvas canvas; /* Canvas containing item. */
712 numPoints = TkMakeBezierCurve(canvas, polyPtr->coordPtr,
752 PolygonToArea(canvas, itemPtr, rectPtr)
753 Tk_Canvas canvas; /* Canvas containing item. */
777 numPoints = TkMakeBezierCurve(canvas, polyPtr->coordPtr,
853 ScalePolygon(canvas, itemPtr, originX, originY, scaleX, scaleY)
854 Tk_Canvas canvas; /* Canvas containing polygon. */
869 ComputePolygonBbox(canvas, polyPtr);
893 TranslatePolygon(canvas, itemPtr, deltaX, deltaY)
894 Tk_Canvas canvas; /* Canvas containing item. */
908 ComputePolygonBbox(canvas, polyPtr);
934 PolygonToPostscript(interp, canvas, itemPtr, prepass)
937 Tk_Canvas canvas; /* Information about overall canvas. */
953 Tk_CanvasPsPath(interp, canvas, polyPtr->coordPtr,
956 TkMakeBezierPostscript(interp, canvas, polyPtr->coordPtr,
959 if (Tk_CanvasPsColor(interp, canvas, polyPtr->fillColor) != TCL_OK) {
964 if (Tk_CanvasPsStipple(interp, canvas, polyPtr->fillStipple)
982 Tk_CanvasPsPath(interp, canvas, polyPtr->coordPtr,
985 TkMakeBezierPostscript(interp, canvas, polyPtr->coordPtr,
992 if (Tk_CanvasPsColor(interp, canvas, polyPtr->outlineColor)