Copyright © 2013 Keith Packard
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting documentation, and
that the name of the copyright holders not be used in advertising or
publicity pertaining to distribution of the software without specific,
written prior permission. The copyright holders make no representations
about the suitability of this software for any purpose. It is provided "as
is" without express or implied warranty.
THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
OF THIS SOFTWARE.
.ns
\\$1 ..
XPRESENT __libmansuffix__ __xorgversion__
NAME
Xpresent - X Present Extension
SYNTAX
#include <X11/extensions/Xpresent.h>
Bool XPresentQueryExtension \^(\^Display *dpy, int *major_opcode_return, int *event_base_return, int *error_base_return\^); Status XPresentQueryVersion \^(\^Display *dpy, int *major_version_return, int *minor_version_return\^); int XPresentVersion (void);
ARGUMENTS
dpy 1i
Specifies the connection to the X server.
DESCRIPTION
Xpresent is a library designed to interface the X Present Extension.
The Present extension provides a way for applications to update their
window contents from a pixmap in a well defined fashion, synchronizing
with the display refresh and potentially using a more efficient
mechanism than copying the contents of the source pixmap.
The
XPresentQueryExtension function checks if the X server specified by dpy supports the X Present
extension. If the server does not support the extension, it returns False.
If the server does support the extension, it returns True, and sets the
values of major_opcode_return, event_base_return, and
error_base_return if the pointers are not NULL.
Clients must call the XPresentQueryExtension function to verify the server supports the extension before calling any other function for this extension. The XPresentQueryVersion function sets the values pointed to by major_version_return and minor_version_return to the version of the extension supported by the X server specified by dpy. The XPresentQueryVersion function returns the version of the libXpresent library in use, as defined by the PRESENT_VERSION macro in <X11/extensions/Xpresent.h>.
SEE ALSO
XPresentNotifyMSC (__libmansuffix__), XPresentPixmap (__libmansuffix__), XPresentQueryCapabilities (__libmansuffix__), XPresentSelectInput (__libmansuffix__) RESTRICTIONS
Xpresent will remain upward compatible after the 1.0 release.
AUTHORS
Keith Packard, Intel