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

Function Tk_SetWindowBackgroundPixmap

micropolis-activity/src/tk/tkwindow.c:1387–1404  ·  view source on GitHub ↗
(tkwin, pixmap)

Source from the content-addressed store, hash-verified

1385{
1386 register TkWindow *winPtr = (TkWindow *) tkwin;
1387
1388 winPtr->atts.background_pixel = pixel;
1389
1390 if (winPtr->window != None) {
1391 XSetWindowBackground(winPtr->display, winPtr->window, pixel);
1392 } else {
1393 winPtr->dirtyAtts = (winPtr->dirtyAtts & ~CWBackPixmap)
1394 | CWBackPixel;
1395 }
1396}
1397
1398void
1399Tk_SetWindowBackgroundPixmap(tkwin, pixmap)
1400 Tk_Window tkwin; /* Window to manipulate. */
1401 Pixmap pixmap; /* Pixmap to use for window's
1402 * background. */
1403{
1404 register TkWindow *winPtr = (TkWindow *) tkwin;
1405
1406 winPtr->atts.background_pixmap = pixmap;
1407

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected