1 .\" Copyright (c) 1995 Hewlett-Packard Company
3 .\" Permission is hereby granted, free of charge, to any person obtaining a
4 .\" copy of this software and associated documentation files (the "Software"),
5 .\" to deal in the Software without restriction, including without limitation
6 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 .\" and/or sell copies of the Software, and to permit persons to whom the
8 .\" Software furnished to do so, subject to the following conditions:
10 .\" The above copyright notice and this permission notice shall be included in
11 .\" all copies or substantial portions of the Software.
13 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16 .\" HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17 .\" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
18 .\" OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 .\" Except as contained in this notice, the name of the Hewlett-Packard Company shall not
22 .\" be used in advertising or otherwise to promote the sale, use or other
23 .\" dealing in this Software without prior written authorization from the
24 .\" Hewlett-Packard Company.
26 .TH XdbeGetVisualInfo __libmansuffix__ __xorgversion__ "X FUNCTIONS"
28 XdbeGetVisualInfo - Get dbe Visual Informations
30 \&#include <X11/extensions/Xdbe.h>
32 XdbeScreenVisualInfo *XdbeGetVisualInfo(
34 Drawable *screen_specifiers,
37 This function returns information about which visuals support double
38 buffering. The argument
40 specifies how many elements there are
43 list. Each drawable in
46 screen for which the supported visuals are being requested. If
48 is zero, information for all screens is requested. In this case, upon return
51 will be set to the number of screens that were
52 found. If an error occurs, this function returns NULL, else it returns a
54 .I XdbeScreenVisualInfo
58 element in the returned list corresponds to the nth drawable in the
62 was passed in with the value zero,
63 in which case the nth element in the returned list corresponds to the nth screen
64 of the server, starting with screen zero. The
65 .I XdbeScreenVisualInfo
66 structure has the following fields:
69 XdbeVisualInfo *visinfo
72 specifies the number of items in
75 specifies a list of visuals, depths, and performance hints for this screen.
79 structure has the following fields:
86 specifies one visual ID that supports double-buffering.
88 specifies the depth of the visual.
90 is a performance hint.
92 The only operation defined on a
96 of another visual on the same screen. The visual having the higher
98 is likely to have better double-buffering graphics performance than the visual
101 Nothing can be deduced from the following: the magnitude of the difference
106 value in isolation, or comparing
108 from different servers.
112 One or more values passed in
114 is not a valid drawable.
117 .I XdbeAllocateBackBufferName(),
119 .I XdbeDeallocateBackBufferName(),
121 .I XdbeFreeVisualInfo(),
122 .I XdbeGetBackBufferAttributes(),
123 .I XdbeQueryExtension(),
124 .I XdbeSwapBuffers().