fix usage of "if(tree) {" to display the right things, even if no coloring rule is set
[obnox/wireshark/wip.git] / epan / dissectors / x11-fields
1 #
2 # Fields for X11 dissector.
3 #
4 # Copyright 2000, Christophe Tronche <ch.tronche@computer.org>
5 #
6 # $Id$
7 #
8 # Ethereal - Network traffic analyzer
9 # By Gerald Combs <gerald@ethereal.com>
10 # Copyright 1998 Gerald Combs
11 #
12 # This program is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU General Public License
14 # as published by the Free Software Foundation; either version 2
15 # of the License, or (at your option) any later version.
16
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 # GNU General Public License for more details.
21
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 #
26
27 above-sibling           UINT32  HEX
28 acceleration-denominator        INT16   DEC
29 acceleration-numerator  INT16   DEC
30 access-mode     UINT8   DEC     VALS
31 address         BYTES   NONE
32 ip-address      IPv4    NONE
33 address-length  UINT16  DEC
34 alloc           UINT8   DEC     VALS
35 allow-events-mode       UINT8   DEC     VALS
36 allow-exposures UINT8   DEC     VALS(yes_no_default)
37 arcs            NONE    NONE
38
39 arc             NONE    NONE
40         x               INT16   DEC
41         y               INT16   DEC
42         width   UINT16  DEC
43         height  UINT16  DEC
44         angle1  INT16   DEC
45         angle2  INT16   DEC
46
47 arc-mode        UINT8   DEC     VALS    Tell us if we're drawing an arc or a pie
48 atom            UINT32  HEX
49 authorization-protocol-name-length      UINT16  DEC
50 authorization-protocol-name     STRING  HEX
51 authorization-protocol-data-length      UINT16  DEC
52 authorization-protocol-data     STRING  HEX
53 auto-repeat-mode        UINT8   DEC     VALS
54
55 bitmap-format-bit-order UINT8   HEX     VALS(image_byte_order)
56 bitmap-format-scanline-pad      UINT8   DEC     bitmap format scanline-pad
57 bitmap-format-scanline-unit     UINT8   DEC     bitmap format scanline unit
58 bytes-after     UINT32  DEC     bytes after
59 back-blue       UINT16  DEC             Background blue value for a cursor
60 back-green      UINT16  DEC             Background green value for a cursor
61 back-red        UINT16  DEC             Background red value for a cursor
62 background      UINT32  HEX             Background color
63 background-pixel        UINT32  HEX     Background color for a window
64 background-pixmap       UINT32  HEX     VALS    Background pixmap for a window
65 backing-pixel   UINT32  HEX
66 backing-planes  UINT32  HEX
67 backing-store   UINT8   DEC     VALS
68 bell-duration   INT16   DEC
69 bell-percent    INT8    DEC
70 bell-pitch      INT16   DEC
71 bit-gravity     UINT8   DEC     VALS(gravity)
72 bit-plane       UINT32  HEX
73 blue            UINT16  DEC
74 blues           UINT16  DEC
75 border-pixel    UINT32  HEX
76 border-pixmap   UINT32  HEX     VALS
77 border-width    UINT16  DEC
78 button          UINT8   DEC     VALS
79 byte-order      UINT8   HEX     VALS
80
81 childwindow     UINT32  HEX     childwindow
82 cap-style       UINT8   DEC     VALS
83 change-host-mode        UINT8   DEC     VALS(insert_delete)
84 cid             UINT32  HEX
85 class           UINT8   DEC     VALS
86 clip-mask       UINT32  HEX     VALS(zero_is_none)
87 clip-x-origin   INT16   DEC
88 clip-y-origin   INT16   DEC
89 close-down-mode UINT8   DEC     VALS
90 cmap            UINT32  HEX
91 colormap        UINT32  HEX
92 colormap-state  UINT8   DEC     VALS
93 color-items     NONE    NONE
94
95 coloritem               NONE    NONE
96         pixel           UINT32  HEX
97         red             UINT16  DEC
98         green           UINT16  DEC
99         blue            UINT16  DEC
100         flags           UINT8   HEX
101                 do-red          BOOLEAN 8       0x01
102                 do-green        BOOLEAN 8       0x02
103                 do-blue         BOOLEAN 8       0x04
104                 unused          BOOLEAN 8       0xf8
105         unused          NONE    NONE
106
107 colors          UINT16  DEC                     The number of color cells to allocate
108
109 configure-window-mask   UINT16  HEX
110         x               BOOLEAN 16      0x0001
111         y               BOOLEAN 16      0x0002
112         width           BOOLEAN 16      0x0004
113         height          BOOLEAN 16      0x0008
114         border-width    BOOLEAN 16      0x0010
115         sibling         BOOLEAN 16      0x0020
116         stack-mode      BOOLEAN 16      0x0040
117
118 confine-to      UINT32  HEX     VALS(zero_is_none)
119 contiguous      BOOLEAN NONE
120 coordinate-mode UINT8   DEC     VALS
121 count           UINT8   DEC
122 cursor          UINT32  HEX     VALS(zero_is_none)
123 dash-offset     UINT16  DEC
124 dashes          BYTES   NONE
125 dashes-length   UINT16  DEC
126 do-acceleration BOOLEAN NONE
127 do-threshold    BOOLEAN NONE
128
129 detail  UINT8   DEC     detail
130 do-not-propagate-mask   UINT32  HEX
131         KeyPress                BOOLEAN 32      0x00000001
132         KeyRelease              BOOLEAN 32      0x00000002
133         ButtonPress             BOOLEAN 32      0x00000004
134         ButtonRelease           BOOLEAN 32      0x00000008
135         PointerMotion           BOOLEAN 32      0x00000040
136         Button1Motion           BOOLEAN 32      0x00000100
137         Button2Motion           BOOLEAN 32      0x00000200
138         Button3Motion           BOOLEAN 32      0x00000400
139         Button4Motion           BOOLEAN 32      0x00000800
140         Button5Motion           BOOLEAN 32      0x00001000
141         ButtonMotion            BOOLEAN 32      0x00002000
142         erroneous-bits          BOOLEAN 32      0xffffc0b0
143
144 event-sequencenumber    UINT16  DEC     event sequencenumber
145 error   UINT8   DEC     error
146 error-badvalue  UINT32  DEC     error badvalue
147 error_sequencenumber    UINT16  DEC     error sequencenumber
148 errorcode       UINT8   DEC     VALS    errrorcode
149 event-x UINT16  DEC     event x
150 event-y UINT16  DEC     event y
151 eventbutton     UINT8   DEC     eventbutton
152 eventcode       UINT8   DEC     VALS    eventcode
153 eventwindow     UINT32  HEX     eventwindow
154
155 first-event     UINT8   DEC
156 first-error     UINT8   DEC
157
158 gc-dashes       UINT8   DEC
159
160 gc-value-mask   UINT32  HEX
161         function                BOOLEAN 32      0x00000001
162         plane-mask              BOOLEAN 32      0x00000002
163         foreground              BOOLEAN 32      0x00000004
164         background              BOOLEAN 32      0x00000008
165         line-width              BOOLEAN 32      0x00000010
166         line-style              BOOLEAN 32      0x00000020
167         cap-style               BOOLEAN 32      0x00000040
168         join-style              BOOLEAN 32      0x00000080
169         fill-style              BOOLEAN 32      0x00000100
170         fill-rule               BOOLEAN 32      0x00000200
171         tile                    BOOLEAN 32      0x00000400
172         stipple                 BOOLEAN 32      0x00000800
173         tile-stipple-x-origin   BOOLEAN 32      0x00001000
174         tile-stipple-y-origin   BOOLEAN 32      0x00002000
175         font                    BOOLEAN 32      0x00004000
176         subwindow-mode          BOOLEAN 32      0x00008000
177         graphics-exposures      BOOLEAN 32      0x00010000
178         clip-x-origin           BOOLEAN 32      0x00020000
179         clip-y-origin           BOOLEAN 32      0x00040000
180         clip-mask               BOOLEAN 32      0x00080000
181         dash-offset             BOOLEAN 32      0x00100000
182         gc-dashes               BOOLEAN 32      0x00200000
183         arc-mode                BOOLEAN 32      0x00400000
184
185 green           UINT16  DEC
186 greens          UINT16  DEC
187 data            BYTES   NONE
188 data-length     UINT32  DEC
189 delete          BOOLEAN NONE            Delete this property after reading
190 delta           INT16   DEC
191 depth           UINT8   DEC
192 destination     UINT8   DEC     VALS
193 direction       UINT8   DEC     VALS
194 drawable        UINT32  HEX
195 dst-drawable    UINT32  HEX
196 dst-gc          UINT32  HEX
197 dst-window      UINT32  HEX
198 dst-x           INT16   DEC
199 dst-y           INT16   DEC
200 event-detail    UINT8   DEC     VALS
201
202 event-mask      UINT32  HEX
203         KeyPress                BOOLEAN 32      0x00000001
204         KeyRelease              BOOLEAN 32      0x00000002
205         ButtonPress             BOOLEAN 32      0x00000004
206         ButtonRelease           BOOLEAN 32      0x00000008
207         EnterWindow             BOOLEAN 32      0x00000010
208         LeaveWindow             BOOLEAN 32      0x00000020
209         PointerMotion           BOOLEAN 32      0x00000040
210         PointerMotionHint       BOOLEAN 32      0x00000080
211         Button1Motion           BOOLEAN 32      0x00000100
212         Button2Motion           BOOLEAN 32      0x00000200
213         Button3Motion           BOOLEAN 32      0x00000400
214         Button4Motion           BOOLEAN 32      0x00000800
215         Button5Motion           BOOLEAN 32      0x00001000
216         ButtonMotion            BOOLEAN 32      0x00002000
217         KeymapState             BOOLEAN 32      0x00004000
218         Exposure                BOOLEAN 32      0x00008000
219         VisibilityChange        BOOLEAN 32      0x00010000
220         StructureNotify         BOOLEAN 32      0x00020000
221         ResizeRedirect          BOOLEAN 32      0x00040000
222         SubstructureNotify      BOOLEAN 32      0x00080000
223         SubstructureRedirect    BOOLEAN 32      0x00100000
224         FocusChange             BOOLEAN 32      0x00200000
225         PropertyChange          BOOLEAN 32      0x00400000
226         ColormapChange          BOOLEAN 32      0x00800000
227         OwnerGrabButton         BOOLEAN 32      0x01000000
228         erroneous-bits          BOOLEAN 32      0xfe000000
229
230 exact-blue      UINT16  DEC
231 exact-green     UINT16  DEC
232 exact-red       UINT16  DEC
233 exposures       BOOLEAN NONE
234 family          UINT8   DEC     VALS
235 fid             UINT32  HEX             Font id
236 fill-rule       UINT8   DEC     VALS
237 fill-style      UINT8   DEC     VALS
238 first-keycode   UINT8   DEC
239 focus           UINT8   DEC     VALS
240 focus-detail    UINT8   DEC     VALS
241 focus-mode      UINT8   DEC     VALS
242 font            UINT32  HEX
243 fore-blue       UINT16  DEC
244 fore-green      UINT16  DEC
245 fore-red        UINT16  DEC
246 foreground      UINT32  HEX
247 format          UINT8   DEC
248 from-configure  BOOLEAN NONE
249 function        UINT8   DEC     VALS
250 gc              UINT32  HEX
251 get-property-type       UINT32  HEX     VALS(zero_is_any_property_type)
252 grab-mode       UINT8   DEC     VALS
253 grab-status     UINT8   DEC     VALS
254 grab-window     UINT32  HEX
255 graphics-exposures      BOOLEAN NONE
256 height          UINT16  DEC
257 image-byte-order        UINT8   HEX     VALS
258 initial-connection      NONE    NONE    undecoded
259 image-format    UINT8   DEC     VALS
260 image-pixmap-format     UINT8   DEC     VALS
261 interval        INT16   DEC
262 items           NONE    NONE
263 join-style      UINT8   DEC     VALS
264 key             UINT8   DEC     VALS
265 key-click-percent       INT8    DEC
266 keyboard-key    UINT8   DEC
267 keyboard-mode   UINT8   DEC     VALS(pointer_keyboard_mode)
268 keybut-mask-erroneous-bits      BOOLEAN 16      0xe000  keybut mask erroneous bits
269 keycode UINT8   HEX     keycode
270
271 keyboard-value-mask     UINT32  HEX
272         key-click-percent       BOOLEAN 32      0x0001
273         bell-percent            BOOLEAN 32      0x0002
274         bell-pitch              BOOLEAN 32      0x0004
275         bell-duration           BOOLEAN 32      0x0008
276         led                     BOOLEAN 32      0x0010
277         led-mode                BOOLEAN 32      0x0020
278         keyboard-key            BOOLEAN 32      0x0040
279         auto-repeat-mode        BOOLEAN 32      0x0080
280
281 keycode-count   UINT8   DEC
282
283 keycodes        NONE    NONE
284         item    BYTES   NONE
285
286 keycodes-per-modifier   UINT8   DEC
287
288 keys            BYTES   NONE
289
290 keysyms         NONE    NONE
291         item    NONE    NONE
292                 keysym  UINT32  HEX
293
294 keysyms-per-keycode     UINT8   DEC
295 length-of-reason        UINT8   DEC     length of reason
296 length-of-vendor        UINT16  DEC     length of vendor
297 led             UINT8   DEC
298 led-mode        UINT8   DEC     VALS(on_off)
299 left-pad        UINT8   DEC
300 line-style      UINT8   DEC     VALS
301 line-width      UINT16  DEC
302 long-length     UINT32  DEC             The maximum length of the property in bytes
303 long-offset     UINT32  DEC             The starting position in the property bytes array
304 map             BYTES   NONE
305 map-length      UINT8   DEC
306 mask            UINT32  HEX     VALS(zero_is_none)
307 mask-char       UINT16  DEC
308 mask-font       UINT32  HEX     VALS(zero_is_none)
309 max-names       UINT16  DEC
310 mid             UINT32  HEX
311 mode            UINT8   DEC     VALS
312 major-opcode    UINT16  DEC     major opcode
313 max-keycode     UINT8   DEC     max keycode
314 maximum-request-length  UINT16  DEC     maximum request length
315 min-keycode     UINT8   DEC     min keycode
316 minor-opcode    UINT16  DEC     minor opcode
317
318 modifiers-mask          UINT16  HEX
319         Shift                   BOOLEAN 16      0x0001
320         Lock                    BOOLEAN 16      0x0002
321         Control                 BOOLEAN 16      0x0004
322         Mod1                    BOOLEAN 16      0x0008
323         Mod2                    BOOLEAN 16      0x0010
324         Mod3                    BOOLEAN 16      0x0020
325         Mod4                    BOOLEAN 16      0x0040
326         Mod5                    BOOLEAN 16      0x0080
327         Button1                 BOOLEAN 16      0x0100
328         Button2                 BOOLEAN 16      0x0200
329         Button3                 BOOLEAN 16      0x0400
330         Button4                 BOOLEAN 16      0x0800
331         Button5                 BOOLEAN 16      0x1000
332         AnyModifier             UINT16  HEX     0x8000
333         erroneous-bits          BOOLEAN 16      0xff00
334
335 motion-buffer-size      UINT16  DEC     motion buffer size
336
337 new             BOOLEAN NONE
338 number-of-formats-in-pixmap-formats     UINT8   DEC     number of formats in pixmap formats
339 number-of-screens-in-roots      UINT8   DEC     number of screens in roots
340
341 name            STRING  HEX
342 name-length     UINT16  DEC
343 odd-length      BOOLEAN NONE
344 only-if-exists  BOOLEAN NONE
345 opcode          UINT8   DEC     VALS
346 ordering        UINT8   DEC     VALS
347 override-redirect       BOOLEAN NONE    Window manager doesn't manage this window when true
348 owner           UINT32  HEX     VALS(zero_is_none)
349 owner-events    BOOLEAN NONE
350 parent          UINT32  HEX
351
352 path    NONE    NONE
353         string                  STRING  NONE
354
355 pattern         STRING  HEX
356 pattern-length  UINT16  DEC
357 percent         UINT8   DEC
358 pid             UINT32  HEX
359 pixel           UINT32  HEX
360 pixels          NONE    NONE
361 pixels_item     UINT32  HEX
362 pixmap          UINT32  HEX
363 place           UINT8   DEC     VALS
364 plane-mask      UINT32  HEX     VALS
365 planes          UINT16  DEC
366 point           NONE    NONE
367 points          NONE    NONE
368 point-x         INT16   DEC
369 point-y         INT16   DEC
370
371 pointer-event-mask      UINT16  HEX
372         ButtonPress             BOOLEAN 16      0x0004
373         ButtonRelease           BOOLEAN 16      0x0008
374         EnterWindow             BOOLEAN 16      0x0010
375         LeaveWindow             BOOLEAN 16      0x0020
376         PointerMotion           BOOLEAN 16      0x0040
377         PointerMotionHint       BOOLEAN 16      0x0080
378         Button1Motion           BOOLEAN 16      0x0100
379         Button2Motion           BOOLEAN 16      0x0200
380         Button3Motion           BOOLEAN 16      0x0400
381         Button4Motion           BOOLEAN 16      0x0800
382         Button5Motion           BOOLEAN 16      0x1000
383         ButtonMotion            BOOLEAN 16      0x2000
384         KeymapState             BOOLEAN 16      0x4000
385         erroneous-bits          BOOLEAN 16      0x8003
386
387 pointer-mode    UINT8   DEC     VALS(pointer_keyboard_mode)
388 prefer-blanking UINT8   DEC     VALS(yes_no_default)
389 present         BOOLEAN NONE
390 propagate       BOOLEAN NONE
391
392 properties      NONE    NONE
393         item    UINT32  HEX
394
395 property        UINT32  HEX
396 property-number UINT16  DEC
397 property-state  UINT8   DEC     VALS
398 protocol-major-version  UINT16  DEC
399 protocol-minor-version  UINT16  DEC
400 reason          STRING  HEX     reason
401 rectangle-height        UINT16  DEC
402 rectangles      NONE    NONE
403 rectangle       NONE    NONE
404 rectangle-width UINT16  DEC
405 rectangle-x     INT16   DEC
406 rectangle-y     INT16   DEC
407 red             UINT16  DEC
408 reds            UINT16  DEC
409 request         UINT8   DEC     VALS(opcode)
410 requestor       UINT32  HEX
411 request-length  UINT16  DEC             Request length
412 resource        UINT32  HEX     VALS(all_temporary)
413 revert-to       UINT8   DEC     VALS
414 release-number  UINT32  DEC     release number
415 reply   UINT8   DEC     reply
416 reply-sequencenumber    UINT16  DEC     VALS(opcode)
417 replylength     UINT32  DEC     replylength
418 replyopcode     UINT8   DEC     VALS(opcode)
419 resource-id-base        UINT32  HEX     resource id base
420 resource-id-mask        UINT32  HEX     resource id mask
421 root-x  UINT16  DEC     root x
422 root-y  UINT16  DEC     root y
423 rootwindow      UINT32  HEX     rootwindow
424
425 same-screen     BOOLEAN NONE    same screen
426 same-screen-focus-mask  UINT8   HEX
427         focus                   BOOLEAN 8       0x01
428         same-screen             BOOLEAN 8       0x02
429 success         UINT8   DEC     success
430 save-set-mode   UINT8   DEC     VALS(insert_delete)
431 save-under      BOOLEAN NONE
432 screen-saver-mode       UINT8   DEC     VALS
433 segment         NONE    NONE
434 segments        NONE    NONE
435 segment_x1      INT16   DEC
436 segment_x2      INT16   DEC
437 segment_y1      INT16   DEC
438 segment_y2      INT16   DEC
439 selection       UINT32  HEX
440 shape           UINT8   DEC     VALS
441 sibling         UINT32  HEX
442 source-pixmap   UINT32  HEX
443 source-font     UINT32  HEX
444 source-char     UINT16  DEC
445 src-cmap        UINT32  HEX
446 src-drawable    UINT32  HEX
447 src-gc          UINT32  HEX
448 src-height      UINT16  DEC
449 src-width       UINT16  DEC
450 src-window      UINT32  HEX
451 src-x           INT16   DEC
452 src-y           INT16   DEC
453 start           UINT32  DEC
454 stack-mode      UINT8   DEC     VALS
455 stipple         UINT32  HEX
456 stop            UINT32  DEC
457 str-number-in-path      UINT16  DEC
458 string          STRING  HEX
459
460 string16        STRING  HEX
461         bytes   BYTES   NONE
462
463 string-length   UINT32  DEC
464 subwindow-mode  UINT8   DEC     VALS
465 target          UINT32  HEX
466
467 textitem        NONE    NONE
468         font    UINT32  HEX
469         string          NONE    NONE
470                 delta           INT8    DEC
471                 string8         STRING  NONE
472                 string16        STRING  NONE
473                         bytes   BYTES   NONE
474
475 threshold       INT16   DEC
476 tile            UINT32  HEX
477 tile-stipple-x-origin   INT16   DEC
478 tile-stipple-y-origin   INT16   DEC
479 time            UINT32  DEC
480 timeout         INT16   DEC
481 type            UINT32  HEX
482 undecoded       NONE    NONE            Yet undecoded by dissector
483 unused          NONE    NONE
484 valuelength     UINT32  DEC     valuelength
485 vendor          STRING  HEX     vendor
486 visibility-state UINT8  DEC     VALS
487 visual          UINT32  HEX
488 visual-blue     UINT16  DEC
489 visual-green    UINT16  DEC
490 visual-red      UINT16  DEC
491 visualid        UINT32  HEX
492 warp-pointer-dst-window UINT32  HEX     VALS(zero_is_none)
493 warp-pointer-src-window UINT32  HEX     VALS(zero_is_none)
494 wid             UINT32  HEX             Window id
495 width           UINT16  DEC
496 win-gravity     UINT8   DEC     VALS(gravity)
497 win-x           INT16   DEC
498 win-y           INT16   DEC
499 window          UINT32  HEX
500 window-class    UINT16  DEC     VALS            Window class
501
502 window-value-mask       UINT32  HEX
503         background-pixmap       BOOLEAN 32      0x00000001
504         background-pixel        BOOLEAN 32      0x00000002
505         border-pixmap           BOOLEAN 32      0x00000004
506         border-pixel            BOOLEAN 32      0x00000008
507         bit-gravity             BOOLEAN 32      0x00000010
508         win-gravity             BOOLEAN 32      0x00000020
509         backing-store           BOOLEAN 32      0x00000040
510         backing-planes          BOOLEAN 32      0x00000080
511         backing-pixel           BOOLEAN 32      0x00000100
512         override-redirect       BOOLEAN 32      0x00000200
513         save-under              BOOLEAN 32      0x00000400
514         event-mask              BOOLEAN 32      0x00000800
515         do-not-propagate-mask   BOOLEAN 32      0x00001000
516         colormap                BOOLEAN 32      0x00002000
517         cursor                  BOOLEAN 32      0x00004000
518
519 x               INT16   DEC
520 y               INT16   DEC