1XdbeSwapBuffers(3)                X FUNCTIONS               XdbeSwapBuffers(3)
2
3
4

NAME

6       XdbeSwapBuffers - swaps front and back DBE buffers.
7

SYNOPSIS

9       #include <X11/extensions/Xdbe.h>
10
11       Status XdbeSwapBuffers(
12           Display      *dpy,
13           XdbeSwapInfo *swap_info,
14           int          num_windows)
15

DESCRIPTION

17       This  function  swaps the front and back buffers for a list of windows.
18       The argument num_windows specifies how many windows are to  have  their
19       buffers  swapped;  it is the number of elements in the swap_info array.
20       The argument swap_info specifies the information needed per  window  to
21       do the swap.
22
23       The XdbeSwapInfo structure has the following fields:
24
25            Window            swap_window
26            XdbeSwapAction    swap_action
27
28       swap_window   specifies   the   window   for  which  to  swap  buffers.
29       swap_action specifies the swap action to use for this swap_window.
30
31       swap_action determines what will happen to the new back buffer  of  the
32       swap_window it is paired with in the list in addition to making the old
33       back buffer become visible.  The defined actions are as follows:
34
35
36       XdbeUndefined
37              The contents of the new back buffer become undefined.  This  may
38              be  the most efficient action since it allows the implementation
39              to discard the contents of the buffer if it needs to.
40
41       XdbeBackground
42              The unobscured region of the new back buffer will be tiled  with
43              the  window background.  The background action allows devices to
44              use a fast clear capability during a swap.
45
46       XdbeUntouched
47              The unobscured region of the new back buffer will be  unmodified
48              by the swap.
49
50       XdbeCopied
51              The  unobscured  region  of the new back buffer will be the con‐
52              tents of the old back buffer
53

ERRORS

55       BadMatch
56              A non-double-buffered window was specified or a window was spec‐
57              ified twice.
58
59       BadWindow
60              An invalid window was specified.
61
62       BadValue
63              An invalid swap action was specified.
64

SEE ALSO

66       DBE,  XdbeAllocateBackBufferName(),  XdbeBeginIdiom(),  XdbeDeallocate‐
67       BackBufferName(),  XdbeEndIdiom(),  XdbeFreeVisualInfo(),  XdbeGetBack‐
68       BufferAttributes(), XdbeGetVisualInfo(), XdbeQueryExtension().
69
70
71
72
73X Version 11                     libXext 1.3.4              XdbeSwapBuffers(3)
Impressum