.\" $Xorg: XdbeGetV.man,v 1.3 2000/08/17 19:41:55 cpqbld Exp $ .\" .\" Copyright (c) 1995 Hewlett-Packard Company .\" .\" Permission is hereby granted, free of charge, to any person obtaining a .\" copy of this software and associated documentation files (the "Software"), .\" to deal in the Software without restriction, including without limitation .\" the rights to use, copy, modify, merge, publish, distribute, sublicense, .\" and/or sell copies of the Software, and to permit persons to whom the .\" Software furnished to do so, subject to the following conditions: .\" .\" The above copyright notice and this permission notice shall be included in .\" all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL .\" HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, .\" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF .\" OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE .\" SOFTWARE. .\" .\" Except as contained in this notice, the name of the Hewlett-Packard Company shall not .\" be used in advertising or otherwise to promote the sale, use or other .\" dealing in this Software without prior written authorization from the .\" Hewlett-Packard Company. .\" .\" Copyright (c) 1998, 2001 The X Japanese Documentation Project. .\" .\" Permission is hereby granted, free of charge, to any person obtaining a .\" copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, dis- .\" tribute, sublicense, and/or sell copies of the Software, and to permit .\" persons to whom the Software is furnished to do so, subject to the fol- .\" lowing conditions: .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- .\" ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT .\" SHALL THE X JAPANESE DOCUMENTATION PROJECT BE LIABLE FOR ANY CLAIM, .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of The X Japanese .\" Documentation Project shall not be used in advertising or otherwise to .\" promote the sale, use or other dealings in this Software without prior .\" written authorization from The X Japanese Documentation Project. .\" .\" X Window System is a trademark of The Open Group. .\" .\" Translated Tue Oct 27 00:00:00 JST 1998 .\" by FUJIWARA Teruyoshi .\" Updated Tue Oct 9 01:19:58 JST 2001 for XFree86 4.1.0 .\" by FUJIWARA Teruyoshi .\" .\" $XFree86: xc/doc/man/Xext/dbe/XdbeGetV.man,v 3.5 2001/02/07 22:35:22 tsi Exp $ .\" .TH XdbeGetVisualInfo 3X11 "Release 6.5" "X Version 11" "X FUNCTIONS" .SH 名前 XdbeGetVisualInfo .SH 書式 \&#include XdbeScreenVisualInfo *XdbeGetVisualInfo( Display *dpy, Drawable *screen_specifiers, int *num_screens) .SH 説明 .\"0 This function returns information about which visuals support double .\"0 buffering. The argument .\"0 .I num_screens .\"0 specifies how many elements there are .\"0 in the .\"0 .I screen_specifiers .\"0 list. Each drawable in .\"0 .I screen_specifiers .\"0 designates a .\"0 screen for which the supported visuals are being requested. If .\"0 .I num_screens .\"0 is zero, information for all screens is requested. In this case, upon return .\"0 from this function, .\"0 .I num_screens .\"0 will be set to the number of screens that were .\"0 found. If an error occurs, this function returns NULL, else it returns a .\"0 pointer to a list of .\"0 .I XdbeScreenVisualInfo .\"0 structures of length .\"0 .I num_screens. この関数は、ダブルバッファリングをサポートしているビジュアルに関する情 報を返す。引き数 .I num_screens では、リスト .I screen_specifiers に含まれる要素数を指定する。 .I screen_specifiers のそれぞれのドロウアブルは、サポートされているビジュアルが要求されるス クリーンを指示する。 .I num_screens が 0 ならば、全てのスクリーンについての情報が要求される。この場合、こ の関数からの返される値 .I num_screens には、見つかったスクリーンの数がセットされる。エラーが起こった場合は、 この関数は NULL を返し、そうでない場合は長さが .I num_screens である .I XdbeScreenVisualInfo 構造体のリストを返す。 .\"0 The nth .\"0 element in the returned list corresponds to the nth drawable in the .\"0 .I screen_specifiers .\"0 list, unless .\"0 .I num_screens .\"0 was passed in with the value zero, .\"0 in which case the nth element in the returned list corresponds to the nth screen .\"0 of the server, starting with screen zero. The .\"0 .I XdbeScreenVisualInfo .\"0 structure has the following fields: .I num_screens に値として 0 が渡されていない場合、返されるリスト中の n 番目の要素は、リスト .I screen_specifiers 中の n 番目のドロウアブルに対応する。 0 が渡されている場合は、返されるリスト中の n 番目の要素は、サーバの (0から数えて)n 番目のスクリーンに対応する。 .I XdbeScreenVisualInfo 構造体の内容を次に示す。 int count XdbeVisualInfo *visinfo .I count .\"0 specifies the number of items in .\"0 .I visinfo. .I visinfo 中のアイテム数を指定。 .I visinfo .\"0 specifies a list of visuals, depths, and performance hints for this screen. このスクリーンに対するビジュアル、深さ、パフォーマンスのヒントのリスト を指定。 .\"0 The .\"0 .I XdbeVisualInfo .\"0 structure has the following fields: .I XdbeVisualInfo 構造体の内容を次に示す。 VisualID visual int depth int perflevel .I visual .\"0 specifies one visual ID that supports double-buffering. ダブルバッファリングをサポートするビジュアルIDを1つ指定。 .I depth .\"0 specifies the depth of the visual. ビジュアルの深さを指定。 .I perflevel .\"0 is a performance hint. パフォーマンスのヒントを指定。 .\"0 The only operation defined on a .\"0 .I perflevel .\"0 is comparison to a .\"0 .I perflevel .\"0 of another visual on the same screen. The visual having the higher .\"0 .I perflevel .\"0 is likely to have better double-buffering graphics performance than the visual .\"0 having the lower .\"0 .I perflevel. .I perflevel について定義されている唯一の操作は、同じスクリーンの別のビジュアルの .I perflevel との比較である。より高い .I perflevel を持っているビジュアルは、低い .I perflevel を持つビジュアルよりもダブルバッファリングのグラフィックス性能が高いこ とが多い。 .\"0 Nothing can be deduced from the following: the magnitude of the difference .\"0 of two .\"0 .I perflevels, .\"0 a .\"0 .I perflevel .\"0 value in isolation, or comparing .\"0 .I perflevels .\"0 from different servers. 以下の事項からは何も演繹することはできない: 2つの .I perflevels の差の大きさ、孤立している .I perflevel 値、異なるサーバ上の .I perflevels との比較。 .SH エラー .IP BadDrawable .\"0 One or more values passed in .\"0 .I screen_specifiers .\"0 is not a valid drawable. .I screen_specifiers に渡された1つ以上の値が、有効なドロウアブルではない。 .SH 関連項目 DBE, .I XdbeAllocateBackBufferName(), .I XdbeBeginIdiom(), .I XdbeDeallocateBackBufferName(), .I XdbeEndIdiom(), .I XdbeFreeVisualInfo(), .I XdbeGetBackBufferAttributes(), .I XdbeQueryExtension(), .I XdbeSwapBuffers().