XVisualInfo(3)


HOME

XGetVisualInfo

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
STRUCTURES
SEE ALSO

NAME

XGetVisualInfo, XMatchVisualInfo, XVisualIDFromVisual, XVisualInfo − obtain visual information and visual structure

SYNTAX

XVisualInfo *XGetVisualInfo(Display *display, long vinfo_mask, XVisualInfo *vinfo_template, int *nitems_return);

Status XMatchVisualInfo(Display *display, int screen, int depth, int class, XVisualInfo *vinfo_return);

VisualID XVisualIDFromVisual(Visual *visual);

ARGUMENTS

class

Specifies the class of the screen.

depth

Specifies the depth of the screen.

display

Specifies the connection to the X server.

nitems_return

Returns the number of matching visual structures.

screen

Specifies the screen.

visual

Specifies the visual type.

vinfo_mask

Specifies the visual mask value.

vinfo_return

Returns the matched 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 have attributes equal to the attributes specified by vinfo_template. If no visual structures match the template using the specified vinfo_mask, XGetVisualInfo returns a NULL. To free the data returned by this function, use XFree.

The XMatchVisualInfo function returns the visual information for a visual that matches the specified depth and class for a screen. Because multiple visuals that match the specified depth and class can exist, the exact visual chosen is undefined. If a visual is found, XMatchVisualInfo returns nonzero and the information on the visual to vinfo_return. Otherwise, when a visual is not found, XMatchVisualInfo returns zero.

The XVisualIDFromVisual function returns the visual ID for the specified visual type.

STRUCTURES

The XVisualInfo structure contains:

/* Visual information mask bits */

/* Values */

typedef struct {

Visual *visual;

VisualID visualid;

int screen;

int depth;

int class;

unsigned long red_mask;

unsigned long green_mask;

unsigned long blue_mask;

int colormap_size;

int bits_per_rgb;

} XVisualInfo;

SEE ALSO

XFree(3)
Xlib − C Language X Interface



More Linux Commands

manpages/Mail::SpamAssassin::AsyncLoop.3pm.html
Mail::SpamAssassin::AsyncLoop(3pm) - scanner asynchronous ev
An asynchronous event loop used for long-running operations, performed in the background during the Mail::SpamAssassin::check() scan operation, such as DNS bloc

manpages/strncat.3.html
strncat(3) - concatenate two strings - Linux manual page....
The strcat() function appends the src string to the dest string, overwriting the terminating null byte (\0) at the end of dest, and then adds a terminating null

manpages/Tcl_CreateObjTrace.3.html
Tcl_CreateObjTrace(3) - arrange for command execution to be
Tcl_CreateObjTrace arranges for command tracing. After it is called, objProc will be invoked before the Tcl interpreter calls any command procedure when evaluat

manpages/ldap_first_entry.3.html
ldap_first_entry(3) - LDAP result entry parsing and counting
These routines are used to parse results received from ldap_result(3) or the synchronous LDAP search operation routines ldap_search_s(3) and ldap_search_st(3).

manpages/multixterm.1.html
multixterm(1) - drive multiple xterms separately or together
Multixterm creates multiple xterms that can be driven together or separately. In its simplest form, multixterm is run with no arguments and commands are interac

manpages/SDL_LoadBMP.3.html
SDL_LoadBMP(3) - Load a Windows BMP file into an SDL_Surface
Loads a surface from a named Windows BMP file. RETURN VALUE Returns the new surface, or NULL if there was an error. SEE ALSO SDL_SaveBMP SDL_LoadBMP.3 (Library

manpages/ldap_compare_s.3.html
ldap_compare_s(3) - Perform an LDAP compare operation.......
The ldap_compare_ext_s() routine is used to perform an LDAP compare operation synchronously. It takes dn, the DN of the entry upon which to perform the compare,

manpages/Tk_Get3DBorder.3.html
Tk_Get3DBorder(3) - draw borders with three-dimensional appe
These procedures provide facilities for drawing window borders in a way that produces a three-dimensional appearance. Tk_Alloc3DBorderFromObj allocates colors a

manpages/Tcl_GetHostName.3.html
Tcl_GetHostName(3) - get the name of the local host.........
Tcl_GetHostName is a utility procedure used by some of the Tcl commands. It returns a pointer to a string containing the name for the current machine, or an emp

manpages/XkbGetDeviceInfoChanges.3.html
XkbGetDeviceInfoChanges(3) - Query the changes that have occ
The changes->changed field indicates which attributes of the device specified in changes->device have changed. The parameters describing the changes are contain

manpages/Mail::SpamAssassin::Bayes.3pm.html
Mail::SpamAssassin::Bayes(3pm) - support for learning classi
This is the general class used to train a learning classifier with new samples of spam and ham mail, and classify based on prior training. Prior to version 3.3.

manpages/XTextItem16.3.html
XTextItem16(3) - draw polytext text and text drawing structu
The XDrawText16 function is similar to XDrawText except that it uses 2-byte or 16-bit characters. Both functions allow complex spacing and font shifts between c





We can't live, work or learn in freedom unless the software we use is free.