XGetVisualInfo man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

XGetVisualInfo()					      XGetVisualInfo()

Name
  XGetVisualInfo  – find the visual information structures that match the
  specified template.

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

Arguments
  display   Specifies	a  connection  to  an  X  server;  returned  from
	    XOpenDisplay().

  vinfo_mask
	    Specifies the visual mask value.  Indicates which elements in
	    template are to be matched.

  vinfo_template
	    Specifies the visual attributes that are to be used in match‐
	    ing the visual structures.

  nitems_return
	    Returns the number of matching visual structures.

Returns
  The visual information structure.

Description
  XGetVisualInfo() returns a list  of  visual  structures  that	 describe
  visuals supported by the server and that match the attributes specified
  by the vinfo_template argument.  If no visual structures match the tem‐
  plate	 fields specified in Vinfo_mask, XGetVisualInfo() returns a NULL.
  To free the data returned by this function, use XFree().

  For more information, see Volume One, Chapter 7, Color.

Structures
     typedef struct {
	 Visual *visual;
	 VisualID visualid;
	 int screen;
	 unsigned int depth;
	 int class;
	 unsigned long red_mask;
	 unsigned long green_mask;
	 unsigned long blue_mask;
	 int colormap_size;
	 int bits_per_rgb;
     } XVisualInfo;

     /* The symbols for the vinfo_mask argument are: */

     #define VisualNoMask	     0x0
     #define VisualIDMask	     0x1
     #define VisualScreenMask	     0x2
     #define VisualDepthMask	     0x4
     #define VisualClassMask	     0x8
     #define VisualRedMaskMask	     0x10
     #define VisualGreenMaskMask     0x20
     #define VisualBlueMaskMask	     0x40
     #define VisualColormapSizeMask  0x80
     #define VisualBitsPerRGBMask    0x100
     #define VisualAllMask	     0x1FF

See Also
  XDefaultVisual(),  XVisualIDFromVisual(),  XMatchVisualInfo(),   XList‐
  Depths().

Xlib - Visuals						      XGetVisualInfo()
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net