summaryrefslogtreecommitdiff
path: root/lib/libXdamage/include/X11
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-25 17:02:54 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-25 17:02:54 +0000
commitf5f6cabf0983a22f8bb256d604ffc21c1a6cf8ca (patch)
tree4ee1fb346ef12f424b40b9c2669b60ed1b01ddb7 /lib/libXdamage/include/X11
parenta789231d9f4882130ff12ea5b5702c08f911ed4d (diff)
import from X.Org 7.2RC1
Diffstat (limited to 'lib/libXdamage/include/X11')
-rw-r--r--lib/libXdamage/include/X11/extensions/Xdamage.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/lib/libXdamage/include/X11/extensions/Xdamage.h b/lib/libXdamage/include/X11/extensions/Xdamage.h
new file mode 100644
index 000000000..04fd8d152
--- /dev/null
+++ b/lib/libXdamage/include/X11/extensions/Xdamage.h
@@ -0,0 +1,68 @@
+/*
+ * $Id: Xdamage.h,v 1.1 2006/11/25 17:01:38 matthieu Exp $
+ *
+ * Copyright © 2003 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 Keith Packard not be used in
+ * advertising or publicity pertaining to distribution of the software without
+ * specific, written prior permission. Keith Packard makes no
+ * representations about the suitability of this software for any purpose. It
+ * is provided "as is" without express or implied warranty.
+ *
+ * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ * EVENT SHALL KEITH PACKARD 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.
+ */
+
+#ifndef _XDAMAGE_H_
+#define _XDAMAGE_H_
+
+#include <X11/extensions/damagewire.h>
+#include <X11/extensions/Xfixes.h>
+#include <X11/Xfuncproto.h>
+
+typedef XID Damage;
+
+typedef struct {
+ int type; /* event base */
+ unsigned long serial;
+ Bool send_event;
+ Display *display;
+ Drawable drawable;
+ Damage damage;
+ int level;
+ Bool more; /* more events will be delivered immediately */
+ Time timestamp;
+ XRectangle area;
+ XRectangle geometry;
+} XDamageNotifyEvent;
+
+_XFUNCPROTOBEGIN
+
+Bool XDamageQueryExtension (Display *dpy, int *event_basep, int *error_basep);
+
+Status XDamageQueryVersion (Display *dpy,
+ int *major_versionp,
+ int *minor_versionp);
+
+Damage
+XDamageCreate (Display *dpy, Drawable drawable, int level);
+
+void
+XDamageDestroy (Display *dpy, Damage damage);
+
+void
+XDamageSubtract (Display *dpy, Damage damage,
+ XserverRegion repair, XserverRegion parts);
+
+_XFUNCPROTOEND
+
+#endif /* _XDAMAGE_H_ */