(tkwin, valueMask, attsPtr)
| 1301 | |
| 1302 | winPtr->changes.border_width = width; |
| 1303 | if (winPtr->window != None) { |
| 1304 | XSetWindowBorderWidth(winPtr->display, winPtr->window, width); |
| 1305 | if (!(winPtr->flags & TK_TOP_LEVEL)) { |
| 1306 | DoConfigureNotify(winPtr); |
| 1307 | } |
| 1308 | } else { |
| 1309 | winPtr->dirtyChanges |= CWBorderWidth; |
| 1310 | winPtr->flags |= TK_NEED_CONFIG_NOTIFY; |
| 1311 | } |
| 1312 | } |
| 1313 | |
| 1314 | void |
| 1315 | Tk_ChangeWindowAttributes(tkwin, valueMask, attsPtr) |
| 1316 | Tk_Window tkwin; /* Window to manipulate. */ |
| 1317 | unsigned long valueMask; /* OR'ed combination of bits, |
| 1318 | * indicating which fields of |
| 1319 | * *attsPtr are to be used. */ |
| 1320 | register XSetWindowAttributes *attsPtr; |
| 1321 | /* New values for some attributes. */ |
| 1322 | { |
| 1323 | register TkWindow *winPtr = (TkWindow *) tkwin; |
| 1324 | |
| 1325 | if (valueMask & CWBackPixmap) { |
| 1326 | winPtr->atts.background_pixmap = attsPtr->background_pixmap; |
| 1327 | } |
| 1328 | if (valueMask & CWBackPixel) { |
| 1329 | winPtr->atts.background_pixel = attsPtr->background_pixel; |
| 1330 | } |
| 1331 | if (valueMask & CWBorderPixmap) { |
| 1332 | winPtr->atts.border_pixmap = attsPtr->border_pixmap; |
| 1333 | } |
| 1334 | if (valueMask & CWBorderPixel) { |
| 1335 | winPtr->atts.border_pixel = attsPtr->border_pixel; |
| 1336 | } |
| 1337 | if (valueMask & CWBitGravity) { |
| 1338 | winPtr->atts.bit_gravity = attsPtr->bit_gravity; |
| 1339 | } |
| 1340 | if (valueMask & CWWinGravity) { |
| 1341 | winPtr->atts.win_gravity = attsPtr->win_gravity; |
| 1342 | } |
| 1343 | if (valueMask & CWBackingStore) { |
| 1344 | winPtr->atts.backing_store = attsPtr->backing_store; |
| 1345 | } |
| 1346 | if (valueMask & CWBackingPlanes) { |
| 1347 | winPtr->atts.backing_planes = attsPtr->backing_planes; |
| 1348 | } |
| 1349 | if (valueMask & CWBackingPixel) { |
| 1350 | winPtr->atts.backing_pixel = attsPtr->backing_pixel; |
| 1351 | } |
| 1352 | if (valueMask & CWOverrideRedirect) { |
| 1353 | winPtr->atts.override_redirect = attsPtr->override_redirect; |
| 1354 | } |
| 1355 | if (valueMask & CWSaveUnder) { |
| 1356 | winPtr->atts.save_under = attsPtr->save_under; |
| 1357 | } |
| 1358 | if (valueMask & CWEventMask) { |
| 1359 | winPtr->atts.event_mask = attsPtr->event_mask; |
| 1360 | } |
no outgoing calls
no test coverage detected