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

Function Tk_SetWindowBackground

micropolis-activity/src/tk/tkwindow.c:1369–1385  ·  view source on GitHub ↗
(tkwin, pixel)

Source from the content-addressed store, hash-verified

1367 }
1368 if (valueMask & CWCursor) {
1369 winPtr->atts.cursor = attsPtr->cursor;
1370 }
1371
1372 if (winPtr->window != None) {
1373 XChangeWindowAttributes(winPtr->display, winPtr->window,
1374 valueMask, attsPtr);
1375 } else {
1376 winPtr->dirtyAtts |= valueMask;
1377 }
1378}
1379
1380void
1381Tk_SetWindowBackground(tkwin, pixel)
1382 Tk_Window tkwin; /* Window to manipulate. */
1383 unsigned long pixel; /* Pixel value to use for
1384 * window's background. */
1385{
1386 register TkWindow *winPtr = (TkWindow *) tkwin;
1387
1388 winPtr->atts.background_pixel = pixel;

Callers 4

w_tk.cFile · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected