MCPcopy Create free account
hub / github.com/SimHacker/micropolis / ScaleText

Function ScaleText

micropolis-activity/src/tk/tkcvtext.c:1119–1133  ·  view source on GitHub ↗

ARGSUSED */

(canvasPtr, itemPtr, originX, originY, scaleX, scaleY)

Source from the content-addressed store, hash-verified

1117 * This procedure is invoked to rescale a text item.
1118 *
1119 * Results:
1120 * None.
1121 *
1122 * Side effects:
1123 * Scales the position of the text, but not the size
1124 * of the font for the text.
1125 *
1126 *--------------------------------------------------------------
1127 */
1128
1129 /* ARGSUSED */
1130static void
1131ScaleText(canvasPtr, itemPtr, originX, originY, scaleX, scaleY)
1132 Tk_Canvas *canvasPtr; /* Canvas containing rectangle. */
1133 Tk_Item *itemPtr; /* Rectangle to be scaled. */
1134 double originX, originY; /* Origin about which to scale rect. */
1135 double scaleX; /* Amount to scale in X direction. */
1136 double scaleY; /* Amount to scale in Y direction. */

Callers

nothing calls this directly

Calls 1

ComputeTextBboxFunction · 0.85

Tested by

no test coverage detected