.\" $Xorg: XdbeSwap.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:22:03 JST 2001 for XFree86 4.1.0 .\" by FUJIWARA Teruyoshi .\" .\" $XFree86: xc/doc/man/Xext/dbe/XdbeSwap.man,v 3.5 2001/02/07 22:35:22 tsi Exp $ .\" .TH XdbeSwapBuffers 3X11 "Release 6.5" "X Version 11" "X FUNCTIONS" .SH 名前 .\"0 XdbeSwapBuffers - DBE の前面バッファと背面バッファを入れ換える XdbeSwapBuffers - swaps front and back DBE buffers. .SH 書式 \&#include Status XdbeSwapBuffers( Display *dpy, XdbeSwapInfo *swap_info, int num_windows) .SH 説明 .\"0 This function swaps the front and back buffers for a list of windows. The .\"0 argument .\"0 .I num_windows .\"0 specifies how many windows are to have their buffers .\"0 swapped; it is the number of elements in the .\"0 .I swap_info .\"0 array. The argument .\"0 .I swap_info .\"0 specifies the information needed per window to do the swap. この関数は、ウィンドウのリストに対して前面バッファと背面バッファを スワップする。 引き数 .I num_windows はバッファをスワップするウィンドウの数を指定する。これは、配列 .I swap_info 内の要素数である。引き数 .I swap_info は、スワップを行うためにウィンドウごとに必要な情報を指定する。 .\"0 The .\"0 .I XdbeSwapInfo .\"0 structure has the following fields: .I XdbeSwapInfo 構造体は次のフィールドを持つ。 Window swap_window XdbeSwapAction swap_action .\"0 .I swap_window .\"0 specifies the window for which to swap buffers. .I swap_window は、バッファをスワップするウィンドウを指定する。 .\"0 .I swap_action .\"0 specifies the swap action to use for this .\"0 .I swap_window. .I swap_action は、この .I swap_window に対して用いるスワップ動作を指定する。 .\"0 .I swap_action .\"0 determines what will happen to the new back buffer of the .\"0 .I swap_window .I swap_action は、 .I swap_window の新しい背面バッファがどうなるかを決定する。 .\"0 it is paired with in the list in addition to making the old back buffer .\"0 become visible. The defined actions are as follows: 古い背面バッファを可視状態にすることに加え、リスト中で対になる。 定義された動作を以下に示す: .IP XdbeUndefined .\"0 The contents of the new back buffer become undefined. This may be the most .\"0 efficient action since it allows the implementation to discard the contents of .\"0 the buffer if it needs to. 新しい背面バッファの内容は未定義である。これは最も効率の良い動作だと考 えられる。なぜならば、ライブラリの実装は必要ならばバッファの内容を破棄 できるからである。 .IP XdbeBackground .\"0 The unobscured region of the new back buffer will be tiled with the .\"0 window background. The background action allows devices to use a fast clear .\"0 capability during a swap. 新しい背面バッファの隠されていない領域が、ウィンドウの背景色で塗りつぶ される。この動作により、スワップの間に高速な領域クリア機能を使うことが できる。 .IP XdbeUntouched .\"0 The unobscured region of the new back buffer will be unmodified by the swap. 新しい背面バッファの隠されていない領域は、スワップによって変更されない。 .IP XdbeCopied .\"0 The unobscured region of the new back buffer will be the contents of the old .\"0 back buffer 新しい背面バッファの隠されていない領域は、古い背景バッファの内容となる。 .SH エラー .IP BadMatch .\"0 A non-double-buffered window was specififed or a window was specified twice. ダブルバッファでないウィンドウが指定された。あるいは、同じウィンドウが 2度指定された。 .IP BadWindow .\"0 An invalid window was specified. 不正なウィンドウが指定された。 .IP BadValue .\"0 An invalid swap action was specified. 不正なスワップ動作が指定された。 .SH 関連項目 DBE, .I XdbeAllocateBackBufferName(), .I XdbeBeginIdiom(), .I XdbeDeallocateBackBufferName(), .I XdbeEndIdiom(), .I XdbeFreeVisualInfo(), .I XdbeGetBackBufferAttributes(), .I XdbeGetVisualInfo(), .\"0 .I XdbeQueryExtension(). .I XdbeQueryExtension()