Scroll to navigation

XGetVisualInfo(3X11) XLIB FUNCTIONS XGetVisualInfo(3X11)

̾??

XGetVisualInfo, XMatchVisualInfo, XVisualIDFromVisual, XVisualInfo - ?ӥ??奢???????ȥӥ??奢?빽¤?Τ?????????

????

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;

VisualID XVisualIDFromVisual(visual)
Visual *visual;

??????

?????꡼???Υ??饹?????ꤹ?롣
?????꡼???ο????????ꤹ?롣
X ?????Фؤ???³?????ꤹ?롣
?ޥå??????ӥ??奢?빽¤?Το????֤????롣
?????꡼???????ꤹ?롣
?ӥ??奢?뷿?????ꤹ?롣
?ӥ??奢???Υޥ????ͤ????ꤹ?롣
?ޥå??????ӥ??奢?????????֤????롣
?ӥ??奢?빽¤?ΤȤΥޥå??󥰤ǻȤ??ӥ??奢??°???????ꤹ?롣

????

?ؿ? XGetVisualInfo ?? vinfo_template ?ǻ??ꤷ??°????Ʊ??°???????ĥӥ??奢?빽¤?Τ? ?ꥹ?Ȥ??֤??? ???ꤷ?? vinfo_template ???Ȥä??ƥ??ץ졼?Ȥ˥ޥå??????ӥ??奢?빽¤?? ???ʤ??????ϡ? XGetVisualInfo ?? NULL ???֤??? ???δؿ????֤??줿?ǡ??????????????ˤϡ? XFree ?????Ѥ??뤳?ȡ?

XMatchVisualInfo ?ؿ??ϡ????륹???꡼???ˤĤ??ƻ??ꤷ???????ȥ??饹?˥ޥå??????ӥ??奢?? ?Υӥ??奢?????????֤??? ???ꤷ???????ȥ??饹?˥ޥå??????ӥ??奢????ʣ????¸?ߤ??뤳?Ȥ??????? ?ǡ????Ф??????Τʥӥ??奢????̤?????Ǥ??롣 ?ޥå??????ӥ??奢?뤬???ä????硢 XMatchVisualInfo ?? 0 ?Ǥʤ??ͤ??֤????ӥ??奢???ξ????? vinfo_return ?????ꤹ?롣 ?????Ǥʤ????硢?Ĥޤ??ӥ??奢?뤬???Ĥ????ʤ??ä??????ϡ? XMatchVisualInfo ?? 0 ???֤???

?ؿ? XVisualIDFromVisual ?ϡ????ꤷ???ӥ??奢?뷿???Ф????ӥ??奢??ID???֤???

??¤??

XVisualInfo ??¤?Τ????Ƥ򼨤???

#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
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;


??Ϣ????

XFree(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11