-
Notifications
You must be signed in to change notification settings - Fork 5
/
xcb-dbe.el
162 lines (131 loc) · 5.09 KB
/
xcb-dbe.el
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
;;; xcb-dbe.el --- X11 Dbe extension -*- lexical-binding: t -*-
;; Copyright (C) 2015-2024 Free Software Foundation, Inc.
;; This file is part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; GNU Emacs 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 General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;; This file was generated by 'xelb-gen' from 'dbe.xml',
;; which you can retrieve from <git://anongit.freedesktop.org/xcb/proto>.
;;; Code:
(require 'xcb-types)
(defconst xcb:dbe:-extension-xname "DOUBLE-BUFFER")
(defconst xcb:dbe:-extension-name "Dbe")
(defconst xcb:dbe:-major-version 1)
(defconst xcb:dbe:-minor-version 0)
(require 'xcb-xproto)
(xcb:deftypealias 'xcb:dbe:BackBuffer 'xcb:DRAWABLE)
(defconst xcb:dbe:SwapAction:Undefined 0)
(defconst xcb:dbe:SwapAction:Background 1)
(defconst xcb:dbe:SwapAction:Untouched 2)
(defconst xcb:dbe:SwapAction:Copied 3)
(defclass xcb:dbe:SwapInfo
(xcb:-struct)
((window :initarg :window :type xcb:WINDOW)
(swap-action :initarg :swap-action :type xcb:CARD8)
(pad~0 :initform 3 :type xcb:-pad)))
(defclass xcb:dbe:BufferAttributes
(xcb:-struct)
((window :initarg :window :type xcb:WINDOW)))
(defclass xcb:dbe:VisualInfo
(xcb:-struct)
((visual-id :initarg :visual-id :type xcb:VISUALID)
(depth :initarg :depth :type xcb:CARD8)
(perf-level :initarg :perf-level :type xcb:CARD8)
(pad~0 :initform 2 :type xcb:-pad)))
(defclass xcb:dbe:VisualInfos
(xcb:-struct)
((n-infos :initarg :n-infos :type xcb:CARD32)
(infos~ :initform
'(name infos type xcb:dbe:VisualInfo size
(xcb:-fieldref 'n-infos))
:type xcb:-list)
(infos :initarg :infos :type xcb:-ignore)))
(defclass xcb:dbe:BadBuffer
(xcb:-error)
((~code :initform 0)
(bad-buffer :initarg :bad-buffer :type xcb:dbe:BackBuffer)))
(defclass xcb:dbe:QueryVersion
(xcb:-request)
((~opcode :initform 0 :type xcb:-u1)
(major-version :initarg :major-version :type xcb:CARD8)
(minor-version :initarg :minor-version :type xcb:CARD8)
(pad~0 :initform 2 :type xcb:-pad)))
(defclass xcb:dbe:QueryVersion~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(major-version :initarg :major-version :type xcb:CARD8)
(minor-version :initarg :minor-version :type xcb:CARD8)
(pad~1 :initform 22 :type xcb:-pad)))
(defclass xcb:dbe:AllocateBackBuffer
(xcb:-request)
((~opcode :initform 1 :type xcb:-u1)
(window :initarg :window :type xcb:WINDOW)
(buffer :initarg :buffer :type xcb:dbe:BackBuffer)
(swap-action :initarg :swap-action :type xcb:CARD8)
(pad~0 :initform 3 :type xcb:-pad)))
(defclass xcb:dbe:DeallocateBackBuffer
(xcb:-request)
((~opcode :initform 2 :type xcb:-u1)
(buffer :initarg :buffer :type xcb:dbe:BackBuffer)))
(defclass xcb:dbe:SwapBuffers
(xcb:-request)
((~opcode :initform 3 :type xcb:-u1)
(n-actions :initarg :n-actions :type xcb:CARD32)
(actions~ :initform
'(name actions type xcb:dbe:SwapInfo size
(xcb:-fieldref 'n-actions))
:type xcb:-list)
(actions :initarg :actions :type xcb:-ignore)))
(defclass xcb:dbe:BeginIdiom
(xcb:-request)
((~opcode :initform 4 :type xcb:-u1)))
(defclass xcb:dbe:EndIdiom
(xcb:-request)
((~opcode :initform 5 :type xcb:-u1)))
(defclass xcb:dbe:GetVisualInfo
(xcb:-request)
((~opcode :initform 6 :type xcb:-u1)
(n-drawables :initarg :n-drawables :type xcb:CARD32)
(drawables~ :initform
'(name drawables type xcb:DRAWABLE size
(xcb:-fieldref 'n-drawables))
:type xcb:-list)
(drawables :initarg :drawables :type xcb:-ignore)))
(defclass xcb:dbe:GetVisualInfo~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(n-supported-visuals :initarg :n-supported-visuals :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(supported-visuals~ :initform
'(name supported-visuals type xcb:dbe:VisualInfos size
(xcb:-fieldref 'n-supported-visuals))
:type xcb:-list)
(supported-visuals :initarg :supported-visuals :type xcb:-ignore)))
(defclass xcb:dbe:GetBackBufferAttributes
(xcb:-request)
((~opcode :initform 7 :type xcb:-u1)
(buffer :initarg :buffer :type xcb:dbe:BackBuffer)))
(defclass xcb:dbe:GetBackBufferAttributes~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(attributes :initarg :attributes :type xcb:dbe:BufferAttributes)
(pad~1 :initform 20 :type xcb:-pad)))
(defconst xcb:dbe:error-number-class-alist
'((0 . xcb:dbe:BadBuffer))
"(error-number . error-class) alist.")
(provide 'xcb-dbe)
;;; xcb-dbe.el ends here