 |
Index for Section 9 |
|
 |
Alphabetical listing for V |
|
 |
Bottom of page |
|
VisualRec(9s)
NAME
VisualRec - Graphics: Used by the DDX to describe the characteristics of a
visual class
SYNOPSIS
typedef struct _Visual {
VisualID vid;
short class;
short bitsPerRGBValue;
short ColormapEntries;
short nplanes;
u_long redMask, greenMask, blueMask;
int offsetRed, offsetGreen, offsetBlue;
} VisualRec;
MEMBERS
vid Specifies the client ID of the visual.
class
Specifies the visual class:GrayScale, StaticColor, PseudoColor, or
TrueColor.
bitsPerRGBValue
Specifies the number of significant bits in a color cell needed to
store the red, green, and blue primary colors.
ColormapEntries
Specifies the number of entries in a colormap for this visual class.
The GrayScale, StaticColor, and PseudoColor visual classes use colormap
entries.
nplanes
Specifies the number of bits per pixel.
redMask, greenMask, blueMask
Specify the valid bits that can appear in the red, green, and blue
fields of a pixel value. The PseudoColor visual class uses their
structure members.
offsetRed, offsetGreen, offsetBlue
Specify the range within the 24-bit address that contains the color and
intensity for a pixel. The TrueColor visual class uses these structure
members.
DESCRIPTION
The VisualRec data structure defines the characteristics of a single visual
class. You define an array of these structures, one for each visual class
that the display supports.
FILES
</usr/X11R6/xc/programs/Xserver/include/scrnintstr.h>
SEE ALSO
Data Structures: Depthrec(9s), ScreenRec(9s)
 |
Index for Section 9 |
|
 |
Alphabetical listing for V |
|
 |
Top of page |
|