1XdbeGetVisualInfo(3) X FUNCTIONS XdbeGetVisualInfo(3)
2
3
4
6 XdbeGetVisualInfo - Get dbe Visual Informations
7
9 #include <X11/extensions/Xdbe.h>
10
11 XdbeScreenVisualInfo *XdbeGetVisualInfo(
12 Display *dpy,
13 Drawable *screen_specifiers,
14 int *num_screens)
15
17 This function returns information about which visuals support double
18 buffering. The argument num_screens specifies how many elements there
19 are in the screen_specifiers list. Each drawable in screen_specifiers
20 designates a screen for which the supported visuals are being
21 requested. If num_screens is zero, information for all screens is
22 requested. In this case, upon return from this function, num_screens
23 will be set to the number of screens that were found. If an error
24 occurs, this function returns NULL, else it returns a pointer to a list
25 of XdbeScreenVisualInfo structures of length num_screens. The nth ele‐
26 ment in the returned list corresponds to the nth drawable in the
27 screen_specifiers list, unless num_screens was passed in with the value
28 zero, in which case the nth element in the returned list corresponds to
29 the nth screen of the server, starting with screen zero. The Xdbe‐
30 ScreenVisualInfo structure has the following fields:
31
32 int count
33 XdbeVisualInfo *visinfo
34
35 count specifies the number of items in visinfo. visinfo specifies a
36 list of visuals, depths, and performance hints for this screen.
37
38 The XdbeVisualInfo structure has the following fields:
39
40 VisualID visual
41 int depth
42 int perflevel
43
44 visual specifies one visual ID that supports double-buffering. depth
45 specifies the depth of the visual. perflevel is a performance hint.
46
47 The only operation defined on a perflevel is comparison to a perflevel
48 of another visual on the same screen. The visual having the higher
49 perflevel is likely to have better double-buffering graphics perfor‐
50 mance than the visual having the lower perflevel. Nothing can be
51 deduced from the following: the magnitude of the difference of two per‐
52 flevels, a perflevel value in isolation, or comparing perflevels from
53 different servers.
54
55
57 BadDrawable
58 One or more values passed in screen_specifiers is not a valid
59 drawable.
60
62 DBE, XdbeAllocateBackBufferName(), XdbeBeginIdiom(), XdbeDeallocate‐
63 BackBufferName(), XdbeEndIdiom(), XdbeFreeVisualInfo(), XdbeGetBack‐
64 BufferAttributes(), XdbeQueryExtension(), XdbeSwapBuffers().
65
66
67
68
69X Version 11 libXext 1.3.3 XdbeGetVisualInfo(3)