XGetVisualInfo(3X) — X Version 11
NAME
XGetVisualInfo, XMatchVisualInfo − obtain visual information
SYNTAX
XVisualInfo ∗XGetVisualInfo(display, vinfo_mask, vinfo_template, nitems_return)
Display ∗display;
long vinfo_mask;
XVisualInfo ∗vinfo_template;
int ∗nitems_return;
Status XMatchVisualInfo(display, screen, depth, class, vinfo_return)
Display ∗display;
int screen;
int depth;
int class;
XVisualInfo ∗vinfo_return;
ARGUMENTS
classSpecifies the class of the screen.
depthSpecifies the depth of the screen.
displaySpecifies the connection to the X server.
nitems_return
Returns the number of matching visual structures.
screenSpecifies the screen.
vinfo_maskSpecifies the visual mask value.
vinfo_returnReturns the match visual information.
vinfo_template
Specifies the visual attributes that are to be used in matching the visual structures.
DESCRIPTION
The XGetVisualInfo function returns a list of visual structures that match the attributes specified by the template argument. If no visual structures match the template using the specified vinfo_mask, XGetVisualInfo returns a NULL.
The XMatchVisualInfo function obtains the visual information that matches the specified depth and class of the screen.
SEE ALSO
Xlib − C Language X Interface
1 March 1988