[vala-extra-vapis] Add xcb-damage
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala-extra-vapis] Add xcb-damage
- Date: Thu, 12 Jun 2014 23:11:38 +0000 (UTC)
commit 662c04bcd49577480f3d65ce5ab8abf1cfcd884a
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Jun 13 11:04:18 2014 +1200
Add xcb-damage
xcb-damage.deps | 1 +
xcb-damage.vapi | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 75 insertions(+), 0 deletions(-)
---
diff --git a/xcb-damage.deps b/xcb-damage.deps
new file mode 100644
index 0000000..6934478
--- /dev/null
+++ b/xcb-damage.deps
@@ -0,0 +1 @@
+xcb-damage
diff --git a/xcb-damage.vapi b/xcb-damage.vapi
new file mode 100644
index 0000000..2249edd
--- /dev/null
+++ b/xcb-damage.vapi
@@ -0,0 +1,74 @@
+/*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+using Xcb;
+
+namespace Xcb {
+
+ [CCode (cprefix = "xcb_damage_", cheader_filename = "xcb/damage.h")]
+ namespace Damage {
+ public static Connection get_connection (Xcb.Connection c) {
+ return (Connection) c;
+ }
+
+ [Compact]
+ [CCode (cname = "xcb_connection_t", cprefix = "xcb_damage_", unref_function = "")]
+ public class Connection : Xcb.Connection {
+ public QueryVersionCookie query_version (uint32 client_major_version, uint32
client_minor_version);
+ public QueryVersionCookie query_version_unchecked (uint32 client_major_version,
uint32 client_minor_version);
+ public QueryVersionReply query_version_reply (QueryVersionCookie cookie, out
Xcb.GenericError? e = null);
+
+ public VoidCookie create_checked (Damage damage, Xcb.Drawable drawable, ReportLevel
level);
+ public VoidCookie create (Damage damage, Xcb.Drawable drawable, ReportLevel level);
+
+ public VoidCookie destroy_checked (Damage damage);
+ public VoidCookie destroy (Damage damage);
+
+ public VoidCookie subtract_checked (Damage damage, XFixes.Region repair,
XFixes.Region parts);
+ public VoidCookie subtract (Damage damage, XFixes.Region repair, XFixes.Region parts);
+
+ public VoidCookie add_checked (Damage damage, Xcb.Drawable drawable, XFixes.Region
region);
+ public VoidCookie add (Damage damage, Xcb.Drawable drawable, XFixes.Region region);
+ }
+
+ [SimpleType]
+ [CCode (cname = "xcb_damage_damage_t", has_type_id = false)]
+ public struct Damage : uint32 {
+ }
+
+ [CCode (cname = "xcb_damage_report_level_t", has_type_id = false)]
+ public enum ReportLevel
+ {
+ RAW_RECTANGLES,
+ DELTA_RECTANGLES,
+ BOUNDING_BOX,
+ NON_EMPTY
+ }
+
+ [SimpleType]
+ [IntegerType (rank = 9)]
+ [CCode (cname = "xcb_damage_query_version_cookie_t", has_type_id = false)]
+ public struct QueryVersionCookie {
+ }
+
+ [Compact]
+ [CCode (cname = "xcb_damage_query_version_reply_t", ref_function = "", unref_function =
"free")]
+ public class QueryVersionReply : Xcb.GenericReply {
+ public uint32 major_version;
+ public uint32 minor_version;
+ }
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]