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

Function Tk_ResizeWindow

micropolis-activity/src/tk/tkwindow.c:1233–1253  ·  view source on GitHub ↗
(tkwin, width, height)

Source from the content-addressed store, hash-verified

1231 if (!(winPtr->flags & TK_TOP_LEVEL)) {
1232 winPtr->changes.x = x;
1233 winPtr->changes.y = y;
1234 DoConfigureNotify(winPtr);
1235 }
1236 } else {
1237 winPtr->changes.x = x;
1238 winPtr->changes.y = y;
1239 winPtr->dirtyChanges |= CWX|CWY;
1240 winPtr->flags |= TK_NEED_CONFIG_NOTIFY;
1241 }
1242}
1243
1244void
1245Tk_ResizeWindow(tkwin, width, height)
1246 Tk_Window tkwin; /* Window to resize. */
1247 unsigned int width, height; /* New dimensions for window. */
1248{
1249 register TkWindow *winPtr = (TkWindow *) tkwin;
1250
1251 if (winPtr->window != None) {
1252 XResizeWindow(winPtr->display, winPtr->window, width, height);
1253 if (!(winPtr->flags & TK_TOP_LEVEL)) {
1254 winPtr->changes.width = width;
1255 winPtr->changes.height = height;
1256 DoConfigureNotify(winPtr);

Callers 1

UpdateGeometryInfoFunction · 0.85

Calls 1

DoConfigureNotifyFunction · 0.85

Tested by

no test coverage detected