Solaris X Window System Developer's Guide

Setting the Paint Type of a Graphics Context

You can set a GC's paint type with the XSolarisOvlSetPaintType routine. XSolarisOvlSetPaintType specifies the type of paint rendered by subsequent Xlib drawing with the given GC. It controls whether Xlib drawing routines using this GC produce opaque or transparent pixels on overlay windows. The paint type specified applies to the GC until it is changed by another call to this routine. The paint type attribute applies to both the foreground and background GC attributes. The syntax and arguments are shown below.

void

XSolarisOvlSetPaintType (Display *display, GC gc,   XSolarisOvlPaintType

paintType)

display

Specifies the connection to the X server. 

gc

Specifies the affected GC. 

paintType

Specifies the type of paint rendered by subsequent Xlib drawing routines using the specified GC. 

The value of paintType can be XSolarisOvlPaintOpaque or XSolarisOvlPaintTransparent.