This repository has been archived by the owner on Mar 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
xcb-damage.vapi
74 lines (62 loc) · 2.71 KB
/
xcb-damage.vapi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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;
}
}
}