4.4 Visual Info

Visual Info objects are used to represent a XVisualInfo structure. The widget method GetVisualInfo returns a list of Visual Info objects; the widget method DefaultVisualOfScreen returns a single Visual Info object. Visual Info objects can be used to create a colormap using the widget method CreateColormap and to create an Image object using the Visual Info method CreateImage.

Visual Info objects (vi_objects) have the following method and variables:

bits_per_rgb
Field in XVisualInfo structure.

blue_mask
Field in XVisualInfo structure.

c_class
Field in XVisualInfo structure. Alternative name for the class field.

class
Field in XVisualInfo structure.

colormap_size
Field in XVisualInfo structure.

depth
Field in XVisualInfo structure.

green_mask
Field in XVisualInfo structure.

red_mask
Field in XVisualInfo structure.

visual
Field in XVisualInfo structure.

visualid
Field in XVisualInfo structure.

CreateColormap( alloc)
Returns cm_object. This function corresponds with XCreateColormap.

CreateImage( depth, format, offset, data, width, height, bitmap_pad, bytes_per_line)
Returns im_object. This function corresponds with XCreateImage.

CreateColormap( alloc)
Returns cm_object. This function corresponds with XCreateColormap.

CreateImage( depth, format, offset, data, width, height, bitmap_pad, bytes_per_line)
Returns im_object. This function corresponds with XCreateImage.