Changeset View
Changeset View
Standalone View
Standalone View
xcbutils.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | |||||
49 | static const int RANDR_MAX_MINOR = 4; | 49 | static const int RANDR_MAX_MINOR = 4; | ||
50 | static const int RENDER_MAX_MAJOR = 0; | 50 | static const int RENDER_MAX_MAJOR = 0; | ||
51 | static const int RENDER_MAX_MINOR = 11; | 51 | static const int RENDER_MAX_MINOR = 11; | ||
52 | static const int XFIXES_MAX_MAJOR = 5; | 52 | static const int XFIXES_MAX_MAJOR = 5; | ||
53 | static const int XFIXES_MAX_MINOR = 0; | 53 | static const int XFIXES_MAX_MINOR = 0; | ||
54 | 54 | | |||
55 | QVector<QByteArray> shapeOpCodes() | 55 | QVector<QByteArray> shapeOpCodes() | ||
56 | { | 56 | { | ||
57 | // see http://www.x.org/releases/X11R7.7/doc/xextproto/shape.html | 57 | // see https://www.x.org/releases/X11R7.7/doc/xextproto/shape.html | ||
58 | // extracted from <xcb/shape.h> | 58 | // extracted from <xcb/shape.h> | ||
59 | return QVector<QByteArray>({QByteArrayLiteral("QueryVersion"), | 59 | return QVector<QByteArray>({QByteArrayLiteral("QueryVersion"), | ||
60 | QByteArrayLiteral("Rectangles"), | 60 | QByteArrayLiteral("Rectangles"), | ||
61 | QByteArrayLiteral("Mask"), | 61 | QByteArrayLiteral("Mask"), | ||
62 | QByteArrayLiteral("Combine"), | 62 | QByteArrayLiteral("Combine"), | ||
63 | QByteArrayLiteral("Offset"), | 63 | QByteArrayLiteral("Offset"), | ||
64 | QByteArrayLiteral("Extents"), | 64 | QByteArrayLiteral("Extents"), | ||
65 | QByteArrayLiteral("Input"), | 65 | QByteArrayLiteral("Input"), | ||
66 | QByteArrayLiteral("InputSelected"), | 66 | QByteArrayLiteral("InputSelected"), | ||
67 | QByteArrayLiteral("GetRectangles")}); | 67 | QByteArrayLiteral("GetRectangles")}); | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | QVector<QByteArray> randrOpCodes() | 70 | QVector<QByteArray> randrOpCodes() | ||
71 | { | 71 | { | ||
72 | // see http://www.x.org/releases/X11R7.7/doc/randrproto/randrproto.txt | 72 | // see https://www.x.org/releases/X11R7.7/doc/randrproto/randrproto.txt | ||
73 | // extracted from <xcb/randr.h> | 73 | // extracted from <xcb/randr.h> | ||
74 | return QVector<QByteArray>({QByteArrayLiteral("QueryVersion"), | 74 | return QVector<QByteArray>({QByteArrayLiteral("QueryVersion"), | ||
75 | QByteArray(""), // doesn't exist | 75 | QByteArray(""), // doesn't exist | ||
76 | QByteArrayLiteral("SetScreenConfig"), | 76 | QByteArrayLiteral("SetScreenConfig"), | ||
77 | QByteArray(""), // doesn't exits | 77 | QByteArray(""), // doesn't exits | ||
78 | QByteArrayLiteral("SelectInput"), | 78 | QByteArrayLiteral("SelectInput"), | ||
79 | QByteArrayLiteral("GetScreenInfo"), | 79 | QByteArrayLiteral("GetScreenInfo"), | ||
80 | QByteArrayLiteral("GetScreenSizeRange"), | 80 | QByteArrayLiteral("GetScreenSizeRange"), | ||
Show All 31 Lines | |||||
112 | QByteArrayLiteral("ConfigureProviderroperty"), | 112 | QByteArrayLiteral("ConfigureProviderroperty"), | ||
113 | QByteArrayLiteral("ChangeProviderProperty"), | 113 | QByteArrayLiteral("ChangeProviderProperty"), | ||
114 | QByteArrayLiteral("DeleteProviderProperty"), | 114 | QByteArrayLiteral("DeleteProviderProperty"), | ||
115 | QByteArrayLiteral("GetProviderProperty")}); | 115 | QByteArrayLiteral("GetProviderProperty")}); | ||
116 | } | 116 | } | ||
117 | 117 | | |||
118 | QVector<QByteArray> randrErrorCodes() | 118 | QVector<QByteArray> randrErrorCodes() | ||
119 | { | 119 | { | ||
120 | // see http://www.x.org/releases/X11R7.7/doc/randrproto/randrproto.txt | 120 | // see https://www.x.org/releases/X11R7.7/doc/randrproto/randrproto.txt | ||
121 | // extracted from <xcb/randr.h> | 121 | // extracted from <xcb/randr.h> | ||
122 | return QVector<QByteArray>({QByteArrayLiteral("BadOutput"), | 122 | return QVector<QByteArray>({QByteArrayLiteral("BadOutput"), | ||
123 | QByteArrayLiteral("BadCrtc"), | 123 | QByteArrayLiteral("BadCrtc"), | ||
124 | QByteArrayLiteral("BadMode"), | 124 | QByteArrayLiteral("BadMode"), | ||
125 | QByteArrayLiteral("BadProvider")}); | 125 | QByteArrayLiteral("BadProvider")}); | ||
126 | } | 126 | } | ||
127 | 127 | | |||
128 | QVector<QByteArray> damageOpCodes() | 128 | QVector<QByteArray> damageOpCodes() | ||
129 | { | 129 | { | ||
130 | // see http://www.x.org/releases/X11R7.7/doc/damageproto/damageproto.txt | 130 | // see https://www.x.org/releases/X11R7.7/doc/damageproto/damageproto.txt | ||
131 | // extracted from <xcb/damage.h> | 131 | // extracted from <xcb/damage.h> | ||
132 | return QVector<QByteArray>({QByteArrayLiteral("QueryVersion"), | 132 | return QVector<QByteArray>({QByteArrayLiteral("QueryVersion"), | ||
133 | QByteArrayLiteral("Create"), | 133 | QByteArrayLiteral("Create"), | ||
134 | QByteArrayLiteral("Destroy"), | 134 | QByteArrayLiteral("Destroy"), | ||
135 | QByteArrayLiteral("Subtract"), | 135 | QByteArrayLiteral("Subtract"), | ||
136 | QByteArrayLiteral("Add")}); | 136 | QByteArrayLiteral("Add")}); | ||
137 | } | 137 | } | ||
138 | 138 | | |||
139 | QVector<QByteArray> damageErrorCodes() | 139 | QVector<QByteArray> damageErrorCodes() | ||
140 | { | 140 | { | ||
141 | // see http://www.x.org/releases/X11R7.7/doc/damageproto/damageproto.txt | 141 | // see https://www.x.org/releases/X11R7.7/doc/damageproto/damageproto.txt | ||
142 | // extracted from <xcb/damage.h> | 142 | // extracted from <xcb/damage.h> | ||
143 | return QVector<QByteArray>({QByteArrayLiteral("BadDamage")}); | 143 | return QVector<QByteArray>({QByteArrayLiteral("BadDamage")}); | ||
144 | } | 144 | } | ||
145 | 145 | | |||
146 | QVector<QByteArray> compositeOpCodes() | 146 | QVector<QByteArray> compositeOpCodes() | ||
147 | { | 147 | { | ||
148 | // see http://www.x.org/releases/X11R7.7/doc/compositeproto/compositeproto.txt | 148 | // see https://www.x.org/releases/X11R7.7/doc/compositeproto/compositeproto.txt | ||
149 | // extracted from <xcb/composite.h> | 149 | // extracted from <xcb/composite.h> | ||
150 | return QVector<QByteArray>({QByteArrayLiteral("QueryVersion"), | 150 | return QVector<QByteArray>({QByteArrayLiteral("QueryVersion"), | ||
151 | QByteArrayLiteral("RedirectWindow"), | 151 | QByteArrayLiteral("RedirectWindow"), | ||
152 | QByteArrayLiteral("RedirectSubwindows"), | 152 | QByteArrayLiteral("RedirectSubwindows"), | ||
153 | QByteArrayLiteral("UnredirectWindow"), | 153 | QByteArrayLiteral("UnredirectWindow"), | ||
154 | QByteArrayLiteral("UnredirectSubwindows"), | 154 | QByteArrayLiteral("UnredirectSubwindows"), | ||
155 | QByteArrayLiteral("CreateRegionFromBorderClip"), | 155 | QByteArrayLiteral("CreateRegionFromBorderClip"), | ||
156 | QByteArrayLiteral("NameWindowPixmap"), | 156 | QByteArrayLiteral("NameWindowPixmap"), | ||
157 | QByteArrayLiteral("GetOverlayWindow"), | 157 | QByteArrayLiteral("GetOverlayWindow"), | ||
158 | QByteArrayLiteral("ReleaseOverlayWindow")}); | 158 | QByteArrayLiteral("ReleaseOverlayWindow")}); | ||
159 | } | 159 | } | ||
160 | 160 | | |||
161 | QVector<QByteArray> fixesOpCodes() | 161 | QVector<QByteArray> fixesOpCodes() | ||
162 | { | 162 | { | ||
163 | // see http://www.x.org/releases/X11R7.7/doc/fixesproto/fixesproto.txt | 163 | // see https://www.x.org/releases/X11R7.7/doc/fixesproto/fixesproto.txt | ||
164 | // extracted from <xcb/xfixes.h> | 164 | // extracted from <xcb/xfixes.h> | ||
165 | return QVector<QByteArray>({QByteArrayLiteral("QueryVersion"), | 165 | return QVector<QByteArray>({QByteArrayLiteral("QueryVersion"), | ||
166 | QByteArrayLiteral("ChangeSaveSet"), | 166 | QByteArrayLiteral("ChangeSaveSet"), | ||
167 | QByteArrayLiteral("SelectSelectionInput"), | 167 | QByteArrayLiteral("SelectSelectionInput"), | ||
168 | QByteArrayLiteral("SelectCursorInput"), | 168 | QByteArrayLiteral("SelectCursorInput"), | ||
169 | QByteArrayLiteral("GetCursorImage"), | 169 | QByteArrayLiteral("GetCursorImage"), | ||
170 | QByteArrayLiteral("CreateRegion"), | 170 | QByteArrayLiteral("CreateRegion"), | ||
171 | QByteArrayLiteral("CreateRegionFromBitmap"), | 171 | QByteArrayLiteral("CreateRegionFromBitmap"), | ||
Show All 22 Lines | |||||
194 | QByteArrayLiteral("HideCursor"), | 194 | QByteArrayLiteral("HideCursor"), | ||
195 | QByteArrayLiteral("ShowCursor"), | 195 | QByteArrayLiteral("ShowCursor"), | ||
196 | QByteArrayLiteral("CreatePointerBarrier"), | 196 | QByteArrayLiteral("CreatePointerBarrier"), | ||
197 | QByteArrayLiteral("DeletePointerBarrier")}); | 197 | QByteArrayLiteral("DeletePointerBarrier")}); | ||
198 | } | 198 | } | ||
199 | 199 | | |||
200 | QVector<QByteArray> fixesErrorCodes() | 200 | QVector<QByteArray> fixesErrorCodes() | ||
201 | { | 201 | { | ||
202 | // see http://www.x.org/releases/X11R7.7/doc/fixesproto/fixesproto.txt | 202 | // see https://www.x.org/releases/X11R7.7/doc/fixesproto/fixesproto.txt | ||
203 | // extracted from <xcb/xfixes.h> | 203 | // extracted from <xcb/xfixes.h> | ||
204 | return QVector<QByteArray>({QByteArrayLiteral("BadRegion")}); | 204 | return QVector<QByteArray>({QByteArrayLiteral("BadRegion")}); | ||
205 | } | 205 | } | ||
206 | 206 | | |||
207 | QVector<QByteArray> renderOpCodes() | 207 | QVector<QByteArray> renderOpCodes() | ||
208 | { | 208 | { | ||
209 | // see http://www.x.org/releases/X11R7.7/doc/renderproto/renderproto.txt | 209 | // see https://www.x.org/releases/X11R7.7/doc/renderproto/renderproto.txt | ||
210 | // extracted from <xcb/render.h> | 210 | // extracted from <xcb/render.h> | ||
211 | return QVector<QByteArray>({QByteArrayLiteral("QueryVersion"), | 211 | return QVector<QByteArray>({QByteArrayLiteral("QueryVersion"), | ||
212 | QByteArrayLiteral("QueryPictFormats"), | 212 | QByteArrayLiteral("QueryPictFormats"), | ||
213 | QByteArrayLiteral("QueryPictIndexValues"), | 213 | QByteArrayLiteral("QueryPictIndexValues"), | ||
214 | QByteArrayLiteral("CreatePicture"), | 214 | QByteArrayLiteral("CreatePicture"), | ||
215 | QByteArrayLiteral("ChangePicture"), | 215 | QByteArrayLiteral("ChangePicture"), | ||
216 | QByteArrayLiteral("SetPictureClipRectangles"), | 216 | QByteArrayLiteral("SetPictureClipRectangles"), | ||
217 | QByteArrayLiteral("FreePicture"), | 217 | QByteArrayLiteral("FreePicture"), | ||
Show All 20 Lines | |||||
238 | QByteArrayLiteral("CreateSolidFill"), | 238 | QByteArrayLiteral("CreateSolidFill"), | ||
239 | QByteArrayLiteral("CreateLinearGradient"), | 239 | QByteArrayLiteral("CreateLinearGradient"), | ||
240 | QByteArrayLiteral("CreateRadialGradient"), | 240 | QByteArrayLiteral("CreateRadialGradient"), | ||
241 | QByteArrayLiteral("CreateConicalGradient")}); | 241 | QByteArrayLiteral("CreateConicalGradient")}); | ||
242 | } | 242 | } | ||
243 | 243 | | |||
244 | QVector<QByteArray> syncOpCodes() | 244 | QVector<QByteArray> syncOpCodes() | ||
245 | { | 245 | { | ||
246 | // see http://www.x.org/releases/X11R7.7/doc/xextproto/sync.html | 246 | // see https://www.x.org/releases/X11R7.7/doc/xextproto/sync.html | ||
247 | // extracted from <xcb/sync.h> | 247 | // extracted from <xcb/sync.h> | ||
248 | return QVector<QByteArray>({QByteArrayLiteral("Initialize"), | 248 | return QVector<QByteArray>({QByteArrayLiteral("Initialize"), | ||
249 | QByteArrayLiteral("ListSystemCounters"), | 249 | QByteArrayLiteral("ListSystemCounters"), | ||
250 | QByteArrayLiteral("CreateCounter"), | 250 | QByteArrayLiteral("CreateCounter"), | ||
251 | QByteArrayLiteral("DestroyCounter"), | 251 | QByteArrayLiteral("DestroyCounter"), | ||
252 | QByteArrayLiteral("QueryCounter"), | 252 | QByteArrayLiteral("QueryCounter"), | ||
253 | QByteArrayLiteral("Await"), | 253 | QByteArrayLiteral("Await"), | ||
254 | QByteArrayLiteral("ChangeCounter"), | 254 | QByteArrayLiteral("ChangeCounter"), | ||
▲ Show 20 Lines • Show All 366 Lines • Show Last 20 Lines |