Lines Matching defs:rectOvalPtr

64 			    RectOvalItem *rectOvalPtr));
176 RectOvalItem *rectOvalPtr = (RectOvalItem *) itemPtr;
191 rectOvalPtr->width = 1;
192 rectOvalPtr->outlineColor = NULL;
193 rectOvalPtr->fillColor = NULL;
194 rectOvalPtr->fillStipple = None;
195 rectOvalPtr->outlineGC = None;
196 rectOvalPtr->fillGC = None;
203 &rectOvalPtr->bbox[0]) != TCL_OK)
205 &rectOvalPtr->bbox[1]) != TCL_OK)
207 &rectOvalPtr->bbox[2]) != TCL_OK)
209 &rectOvalPtr->bbox[3]) != TCL_OK)) {
251 RectOvalItem *rectOvalPtr = (RectOvalItem *) itemPtr;
256 Tcl_PrintDouble(interp, rectOvalPtr->bbox[0], c0);
257 Tcl_PrintDouble(interp, rectOvalPtr->bbox[1], c1);
258 Tcl_PrintDouble(interp, rectOvalPtr->bbox[2], c2);
259 Tcl_PrintDouble(interp, rectOvalPtr->bbox[3], c3);
264 &rectOvalPtr->bbox[0]) != TCL_OK)
266 &rectOvalPtr->bbox[1]) != TCL_OK)
268 &rectOvalPtr->bbox[2]) != TCL_OK)
270 &rectOvalPtr->bbox[3]) != TCL_OK)) {
273 ComputeRectOvalBbox(canvas, rectOvalPtr);
313 RectOvalItem *rectOvalPtr = (RectOvalItem *) itemPtr;
321 (char *) rectOvalPtr, flags) != TCL_OK) {
330 if (rectOvalPtr->width < 1) {
331 rectOvalPtr->width = 1;
333 if (rectOvalPtr->outlineColor == NULL) {
336 gcValues.foreground = rectOvalPtr->outlineColor->pixel;
338 gcValues.line_width = rectOvalPtr->width;
342 if (rectOvalPtr->outlineGC != None) {
343 Tk_FreeGC(Tk_Display(tkwin), rectOvalPtr->outlineGC);
345 rectOvalPtr->outlineGC = newGC;
347 if (rectOvalPtr->fillColor == NULL) {
350 gcValues.foreground = rectOvalPtr->fillColor->pixel;
351 if (rectOvalPtr->fillStipple != None) {
352 gcValues.stipple = rectOvalPtr->fillStipple;
360 if (rectOvalPtr->fillGC != None) {
361 Tk_FreeGC(Tk_Display(tkwin), rectOvalPtr->fillGC);
363 rectOvalPtr->fillGC = newGC;
364 ComputeRectOvalBbox(canvas, rectOvalPtr);
394 RectOvalItem *rectOvalPtr = (RectOvalItem *) itemPtr;
396 if (rectOvalPtr->outlineColor != NULL) {
397 Tk_FreeColor(rectOvalPtr->outlineColor);
399 if (rectOvalPtr->fillColor != NULL) {
400 Tk_FreeColor(rectOvalPtr->fillColor);
402 if (rectOvalPtr->fillStipple != None) {
403 Tk_FreeBitmap(display, rectOvalPtr->fillStipple);
405 if (rectOvalPtr->outlineGC != None) {
406 Tk_FreeGC(display, rectOvalPtr->outlineGC);
408 if (rectOvalPtr->fillGC != None) {
409 Tk_FreeGC(display, rectOvalPtr->fillGC);
435 ComputeRectOvalBbox(canvas, rectOvalPtr)
437 RectOvalItem *rectOvalPtr; /* Item whose bbox is to be
447 if (rectOvalPtr->bbox[1] > rectOvalPtr->bbox[3]) {
449 tmp = rectOvalPtr->bbox[3];
450 rectOvalPtr->bbox[3] = rectOvalPtr->bbox[1];
451 rectOvalPtr->bbox[1] = tmp;
453 if (rectOvalPtr->bbox[0] > rectOvalPtr->bbox[2]) {
455 tmp = rectOvalPtr->bbox[2];
456 rectOvalPtr->bbox[2] = rectOvalPtr->bbox[0];
457 rectOvalPtr->bbox[0] = tmp;
460 if (rectOvalPtr->outlineColor == NULL) {
463 bloat = (rectOvalPtr->width+1)/2;
472 tmp = (rectOvalPtr->bbox[0] >= 0) ? rectOvalPtr->bbox[0] + .5
473 : rectOvalPtr->bbox[0] - .5;
474 rectOvalPtr->header.x1 = tmp - bloat;
475 tmp = (rectOvalPtr->bbox[1] >= 0) ? rectOvalPtr->bbox[1] + .5
476 : rectOvalPtr->bbox[1] - .5;
477 rectOvalPtr->header.y1 = tmp - bloat;
478 dtmp = rectOvalPtr->bbox[2];
479 if (dtmp < (rectOvalPtr->bbox[0] + 1)) {
480 dtmp = rectOvalPtr->bbox[0] + 1;
483 rectOvalPtr->header.x2 = tmp + bloat;
484 dtmp = rectOvalPtr->bbox[3];
485 if (dtmp < (rectOvalPtr->bbox[1] + 1)) {
486 dtmp = rectOvalPtr->bbox[1] + 1;
489 rectOvalPtr->header.y2 = tmp + bloat;
521 RectOvalItem *rectOvalPtr = (RectOvalItem *) itemPtr;
530 Tk_CanvasDrawableCoords(canvas, rectOvalPtr->bbox[0], rectOvalPtr->bbox[1],
532 Tk_CanvasDrawableCoords(canvas, rectOvalPtr->bbox[2], rectOvalPtr->bbox[3],
548 if (rectOvalPtr->fillGC != None) {
549 if (rectOvalPtr->fillStipple != None) {
550 Tk_CanvasSetStippleOrigin(canvas, rectOvalPtr->fillGC);
552 if (rectOvalPtr->header.typePtr == &tkRectangleType) {
553 XFillRectangle(display, drawable, rectOvalPtr->fillGC,
556 XFillArc(display, drawable, rectOvalPtr->fillGC,
560 if (rectOvalPtr->fillStipple != None) {
561 XSetTSOrigin(display, rectOvalPtr->fillGC, 0, 0);
564 if (rectOvalPtr->outlineGC != None) {
565 if (rectOvalPtr->header.typePtr == &tkRectangleType) {
566 XDrawRectangle(display, drawable, rectOvalPtr->outlineGC,
569 XDrawArc(display, drawable, rectOvalPtr->outlineGC,
898 RectOvalItem *rectOvalPtr = (RectOvalItem *) itemPtr;
900 rectOvalPtr->bbox[0] = originX + scaleX*(rectOvalPtr->bbox[0] - originX);
901 rectOvalPtr->bbox[1] = originY + scaleY*(rectOvalPtr->bbox[1] - originY);
902 rectOvalPtr->bbox[2] = originX + scaleX*(rectOvalPtr->bbox[2] - originX);
903 rectOvalPtr->bbox[3] = originY + scaleY*(rectOvalPtr->bbox[3] - originY);
904 ComputeRectOvalBbox(canvas, rectOvalPtr);
934 RectOvalItem *rectOvalPtr = (RectOvalItem *) itemPtr;
936 rectOvalPtr->bbox[0] += deltaX;
937 rectOvalPtr->bbox[1] += deltaY;
938 rectOvalPtr->bbox[2] += deltaX;
939 rectOvalPtr->bbox[3] += deltaY;
940 ComputeRectOvalBbox(canvas, rectOvalPtr);
976 RectOvalItem *rectOvalPtr = (RectOvalItem *) itemPtr;
979 y1 = Tk_CanvasPsY(canvas, rectOvalPtr->bbox[1]);
980 y2 = Tk_CanvasPsY(canvas, rectOvalPtr->bbox[3]);
989 if (rectOvalPtr->header.typePtr == &tkRectangleType) {
991 rectOvalPtr->bbox[0], y1,
992 rectOvalPtr->bbox[2]-rectOvalPtr->bbox[0], y2-y1,
993 rectOvalPtr->bbox[0]-rectOvalPtr->bbox[2]);
996 (rectOvalPtr->bbox[0] + rectOvalPtr->bbox[2])/2, (y1 + y2)/2,
997 (rectOvalPtr->bbox[2] - rectOvalPtr->bbox[0])/2, (y1 - y2)/2);
1004 if (rectOvalPtr->fillColor != NULL) {
1006 if (Tk_CanvasPsColor(interp, canvas, rectOvalPtr->fillColor)
1010 if (rectOvalPtr->fillStipple != None) {
1012 if (Tk_CanvasPsStipple(interp, canvas, rectOvalPtr->fillStipple)
1016 if (rectOvalPtr->outlineColor != NULL) {
1028 if (rectOvalPtr->outlineColor != NULL) {
1030 sprintf(string, "%d setlinewidth", rectOvalPtr->width);
1033 if (Tk_CanvasPsColor(interp, canvas, rectOvalPtr->outlineColor)