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

Function Tk_MoveResizeWindow

micropolis-activity/src/tk/tkwindow.c:1255–1282  ·  view source on GitHub ↗
(tkwin, x, y, width, height)

Source from the content-addressed store, hash-verified

1253 if (!(winPtr->flags & TK_TOP_LEVEL)) {
1254 winPtr->changes.width = width;
1255 winPtr->changes.height = height;
1256 DoConfigureNotify(winPtr);
1257 }
1258 } else {
1259 winPtr->changes.width = width;
1260 winPtr->changes.height = height;
1261 winPtr->dirtyChanges |= CWWidth|CWHeight;
1262 winPtr->flags |= TK_NEED_CONFIG_NOTIFY;
1263 }
1264}
1265
1266void
1267Tk_MoveResizeWindow(tkwin, x, y, width, height)
1268 Tk_Window tkwin; /* Window to move and resize. */
1269 int x, y; /* New location for window (within
1270 * parent). */
1271 unsigned int width, height; /* New dimensions for window. */
1272{
1273 register TkWindow *winPtr = (TkWindow *) tkwin;
1274
1275 if (winPtr->window != None) {
1276 XMoveResizeWindow(winPtr->display, winPtr->window,
1277 x, y, width, height);
1278 if (!(winPtr->flags & TK_TOP_LEVEL)) {
1279 winPtr->changes.x = x;
1280 winPtr->changes.y = y;
1281 winPtr->changes.width = width;
1282 winPtr->changes.height = height;
1283 DoConfigureNotify(winPtr);
1284 }
1285 } else {

Callers 4

RecomputePlacementFunction · 0.85
ArrangePackingFunction · 0.85
DisplayWinItemFunction · 0.85
UpdateGeometryInfoFunction · 0.85

Calls 1

DoConfigureNotifyFunction · 0.85

Tested by

no test coverage detected