This function sets the background of the window wid to display the image from pixmap. The flags parameter specifies how to draw the pixmap (centered, top-left, tiled, etc.). If the pixmap parameter is zero, the background pixmap will be disabled for the window, and the window will revert to using a solid color fill.
Type | Name | Description |
---|---|---|
GR_WINDOW_ID | wid | The ID of the window to set the background pixmap for. |
GR_WINDOW_ID | pixmap | ID of the pixmap to use as a background image. |
int | flags | The pixmap drawing flags. These flags define how the pixmap should be drawn within the window. See the table below. |
Table 2-1. GrSetBackgroundPixmap Flags
Flag | Description |
---|---|
GR_BACKGROUND_TILE | Tile the pixmap images across the window. |
GR_BACKGROUND_CENTER | Center the pixmap image in the window. |
GR_BACKGROUND_TOPLEFT | Draw the pixmap image in the upper left corner of the window. |
GR_BACKGROUND_STRETCH | Stretch the pixmap image to fit the window. |
GR_BACKGROUND_TRANS | Don't fill in the gaps in the window. |