Next: Image object
Prev: Widget object
Up: Xt
Top: Top
3.4. Visual Info object
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:
- CreateColormap (alloc) -- Method on Visual Info object
-
Returns
cm_object
.
This function corresponds with XCreateColormap
.
- CreateImage (depth, format, offset, data, width, height, bitmap_pad, bytes_per_line) -- Method on Visual Info object
-
Returns
im_object
.
This function corresponds with XCreateImage
.
- bits_per_rgb -- attribute of Visual Info object
-
Field in XVisualInfo structure.
- blue_mask -- attribute of Visual Info object
-
Field in XVisualInfo structure.
- c_class -- attribute of Visual Info object
-
Field in XVisualInfo structure. Alternative name for the
class
field.
- class -- attribute of Visual Info object
-
Field in XVisualInfo structure.
- colormap_size -- attribute of Visual Info object
-
Field in XVisualInfo structure.
- depth -- attribute of Visual Info object
-
Field in XVisualInfo structure.
- green_mask -- attribute of Visual Info object
-
Field in XVisualInfo structure.
- red_mask -- attribute of Visual Info object
-
Field in XVisualInfo structure.
- visual -- attribute of Visual Info object
-
Field in XVisualInfo structure.
- visualid -- attribute of Visual Info object
-
Field in XVisualInfo structure.