Debian Codegraph @

Xlib/X/X.xs

raw
1 #define PERL_NO_GET_CONTEXT
2 #ifdef __cplusplus
3 extern "C" {
4 #endif
5 #include <EXTERN.h>
6 #include <perl.h>
7 #include <XSUB.h>
8 #ifdef __cplusplus
9 }
10 #endif
11
12 #include <X11/X.h>
13
14 static int
15 not_here(s)
16 char *s;
17 {
18 croak("%s not implemented on this architecture", s);
19 return -1;
20 }
21
22 static double
23 constant(name, arg)
24 char *name;
25 int arg;
26 {
27 errno = 0;
28 switch (*name) {
29 case 'A':
30 if (strEQ(name, "Above"))
31 #ifdef Above
32 return Above;
33 #else
34 goto not_there;
35 #endif
36 if (strEQ(name, "AllTemporary"))
37 #ifdef AllTemporary
38 return AllTemporary;
39 #else
40 goto not_there;
41 #endif
42 if (strEQ(name, "AllocAll"))
43 #ifdef AllocAll
44 return AllocAll;
45 #else
46 goto not_there;
47 #endif
48 if (strEQ(name, "AllocNone"))
49 #ifdef AllocNone
50 return AllocNone;
51 #else
52 goto not_there;
53 #endif
54 if (strEQ(name, "AllowExposures"))
55 #ifdef AllowExposures
56 return AllowExposures;
57 #else
58 goto not_there;
59 #endif
60 if (strEQ(name, "AlreadyGrabbed"))
61 #ifdef AlreadyGrabbed
62 return AlreadyGrabbed;
63 #else
64 goto not_there;
65 #endif
66 if (strEQ(name, "Always"))
67 #ifdef Always
68 return Always;
69 #else
70 goto not_there;
71 #endif
72 if (strEQ(name, "AnyButton"))
73 #ifdef AnyButton
74 return AnyButton;
75 #else
76 goto not_there;
77 #endif
78 if (strEQ(name, "AnyKey"))
79 #ifdef AnyKey
80 return AnyKey;
81 #else
82 goto not_there;
83 #endif
84 if (strEQ(name, "AnyModifier"))
85 #ifdef AnyModifier
86 return AnyModifier;
87 #else
88 goto not_there;
89 #endif
90 if (strEQ(name, "AnyPropertyType"))
91 #ifdef AnyPropertyType
92 return AnyPropertyType;
93 #else
94 goto not_there;
95 #endif
96 if (strEQ(name, "ArcChord"))
97 #ifdef ArcChord
98 return ArcChord;
99 #else
100 goto not_there;
101 #endif
102 if (strEQ(name, "ArcPieSlice"))
103 #ifdef ArcPieSlice
104 return ArcPieSlice;
105 #else
106 goto not_there;
107 #endif
108 if (strEQ(name, "AsyncBoth"))
109 #ifdef AsyncBoth
110 return AsyncBoth;
111 #else
112 goto not_there;
113 #endif
114 if (strEQ(name, "AsyncKeyboard"))
115 #ifdef AsyncKeyboard
116 return AsyncKeyboard;
117 #else
118 goto not_there;
119 #endif
120 if (strEQ(name, "AsyncPointer"))
121 #ifdef AsyncPointer
122 return AsyncPointer;
123 #else
124 goto not_there;
125 #endif
126 if (strEQ(name, "AutoRepeatModeDefault"))
127 #ifdef AutoRepeatModeDefault
128 return AutoRepeatModeDefault;
129 #else
130 goto not_there;
131 #endif
132 if (strEQ(name, "AutoRepeatModeOff"))
133 #ifdef AutoRepeatModeOff
134 return AutoRepeatModeOff;
135 #else
136 goto not_there;
137 #endif
138 if (strEQ(name, "AutoRepeatModeOn"))
139 #ifdef AutoRepeatModeOn
140 return AutoRepeatModeOn;
141 #else
142 goto not_there;
143 #endif
144 break;
145 case 'B':
146 if (strEQ(name, "BadAccess"))
147 #ifdef BadAccess
148 return BadAccess;
149 #else
150 goto not_there;
151 #endif
152 if (strEQ(name, "BadAlloc"))
153 #ifdef BadAlloc
154 return BadAlloc;
155 #else
156 goto not_there;
157 #endif
158 if (strEQ(name, "BadAtom"))
159 #ifdef BadAtom
160 return BadAtom;
161 #else
162 goto not_there;
163 #endif
164 if (strEQ(name, "BadColor"))
165 #ifdef BadColor
166 return BadColor;
167 #else
168 goto not_there;
169 #endif
170 if (strEQ(name, "BadCursor"))
171 #ifdef BadCursor
172 return BadCursor;
173 #else
174 goto not_there;
175 #endif
176 if (strEQ(name, "BadDrawable"))
177 #ifdef BadDrawable
178 return BadDrawable;
179 #else
180 goto not_there;
181 #endif
182 if (strEQ(name, "BadFont"))
183 #ifdef BadFont
184 return BadFont;
185 #else
186 goto not_there;
187 #endif
188 if (strEQ(name, "BadGC"))
189 #ifdef BadGC
190 return BadGC;
191 #else
192 goto not_there;
193 #endif
194 if (strEQ(name, "BadIDChoice"))
195 #ifdef BadIDChoice
196 return BadIDChoice;
197 #else
198 goto not_there;
199 #endif
200 if (strEQ(name, "BadImplementation"))
201 #ifdef BadImplementation
202 return BadImplementation;
203 #else
204 goto not_there;
205 #endif
206 if (strEQ(name, "BadLength"))
207 #ifdef BadLength
208 return BadLength;
209 #else
210 goto not_there;
211 #endif
212 if (strEQ(name, "BadMatch"))
213 #ifdef BadMatch
214 return BadMatch;
215 #else
216 goto not_there;
217 #endif
218 if (strEQ(name, "BadName"))
219 #ifdef BadName
220 return BadName;
221 #else
222 goto not_there;
223 #endif
224 if (strEQ(name, "BadPixmap"))
225 #ifdef BadPixmap
226 return BadPixmap;
227 #else
228 goto not_there;
229 #endif
230 if (strEQ(name, "BadRequest"))
231 #ifdef BadRequest
232 return BadRequest;
233 #else
234 goto not_there;
235 #endif
236 if (strEQ(name, "BadValue"))
237 #ifdef BadValue
238 return BadValue;
239 #else
240 goto not_there;
241 #endif
242 if (strEQ(name, "BadWindow"))
243 #ifdef BadWindow
244 return BadWindow;
245 #else
246 goto not_there;
247 #endif
248 if (strEQ(name, "Below"))
249 #ifdef Below
250 return Below;
251 #else
252 goto not_there;
253 #endif
254 if (strEQ(name, "BottomIf"))
255 #ifdef BottomIf
256 return BottomIf;
257 #else
258 goto not_there;
259 #endif
260 if (strEQ(name, "Button1"))
261 #ifdef Button1
262 return Button1;
263 #else
264 goto not_there;
265 #endif
266 if (strEQ(name, "Button1Mask"))
267 #ifdef Button1Mask
268 return Button1Mask;
269 #else
270 goto not_there;
271 #endif
272 if (strEQ(name, "Button1MotionMask"))
273 #ifdef Button1MotionMask
274 return Button1MotionMask;
275 #else
276 goto not_there;
277 #endif
278 if (strEQ(name, "Button2"))
279 #ifdef Button2
280 return Button2;
281 #else
282 goto not_there;
283 #endif
284 if (strEQ(name, "Button2Mask"))
285 #ifdef Button2Mask
286 return Button2Mask;
287 #else
288 goto not_there;
289 #endif
290 if (strEQ(name, "Button2MotionMask"))
291 #ifdef Button2MotionMask
292 return Button2MotionMask;
293 #else
294 goto not_there;
295 #endif
296 if (strEQ(name, "Button3"))
297 #ifdef Button3
298 return Button3;
299 #else
300 goto not_there;
301 #endif
302 if (strEQ(name, "Button3Mask"))
303 #ifdef Button3Mask
304 return Button3Mask;
305 #else
306 goto not_there;
307 #endif
308 if (strEQ(name, "Button3MotionMask"))
309 #ifdef Button3MotionMask
310 return Button3MotionMask;
311 #else
312 goto not_there;
313 #endif
314 if (strEQ(name, "Button4"))
315 #ifdef Button4
316 return Button4;
317 #else
318 goto not_there;
319 #endif
320 if (strEQ(name, "Button4Mask"))
321 #ifdef Button4Mask
322 return Button4Mask;
323 #else
324 goto not_there;
325 #endif
326 if (strEQ(name, "Button4MotionMask"))
327 #ifdef Button4MotionMask
328 return Button4MotionMask;
329 #else
330 goto not_there;
331 #endif
332 if (strEQ(name, "Button5"))
333 #ifdef Button5
334 return Button5;
335 #else
336 goto not_there;
337 #endif
338 if (strEQ(name, "Button5Mask"))
339 #ifdef Button5Mask
340 return Button5Mask;
341 #else
342 goto not_there;
343 #endif
344 if (strEQ(name, "Button5MotionMask"))
345 #ifdef Button5MotionMask
346 return Button5MotionMask;
347 #else
348 goto not_there;
349 #endif
350 if (strEQ(name, "ButtonMotionMask"))
351 #ifdef ButtonMotionMask
352 return ButtonMotionMask;
353 #else
354 goto not_there;
355 #endif
356 if (strEQ(name, "ButtonPress"))
357 #ifdef ButtonPress
358 return ButtonPress;
359 #else
360 goto not_there;
361 #endif
362 if (strEQ(name, "ButtonPressMask"))
363 #ifdef ButtonPressMask
364 return ButtonPressMask;
365 #else
366 goto not_there;
367 #endif
368 if (strEQ(name, "ButtonRelease"))
369 #ifdef ButtonRelease
370 return ButtonRelease;
371 #else
372 goto not_there;
373 #endif
374 if (strEQ(name, "ButtonReleaseMask"))
375 #ifdef ButtonReleaseMask
376 return ButtonReleaseMask;
377 #else
378 goto not_there;
379 #endif
380 break;
381 case 'C':
382 if (strEQ(name, "CWBackPixel"))
383 #ifdef CWBackPixel
384 return CWBackPixel;
385 #else
386 goto not_there;
387 #endif
388 if (strEQ(name, "CWBackPixmap"))
389 #ifdef CWBackPixmap
390 return CWBackPixmap;
391 #else
392 goto not_there;
393 #endif
394 if (strEQ(name, "CWBackingPixel"))
395 #ifdef CWBackingPixel
396 return CWBackingPixel;
397 #else
398 goto not_there;
399 #endif
400 if (strEQ(name, "CWBackingPlanes"))
401 #ifdef CWBackingPlanes
402 return CWBackingPlanes;
403 #else
404 goto not_there;
405 #endif
406 if (strEQ(name, "CWBackingStore"))
407 #ifdef CWBackingStore
408 return CWBackingStore;
409 #else
410 goto not_there;
411 #endif
412 if (strEQ(name, "CWBitGravity"))
413 #ifdef CWBitGravity
414 return CWBitGravity;
415 #else
416 goto not_there;
417 #endif
418 if (strEQ(name, "CWBorderPixel"))
419 #ifdef CWBorderPixel
420 return CWBorderPixel;
421 #else
422 goto not_there;
423 #endif
424 if (strEQ(name, "CWBorderPixmap"))
425 #ifdef CWBorderPixmap
426 return CWBorderPixmap;
427 #else
428 goto not_there;
429 #endif
430 if (strEQ(name, "CWBorderWidth"))
431 #ifdef CWBorderWidth
432 return CWBorderWidth;
433 #else
434 goto not_there;
435 #endif
436 if (strEQ(name, "CWColormap"))
437 #ifdef CWColormap
438 return CWColormap;
439 #else
440 goto not_there;
441 #endif
442 if (strEQ(name, "CWCursor"))
443 #ifdef CWCursor
444 return CWCursor;
445 #else
446 goto not_there;
447 #endif
448 if (strEQ(name, "CWDontPropagate"))
449 #ifdef CWDontPropagate
450 return CWDontPropagate;
451 #else
452 goto not_there;
453 #endif
454 if (strEQ(name, "CWEventMask"))
455 #ifdef CWEventMask
456 return CWEventMask;
457 #else
458 goto not_there;
459 #endif
460 if (strEQ(name, "CWHeight"))
461 #ifdef CWHeight
462 return CWHeight;
463 #else
464 goto not_there;
465 #endif
466 if (strEQ(name, "CWOverrideRedirect"))
467 #ifdef CWOverrideRedirect
468 return CWOverrideRedirect;
469 #else
470 goto not_there;
471 #endif
472 if (strEQ(name, "CWSaveUnder"))
473 #ifdef CWSaveUnder
474 return CWSaveUnder;
475 #else
476 goto not_there;
477 #endif
478 if (strEQ(name, "CWSibling"))
479 #ifdef CWSibling
480 return CWSibling;
481 #else
482 goto not_there;
483 #endif
484 if (strEQ(name, "CWStackMode"))
485 #ifdef CWStackMode
486 return CWStackMode;
487 #else
488 goto not_there;
489 #endif
490 if (strEQ(name, "CWWidth"))
491 #ifdef CWWidth
492 return CWWidth;
493 #else
494 goto not_there;
495 #endif
496 if (strEQ(name, "CWWinGravity"))
497 #ifdef CWWinGravity
498 return CWWinGravity;
499 #else
500 goto not_there;
501 #endif
502 if (strEQ(name, "CWX"))
503 #ifdef CWX
504 return CWX;
505 #else
506 goto not_there;
507 #endif
508 if (strEQ(name, "CWY"))
509 #ifdef CWY
510 return CWY;
511 #else
512 goto not_there;
513 #endif
514 if (strEQ(name, "CapButt"))
515 #ifdef CapButt
516 return CapButt;
517 #else
518 goto not_there;
519 #endif
520 if (strEQ(name, "CapNotLast"))
521 #ifdef CapNotLast
522 return CapNotLast;
523 #else
524 goto not_there;
525 #endif
526 if (strEQ(name, "CapProjecting"))
527 #ifdef CapProjecting
528 return CapProjecting;
529 #else
530 goto not_there;
531 #endif
532 if (strEQ(name, "CapRound"))
533 #ifdef CapRound
534 return CapRound;
535 #else
536 goto not_there;
537 #endif
538 if (strEQ(name, "CenterGravity"))
539 #ifdef CenterGravity
540 return CenterGravity;
541 #else
542 goto not_there;
543 #endif
544 if (strEQ(name, "CirculateNotify"))
545 #ifdef CirculateNotify
546 return CirculateNotify;
547 #else
548 goto not_there;
549 #endif
550 if (strEQ(name, "CirculateRequest"))
551 #ifdef CirculateRequest
552 return CirculateRequest;
553 #else
554 goto not_there;
555 #endif
556 if (strEQ(name, "ClientMessage"))
557 #ifdef ClientMessage
558 return ClientMessage;
559 #else
560 goto not_there;
561 #endif
562 if (strEQ(name, "ClipByChildren"))
563 #ifdef ClipByChildren
564 return ClipByChildren;
565 #else
566 goto not_there;
567 #endif
568 if (strEQ(name, "ColormapChangeMask"))
569 #ifdef ColormapChangeMask
570 return ColormapChangeMask;
571 #else
572 goto not_there;
573 #endif
574 if (strEQ(name, "ColormapInstalled"))
575 #ifdef ColormapInstalled
576 return ColormapInstalled;
577 #else
578 goto not_there;
579 #endif
580 if (strEQ(name, "ColormapNotify"))
581 #ifdef ColormapNotify
582 return ColormapNotify;
583 #else
584 goto not_there;
585 #endif
586 if (strEQ(name, "ColormapUninstalled"))
587 #ifdef ColormapUninstalled
588 return ColormapUninstalled;
589 #else
590 goto not_there;
591 #endif
592 if (strEQ(name, "Complex"))
593 #ifdef Complex
594 return Complex;
595 #else
596 goto not_there;
597 #endif
598 if (strEQ(name, "ConfigureNotify"))
599 #ifdef ConfigureNotify
600 return ConfigureNotify;
601 #else
602 goto not_there;
603 #endif
604 if (strEQ(name, "ConfigureRequest"))
605 #ifdef ConfigureRequest
606 return ConfigureRequest;
607 #else
608 goto not_there;
609 #endif
610 if (strEQ(name, "ControlMapIndex"))
611 #ifdef ControlMapIndex
612 return ControlMapIndex;
613 #else
614 goto not_there;
615 #endif
616 if (strEQ(name, "ControlMask"))
617 #ifdef ControlMask
618 return ControlMask;
619 #else
620 goto not_there;
621 #endif
622 if (strEQ(name, "Convex"))
623 #ifdef Convex
624 return Convex;
625 #else
626 goto not_there;
627 #endif
628 if (strEQ(name, "CoordModeOrigin"))
629 #ifdef CoordModeOrigin
630 return CoordModeOrigin;
631 #else
632 goto not_there;
633 #endif
634 if (strEQ(name, "CoordModePrevious"))
635 #ifdef CoordModePrevious
636 return CoordModePrevious;
637 #else
638 goto not_there;
639 #endif
640 if (strEQ(name, "CopyFromParent"))
641 #ifdef CopyFromParent
642 return CopyFromParent;
643 #else
644 goto not_there;
645 #endif
646 if (strEQ(name, "CreateNotify"))
647 #ifdef CreateNotify
648 return CreateNotify;
649 #else
650 goto not_there;
651 #endif
652 if (strEQ(name, "CurrentTime"))
653 #ifdef CurrentTime
654 return CurrentTime;
655 #else
656 goto not_there;
657 #endif
658 if (strEQ(name, "CursorShape"))
659 #ifdef CursorShape
660 return CursorShape;
661 #else
662 goto not_there;
663 #endif
664 break;
665 case 'D':
666 if (strEQ(name, "DefaultBlanking"))
667 #ifdef DefaultBlanking
668 return DefaultBlanking;
669 #else
670 goto not_there;
671 #endif
672 if (strEQ(name, "DefaultExposures"))
673 #ifdef DefaultExposures
674 return DefaultExposures;
675 #else
676 goto not_there;
677 #endif
678 if (strEQ(name, "DestroyAll"))
679 #ifdef DestroyAll
680 return DestroyAll;
681 #else
682 goto not_there;
683 #endif
684 if (strEQ(name, "DestroyNotify"))
685 #ifdef DestroyNotify
686 return DestroyNotify;
687 #else
688 goto not_there;
689 #endif
690 if (strEQ(name, "DirectColor"))
691 #ifdef DirectColor
692 return DirectColor;
693 #else
694 goto not_there;
695 #endif
696 if (strEQ(name, "DisableAccess"))
697 #ifdef DisableAccess
698 return DisableAccess;
699 #else
700 goto not_there;
701 #endif
702 if (strEQ(name, "DisableScreenInterval"))
703 #ifdef DisableScreenInterval
704 return DisableScreenInterval;
705 #else
706 goto not_there;
707 #endif
708 if (strEQ(name, "DisableScreenSaver"))
709 #ifdef DisableScreenSaver
710 return DisableScreenSaver;
711 #else
712 goto not_there;
713 #endif
714 if (strEQ(name, "DoBlue"))
715 #ifdef DoBlue
716 return DoBlue;
717 #else
718 goto not_there;
719 #endif
720 if (strEQ(name, "DoGreen"))
721 #ifdef DoGreen
722 return DoGreen;
723 #else
724 goto not_there;
725 #endif
726 if (strEQ(name, "DoRed"))
727 #ifdef DoRed
728 return DoRed;
729 #else
730 goto not_there;
731 #endif
732 if (strEQ(name, "DontAllowExposures"))
733 #ifdef DontAllowExposures
734 return DontAllowExposures;
735 #else
736 goto not_there;
737 #endif
738 if (strEQ(name, "DontPreferBlanking"))
739 #ifdef DontPreferBlanking
740 return DontPreferBlanking;
741 #else
742 goto not_there;
743 #endif
744 break;
745 case 'E':
746 if (strEQ(name, "EastGravity"))
747 #ifdef EastGravity
748 return EastGravity;
749 #else
750 goto not_there;
751 #endif
752 if (strEQ(name, "EnableAccess"))
753 #ifdef EnableAccess
754 return EnableAccess;
755 #else
756 goto not_there;
757 #endif
758 if (strEQ(name, "EnterNotify"))
759 #ifdef EnterNotify
760 return EnterNotify;
761 #else
762 goto not_there;
763 #endif
764 if (strEQ(name, "EnterWindowMask"))
765 #ifdef EnterWindowMask
766 return EnterWindowMask;
767 #else
768 goto not_there;
769 #endif
770 if (strEQ(name, "EvenOddRule"))
771 #ifdef EvenOddRule
772 return EvenOddRule;
773 #else
774 goto not_there;
775 #endif
776 if (strEQ(name, "Expose"))
777 #ifdef Expose
778 return Expose;
779 #else
780 goto not_there;
781 #endif
782 if (strEQ(name, "ExposureMask"))
783 #ifdef ExposureMask
784 return ExposureMask;
785 #else
786 goto not_there;
787 #endif
788 break;
789 case 'F':
790 if (strEQ(name, "FamilyChaos"))
791 #ifdef FamilyChaos
792 return FamilyChaos;
793 #else
794 goto not_there;
795 #endif
796 if (strEQ(name, "FamilyDECnet"))
797 #ifdef FamilyDECnet
798 return FamilyDECnet;
799 #else
800 goto not_there;
801 #endif
802 if (strEQ(name, "FamilyInternet"))
803 #ifdef FamilyInternet
804 return FamilyInternet;
805 #else
806 goto not_there;
807 #endif
808 if (strEQ(name, "FillOpaqueStippled"))
809 #ifdef FillOpaqueStippled
810 return FillOpaqueStippled;
811 #else
812 goto not_there;
813 #endif
814 if (strEQ(name, "FillSolid"))
815 #ifdef FillSolid
816 return FillSolid;
817 #else
818 goto not_there;
819 #endif
820 if (strEQ(name, "FillStippled"))
821 #ifdef FillStippled
822 return FillStippled;
823 #else
824 goto not_there;
825 #endif
826 if (strEQ(name, "FillTiled"))
827 #ifdef FillTiled
828 return FillTiled;
829 #else
830 goto not_there;
831 #endif
832 if (strEQ(name, "FirstExtensionError"))
833 #ifdef FirstExtensionError
834 return FirstExtensionError;
835 #else
836 goto not_there;
837 #endif
838 if (strEQ(name, "FocusChangeMask"))
839 #ifdef FocusChangeMask
840 return FocusChangeMask;
841 #else
842 goto not_there;
843 #endif
844 if (strEQ(name, "FocusIn"))
845 #ifdef FocusIn
846 return FocusIn;
847 #else
848 goto not_there;
849 #endif
850 if (strEQ(name, "FocusOut"))
851 #ifdef FocusOut
852 return FocusOut;
853 #else
854 goto not_there;
855 #endif
856 if (strEQ(name, "FontChange"))
857 #ifdef FontChange
858 return FontChange;
859 #else
860 goto not_there;
861 #endif
862 if (strEQ(name, "FontLeftToRight"))
863 #ifdef FontLeftToRight
864 return FontLeftToRight;
865 #else
866 goto not_there;
867 #endif
868 if (strEQ(name, "FontRightToLeft"))
869 #ifdef FontRightToLeft
870 return FontRightToLeft;
871 #else
872 goto not_there;
873 #endif
874 if (strEQ(name, "ForgetGravity"))
875 #ifdef ForgetGravity
876 return ForgetGravity;
877 #else
878 goto not_there;
879 #endif
880 break;
881 case 'G':
882 if (strEQ(name, "GCArcMode"))
883 #ifdef GCArcMode
884 return GCArcMode;
885 #else
886 goto not_there;
887 #endif
888 if (strEQ(name, "GCBackground"))
889 #ifdef GCBackground
890 return GCBackground;
891 #else
892 goto not_there;
893 #endif
894 if (strEQ(name, "GCCapStyle"))
895 #ifdef GCCapStyle
896 return GCCapStyle;
897 #else
898 goto not_there;
899 #endif
900 if (strEQ(name, "GCClipMask"))
901 #ifdef GCClipMask
902 return GCClipMask;
903 #else
904 goto not_there;
905 #endif
906 if (strEQ(name, "GCClipXOrigin"))
907 #ifdef GCClipXOrigin
908 return GCClipXOrigin;
909 #else
910 goto not_there;
911 #endif
912 if (strEQ(name, "GCClipYOrigin"))
913 #ifdef GCClipYOrigin
914 return GCClipYOrigin;
915 #else
916 goto not_there;
917 #endif
918 if (strEQ(name, "GCDashList"))
919 #ifdef GCDashList
920 return GCDashList;
921 #else
922 goto not_there;
923 #endif
924 if (strEQ(name, "GCDashOffset"))
925 #ifdef GCDashOffset
926 return GCDashOffset;
927 #else
928 goto not_there;
929 #endif
930 if (strEQ(name, "GCFillRule"))
931 #ifdef GCFillRule
932 return GCFillRule;
933 #else
934 goto not_there;
935 #endif
936 if (strEQ(name, "GCFillStyle"))
937 #ifdef GCFillStyle
938 return GCFillStyle;
939 #else
940 goto not_there;
941 #endif
942 if (strEQ(name, "GCFont"))
943 #ifdef GCFont
944 return GCFont;
945 #else
946 goto not_there;
947 #endif
948 if (strEQ(name, "GCForeground"))
949 #ifdef GCForeground
950 return GCForeground;
951 #else
952 goto not_there;
953 #endif
954 if (strEQ(name, "GCFunction"))
955 #ifdef GCFunction
956 return GCFunction;
957 #else
958 goto not_there;
959 #endif
960 if (strEQ(name, "GCGraphicsExposures"))
961 #ifdef GCGraphicsExposures
962 return GCGraphicsExposures;
963 #else
964 goto not_there;
965 #endif
966 if (strEQ(name, "GCJoinStyle"))
967 #ifdef GCJoinStyle
968 return GCJoinStyle;
969 #else
970 goto not_there;
971 #endif
972 if (strEQ(name, "GCLastBit"))
973 #ifdef GCLastBit
974 return GCLastBit;
975 #else
976 goto not_there;
977 #endif
978 if (strEQ(name, "GCLineStyle"))
979 #ifdef GCLineStyle
980 return GCLineStyle;
981 #else
982 goto not_there;
983 #endif
984 if (strEQ(name, "GCLineWidth"))
985 #ifdef GCLineWidth
986 return GCLineWidth;
987 #else
988 goto not_there;
989 #endif
990 if (strEQ(name, "GCPlaneMask"))
991 #ifdef GCPlaneMask
992 return GCPlaneMask;
993 #else
994 goto not_there;
995 #endif
996 if (strEQ(name, "GCStipple"))
997 #ifdef GCStipple
998 return GCStipple;
999 #else
1000 goto not_there;
1001 #endif
1002 if (strEQ(name, "GCSubwindowMode"))
1003 #ifdef GCSubwindowMode
1004 return GCSubwindowMode;
1005 #else
1006 goto not_there;
1007 #endif
1008 if (strEQ(name, "GCTile"))
1009 #ifdef GCTile
1010 return GCTile;
1011 #else
1012 goto not_there;
1013 #endif
1014 if (strEQ(name, "GCTileStipXOrigin"))
1015 #ifdef GCTileStipXOrigin
1016 return GCTileStipXOrigin;
1017 #else
1018 goto not_there;
1019 #endif
1020 if (strEQ(name, "GCTileStipYOrigin"))
1021 #ifdef GCTileStipYOrigin
1022 return GCTileStipYOrigin;
1023 #else
1024 goto not_there;
1025 #endif
1026 if (strEQ(name, "GXand"))
1027 #ifdef GXand
1028 return GXand;
1029 #else
1030 goto not_there;
1031 #endif
1032 if (strEQ(name, "GXandInverted"))
1033 #ifdef GXandInverted
1034 return GXandInverted;
1035 #else
1036 goto not_there;
1037 #endif
1038 if (strEQ(name, "GXandReverse"))
1039 #ifdef GXandReverse
1040 return GXandReverse;
1041 #else
1042 goto not_there;
1043 #endif
1044 if (strEQ(name, "GXclear"))
1045 #ifdef GXclear
1046 return GXclear;
1047 #else
1048 goto not_there;
1049 #endif
1050 if (strEQ(name, "GXcopy"))
1051 #ifdef GXcopy
1052 return GXcopy;
1053 #else
1054 goto not_there;
1055 #endif
1056 if (strEQ(name, "GXcopyInverted"))
1057 #ifdef GXcopyInverted
1058 return GXcopyInverted;
1059 #else
1060 goto not_there;
1061 #endif
1062 if (strEQ(name, "GXequiv"))
1063 #ifdef GXequiv
1064 return GXequiv;
1065 #else
1066 goto not_there;
1067 #endif
1068 if (strEQ(name, "GXinvert"))
1069 #ifdef GXinvert
1070 return GXinvert;
1071 #else
1072 goto not_there;
1073 #endif
1074 if (strEQ(name, "GXnand"))
1075 #ifdef GXnand
1076 return GXnand;
1077 #else
1078 goto not_there;
1079 #endif
1080 if (strEQ(name, "GXnoop"))
1081 #ifdef GXnoop
1082 return GXnoop;
1083 #else
1084 goto not_there;
1085 #endif
1086 if (strEQ(name, "GXnor"))
1087 #ifdef GXnor
1088 return GXnor;
1089 #else
1090 goto not_there;
1091 #endif
1092 if (strEQ(name, "GXor"))
1093 #ifdef GXor
1094 return GXor;
1095 #else
1096 goto not_there;
1097 #endif
1098 if (strEQ(name, "GXorInverted"))
1099 #ifdef GXorInverted
1100 return GXorInverted;
1101 #else
1102 goto not_there;
1103 #endif
1104 if (strEQ(name, "GXorReverse"))
1105 #ifdef GXorReverse
1106 return GXorReverse;
1107 #else
1108 goto not_there;
1109 #endif
1110 if (strEQ(name, "GXset"))
1111 #ifdef GXset
1112 return GXset;
1113 #else
1114 goto not_there;
1115 #endif
1116 if (strEQ(name, "GXxor"))
1117 #ifdef GXxor
1118 return GXxor;
1119 #else
1120 goto not_there;
1121 #endif
1122 if (strEQ(name, "GrabFrozen"))
1123 #ifdef GrabFrozen
1124 return GrabFrozen;
1125 #else
1126 goto not_there;
1127 #endif
1128 if (strEQ(name, "GrabInvalidTime"))
1129 #ifdef GrabInvalidTime
1130 return GrabInvalidTime;
1131 #else
1132 goto not_there;
1133 #endif
1134 if (strEQ(name, "GrabModeAsync"))
1135 #ifdef GrabModeAsync
1136 return GrabModeAsync;
1137 #else
1138 goto not_there;
1139 #endif
1140 if (strEQ(name, "GrabModeSync"))
1141 #ifdef GrabModeSync
1142 return GrabModeSync;
1143 #else
1144 goto not_there;
1145 #endif
1146 if (strEQ(name, "GrabNotViewable"))
1147 #ifdef GrabNotViewable
1148 return GrabNotViewable;
1149 #else
1150 goto not_there;
1151 #endif
1152 if (strEQ(name, "GrabSuccess"))
1153 #ifdef GrabSuccess
1154 return GrabSuccess;
1155 #else
1156 goto not_there;
1157 #endif
1158 if (strEQ(name, "GraphicsExpose"))
1159 #ifdef GraphicsExpose
1160 return GraphicsExpose;
1161 #else
1162 goto not_there;
1163 #endif
1164 if (strEQ(name, "GravityNotify"))
1165 #ifdef GravityNotify
1166 return GravityNotify;
1167 #else
1168 goto not_there;
1169 #endif
1170 if (strEQ(name, "GrayScale"))
1171 #ifdef GrayScale
1172 return GrayScale;
1173 #else
1174 goto not_there;
1175 #endif
1176 break;
1177 case 'H':
1178 if (strEQ(name, "HostDelete"))
1179 #ifdef HostDelete
1180 return HostDelete;
1181 #else
1182 goto not_there;
1183 #endif
1184 if (strEQ(name, "HostInsert"))
1185 #ifdef HostInsert
1186 return HostInsert;
1187 #else
1188 goto not_there;
1189 #endif
1190 break;
1191 case 'I':
1192 if (strEQ(name, "IncludeInferiors"))
1193 #ifdef IncludeInferiors
1194 return IncludeInferiors;
1195 #else
1196 goto not_there;
1197 #endif
1198 if (strEQ(name, "InputFocus"))
1199 #ifdef InputFocus
1200 return InputFocus;
1201 #else
1202 goto not_there;
1203 #endif
1204 if (strEQ(name, "InputOnly"))
1205 #ifdef InputOnly
1206 return InputOnly;
1207 #else
1208 goto not_there;
1209 #endif
1210 if (strEQ(name, "InputOutput"))
1211 #ifdef InputOutput
1212 return InputOutput;
1213 #else
1214 goto not_there;
1215 #endif
1216 if (strEQ(name, "IsUnmapped"))
1217 #ifdef IsUnmapped
1218 return IsUnmapped;
1219 #else
1220 goto not_there;
1221 #endif
1222 if (strEQ(name, "IsUnviewable"))
1223 #ifdef IsUnviewable
1224 return IsUnviewable;
1225 #else
1226 goto not_there;
1227 #endif
1228 if (strEQ(name, "IsViewable"))
1229 #ifdef IsViewable
1230 return IsViewable;
1231 #else
1232 goto not_there;
1233 #endif
1234 break;
1235 case 'J':
1236 if (strEQ(name, "JoinBevel"))
1237 #ifdef JoinBevel
1238 return JoinBevel;
1239 #else
1240 goto not_there;
1241 #endif
1242 if (strEQ(name, "JoinMiter"))
1243 #ifdef JoinMiter
1244 return JoinMiter;
1245 #else
1246 goto not_there;
1247 #endif
1248 if (strEQ(name, "JoinRound"))
1249 #ifdef JoinRound
1250 return JoinRound;
1251 #else
1252 goto not_there;
1253 #endif
1254 break;
1255 case 'K':
1256 if (strEQ(name, "KBAutoRepeatMode"))
1257 #ifdef KBAutoRepeatMode
1258 return KBAutoRepeatMode;
1259 #else
1260 goto not_there;
1261 #endif
1262 if (strEQ(name, "KBBellDuration"))
1263 #ifdef KBBellDuration
1264 return KBBellDuration;
1265 #else
1266 goto not_there;
1267 #endif
1268 if (strEQ(name, "KBBellPercent"))
1269 #ifdef KBBellPercent
1270 return KBBellPercent;
1271 #else
1272 goto not_there;
1273 #endif
1274 if (strEQ(name, "KBBellPitch"))
1275 #ifdef KBBellPitch
1276 return KBBellPitch;
1277 #else
1278 goto not_there;
1279 #endif
1280 if (strEQ(name, "KBKey"))
1281 #ifdef KBKey
1282 return KBKey;
1283 #else
1284 goto not_there;
1285 #endif
1286 if (strEQ(name, "KBKeyClickPercent"))
1287 #ifdef KBKeyClickPercent
1288 return KBKeyClickPercent;
1289 #else
1290 goto not_there;
1291 #endif
1292 if (strEQ(name, "KBLed"))
1293 #ifdef KBLed
1294 return KBLed;
1295 #else
1296 goto not_there;
1297 #endif
1298 if (strEQ(name, "KBLedMode"))
1299 #ifdef KBLedMode
1300 return KBLedMode;
1301 #else
1302 goto not_there;
1303 #endif
1304 if (strEQ(name, "KeyPress"))
1305 #ifdef KeyPress
1306 return KeyPress;
1307 #else
1308 goto not_there;
1309 #endif
1310 if (strEQ(name, "KeyPressMask"))
1311 #ifdef KeyPressMask
1312 return KeyPressMask;
1313 #else
1314 goto not_there;
1315 #endif
1316 if (strEQ(name, "KeyRelease"))
1317 #ifdef KeyRelease
1318 return KeyRelease;
1319 #else
1320 goto not_there;
1321 #endif
1322 if (strEQ(name, "KeyReleaseMask"))
1323 #ifdef KeyReleaseMask
1324 return KeyReleaseMask;
1325 #else
1326 goto not_there;
1327 #endif
1328 if (strEQ(name, "KeymapNotify"))
1329 #ifdef KeymapNotify
1330 return KeymapNotify;
1331 #else
1332 goto not_there;
1333 #endif
1334 if (strEQ(name, "KeymapStateMask"))
1335 #ifdef KeymapStateMask
1336 return KeymapStateMask;
1337 #else
1338 goto not_there;
1339 #endif
1340 break;
1341 case 'L':
1342 if (strEQ(name, "LASTEvent"))
1343 #ifdef LASTEvent
1344 return LASTEvent;
1345 #else
1346 goto not_there;
1347 #endif
1348 if (strEQ(name, "LSBFirst"))
1349 #ifdef LSBFirst
1350 return LSBFirst;
1351 #else
1352 goto not_there;
1353 #endif
1354 if (strEQ(name, "LastExtensionError"))
1355 #ifdef LastExtensionError
1356 return LastExtensionError;
1357 #else
1358 goto not_there;
1359 #endif
1360 if (strEQ(name, "LeaveNotify"))
1361 #ifdef LeaveNotify
1362 return LeaveNotify;
1363 #else
1364 goto not_there;
1365 #endif
1366 if (strEQ(name, "LeaveWindowMask"))
1367 #ifdef LeaveWindowMask
1368 return LeaveWindowMask;
1369 #else
1370 goto not_there;
1371 #endif
1372 if (strEQ(name, "LedModeOff"))
1373 #ifdef LedModeOff
1374 return LedModeOff;
1375 #else
1376 goto not_there;
1377 #endif
1378 if (strEQ(name, "LedModeOn"))
1379 #ifdef LedModeOn
1380 return LedModeOn;
1381 #else
1382 goto not_there;
1383 #endif
1384 if (strEQ(name, "LineDoubleDash"))
1385 #ifdef LineDoubleDash
1386 return LineDoubleDash;
1387 #else
1388 goto not_there;
1389 #endif
1390 if (strEQ(name, "LineOnOffDash"))
1391 #ifdef LineOnOffDash
1392 return LineOnOffDash;
1393 #else
1394 goto not_there;
1395 #endif
1396 if (strEQ(name, "LineSolid"))
1397 #ifdef LineSolid
1398 return LineSolid;
1399 #else
1400 goto not_there;
1401 #endif
1402 if (strEQ(name, "LockMapIndex"))
1403 #ifdef LockMapIndex
1404 return LockMapIndex;
1405 #else
1406 goto not_there;
1407 #endif
1408 if (strEQ(name, "LockMask"))
1409 #ifdef LockMask
1410 return LockMask;
1411 #else
1412 goto not_there;
1413 #endif
1414 if (strEQ(name, "LowerHighest"))
1415 #ifdef LowerHighest
1416 return LowerHighest;
1417 #else
1418 goto not_there;
1419 #endif
1420 break;
1421 case 'M':
1422 if (strEQ(name, "MSBFirst"))
1423 #ifdef MSBFirst
1424 return MSBFirst;
1425 #else
1426 goto not_there;
1427 #endif
1428 if (strEQ(name, "MapNotify"))
1429 #ifdef MapNotify
1430 return MapNotify;
1431 #else
1432 goto not_there;
1433 #endif
1434 if (strEQ(name, "MapRequest"))
1435 #ifdef MapRequest
1436 return MapRequest;
1437 #else
1438 goto not_there;
1439 #endif
1440 if (strEQ(name, "MappingBusy"))
1441 #ifdef MappingBusy
1442 return MappingBusy;
1443 #else
1444 goto not_there;
1445 #endif
1446 if (strEQ(name, "MappingFailed"))
1447 #ifdef MappingFailed
1448 return MappingFailed;
1449 #else
1450 goto not_there;
1451 #endif
1452 if (strEQ(name, "MappingKeyboard"))
1453 #ifdef MappingKeyboard
1454 return MappingKeyboard;
1455 #else
1456 goto not_there;
1457 #endif
1458 if (strEQ(name, "MappingModifier"))
1459 #ifdef MappingModifier
1460 return MappingModifier;
1461 #else
1462 goto not_there;
1463 #endif
1464 if (strEQ(name, "MappingNotify"))
1465 #ifdef MappingNotify
1466 return MappingNotify;
1467 #else
1468 goto not_there;
1469 #endif
1470 if (strEQ(name, "MappingPointer"))
1471 #ifdef MappingPointer
1472 return MappingPointer;
1473 #else
1474 goto not_there;
1475 #endif
1476 if (strEQ(name, "MappingSuccess"))
1477 #ifdef MappingSuccess
1478 return MappingSuccess;
1479 #else
1480 goto not_there;
1481 #endif
1482 if (strEQ(name, "Mod1MapIndex"))
1483 #ifdef Mod1MapIndex
1484 return Mod1MapIndex;
1485 #else
1486 goto not_there;
1487 #endif
1488 if (strEQ(name, "Mod1Mask"))
1489 #ifdef Mod1Mask
1490 return Mod1Mask;
1491 #else
1492 goto not_there;
1493 #endif
1494 if (strEQ(name, "Mod2MapIndex"))
1495 #ifdef Mod2MapIndex
1496 return Mod2MapIndex;
1497 #else
1498 goto not_there;
1499 #endif
1500 if (strEQ(name, "Mod2Mask"))
1501 #ifdef Mod2Mask
1502 return Mod2Mask;
1503 #else
1504 goto not_there;
1505 #endif
1506 if (strEQ(name, "Mod3MapIndex"))
1507 #ifdef Mod3MapIndex
1508 return Mod3MapIndex;
1509 #else
1510 goto not_there;
1511 #endif
1512 if (strEQ(name, "Mod3Mask"))
1513 #ifdef Mod3Mask
1514 return Mod3Mask;
1515 #else
1516 goto not_there;
1517 #endif
1518 if (strEQ(name, "Mod4MapIndex"))
1519 #ifdef Mod4MapIndex
1520 return Mod4MapIndex;
1521 #else
1522 goto not_there;
1523 #endif
1524 if (strEQ(name, "Mod4Mask"))
1525 #ifdef Mod4Mask
1526 return Mod4Mask;
1527 #else
1528 goto not_there;
1529 #endif
1530 if (strEQ(name, "Mod5MapIndex"))
1531 #ifdef Mod5MapIndex
1532 return Mod5MapIndex;
1533 #else
1534 goto not_there;
1535 #endif
1536 if (strEQ(name, "Mod5Mask"))
1537 #ifdef Mod5Mask
1538 return Mod5Mask;
1539 #else
1540 goto not_there;
1541 #endif
1542 if (strEQ(name, "MotionNotify"))
1543 #ifdef MotionNotify
1544 return MotionNotify;
1545 #else
1546 goto not_there;
1547 #endif
1548 break;
1549 case 'N':
1550 if (strEQ(name, "NoEventMask"))
1551 #ifdef NoEventMask
1552 return NoEventMask;
1553 #else
1554 goto not_there;
1555 #endif
1556 if (strEQ(name, "NoExpose"))
1557 #ifdef NoExpose
1558 return NoExpose;
1559 #else
1560 goto not_there;
1561 #endif
1562 if (strEQ(name, "NoSymbol"))
1563 #ifdef NoSymbol
1564 return NoSymbol;
1565 #else
1566 goto not_there;
1567 #endif
1568 if (strEQ(name, "Nonconvex"))
1569 #ifdef Nonconvex
1570 return Nonconvex;
1571 #else
1572 goto not_there;
1573 #endif
1574 if (strEQ(name, "None"))
1575 #ifdef None
1576 return None;
1577 #else
1578 goto not_there;
1579 #endif
1580 if (strEQ(name, "NorthEastGravity"))
1581 #ifdef NorthEastGravity
1582 return NorthEastGravity;
1583 #else
1584 goto not_there;
1585 #endif
1586 if (strEQ(name, "NorthGravity"))
1587 #ifdef NorthGravity
1588 return NorthGravity;
1589 #else
1590 goto not_there;
1591 #endif
1592 if (strEQ(name, "NorthWestGravity"))
1593 #ifdef NorthWestGravity
1594 return NorthWestGravity;
1595 #else
1596 goto not_there;
1597 #endif
1598 if (strEQ(name, "NotUseful"))
1599 #ifdef NotUseful
1600 return NotUseful;
1601 #else
1602 goto not_there;
1603 #endif
1604 if (strEQ(name, "NotifyAncestor"))
1605 #ifdef NotifyAncestor
1606 return NotifyAncestor;
1607 #else
1608 goto not_there;
1609 #endif
1610 if (strEQ(name, "NotifyDetailNone"))
1611 #ifdef NotifyDetailNone
1612 return NotifyDetailNone;
1613 #else
1614 goto not_there;
1615 #endif
1616 if (strEQ(name, "NotifyGrab"))
1617 #ifdef NotifyGrab
1618 return NotifyGrab;
1619 #else
1620 goto not_there;
1621 #endif
1622 if (strEQ(name, "NotifyHint"))
1623 #ifdef NotifyHint
1624 return NotifyHint;
1625 #else
1626 goto not_there;
1627 #endif
1628 if (strEQ(name, "NotifyInferior"))
1629 #ifdef NotifyInferior
1630 return NotifyInferior;
1631 #else
1632 goto not_there;
1633 #endif
1634 if (strEQ(name, "NotifyNonlinear"))
1635 #ifdef NotifyNonlinear
1636 return NotifyNonlinear;
1637 #else
1638 goto not_there;
1639 #endif
1640 if (strEQ(name, "NotifyNonlinearVirtual"))
1641 #ifdef NotifyNonlinearVirtual
1642 return NotifyNonlinearVirtual;
1643 #else
1644 goto not_there;
1645 #endif
1646 if (strEQ(name, "NotifyNormal"))
1647 #ifdef NotifyNormal
1648 return NotifyNormal;
1649 #else
1650 goto not_there;
1651 #endif
1652 if (strEQ(name, "NotifyPointer"))
1653 #ifdef NotifyPointer
1654 return NotifyPointer;
1655 #else
1656 goto not_there;
1657 #endif
1658 if (strEQ(name, "NotifyPointerRoot"))
1659 #ifdef NotifyPointerRoot
1660 return NotifyPointerRoot;
1661 #else
1662 goto not_there;
1663 #endif
1664 if (strEQ(name, "NotifyUngrab"))
1665 #ifdef NotifyUngrab
1666 return NotifyUngrab;
1667 #else
1668 goto not_there;
1669 #endif
1670 if (strEQ(name, "NotifyVirtual"))
1671 #ifdef NotifyVirtual
1672 return NotifyVirtual;
1673 #else
1674 goto not_there;
1675 #endif
1676 if (strEQ(name, "NotifyWhileGrabbed"))
1677 #ifdef NotifyWhileGrabbed
1678 return NotifyWhileGrabbed;
1679 #else
1680 goto not_there;
1681 #endif
1682 break;
1683 case 'O':
1684 if (strEQ(name, "Opposite"))
1685 #ifdef Opposite
1686 return Opposite;
1687 #else
1688 goto not_there;
1689 #endif
1690 if (strEQ(name, "OwnerGrabButtonMask"))
1691 #ifdef OwnerGrabButtonMask
1692 return OwnerGrabButtonMask;
1693 #else
1694 goto not_there;
1695 #endif
1696 break;
1697 case 'P':
1698 if (strEQ(name, "ParentRelative"))
1699 #ifdef ParentRelative
1700 return ParentRelative;
1701 #else
1702 goto not_there;
1703 #endif
1704 if (strEQ(name, "PlaceOnBottom"))
1705 #ifdef PlaceOnBottom
1706 return PlaceOnBottom;
1707 #else
1708 goto not_there;
1709 #endif
1710 if (strEQ(name, "PlaceOnTop"))
1711 #ifdef PlaceOnTop
1712 return PlaceOnTop;
1713 #else
1714 goto not_there;
1715 #endif
1716 if (strEQ(name, "PointerMotionHintMask"))
1717 #ifdef PointerMotionHintMask
1718 return PointerMotionHintMask;
1719 #else
1720 goto not_there;
1721 #endif
1722 if (strEQ(name, "PointerMotionMask"))
1723 #ifdef PointerMotionMask
1724 return PointerMotionMask;
1725 #else
1726 goto not_there;
1727 #endif
1728 if (strEQ(name, "PointerRoot"))
1729 #ifdef PointerRoot
1730 return PointerRoot;
1731 #else
1732 goto not_there;
1733 #endif
1734 if (strEQ(name, "PointerWindow"))
1735 #ifdef PointerWindow
1736 return PointerWindow;
1737 #else
1738 goto not_there;
1739 #endif
1740 if (strEQ(name, "PreferBlanking"))
1741 #ifdef PreferBlanking
1742 return PreferBlanking;
1743 #else
1744 goto not_there;
1745 #endif
1746 if (strEQ(name, "PropModeAppend"))
1747 #ifdef PropModeAppend
1748 return PropModeAppend;
1749 #else
1750 goto not_there;
1751 #endif
1752 if (strEQ(name, "PropModePrepend"))
1753 #ifdef PropModePrepend
1754 return PropModePrepend;
1755 #else
1756 goto not_there;
1757 #endif
1758 if (strEQ(name, "PropModeReplace"))
1759 #ifdef PropModeReplace
1760 return PropModeReplace;
1761 #else
1762 goto not_there;
1763 #endif
1764 if (strEQ(name, "PropertyChangeMask"))
1765 #ifdef PropertyChangeMask
1766 return PropertyChangeMask;
1767 #else
1768 goto not_there;
1769 #endif
1770 if (strEQ(name, "PropertyDelete"))
1771 #ifdef PropertyDelete
1772 return PropertyDelete;
1773 #else
1774 goto not_there;
1775 #endif
1776 if (strEQ(name, "PropertyNewValue"))
1777 #ifdef PropertyNewValue
1778 return PropertyNewValue;
1779 #else
1780 goto not_there;
1781 #endif
1782 if (strEQ(name, "PropertyNotify"))
1783 #ifdef PropertyNotify
1784 return PropertyNotify;
1785 #else
1786 goto not_there;
1787 #endif
1788 if (strEQ(name, "PseudoColor"))
1789 #ifdef PseudoColor
1790 return PseudoColor;
1791 #else
1792 goto not_there;
1793 #endif
1794 break;
1795 case 'Q':
1796 break;
1797 case 'R':
1798 if (strEQ(name, "RaiseLowest"))
1799 #ifdef RaiseLowest
1800 return RaiseLowest;
1801 #else
1802 goto not_there;
1803 #endif
1804 if (strEQ(name, "ReparentNotify"))
1805 #ifdef ReparentNotify
1806 return ReparentNotify;
1807 #else
1808 goto not_there;
1809 #endif
1810 if (strEQ(name, "ReplayKeyboard"))
1811 #ifdef ReplayKeyboard
1812 return ReplayKeyboard;
1813 #else
1814 goto not_there;
1815 #endif
1816 if (strEQ(name, "ReplayPointer"))
1817 #ifdef ReplayPointer
1818 return ReplayPointer;
1819 #else
1820 goto not_there;
1821 #endif
1822 if (strEQ(name, "ResizeRedirectMask"))
1823 #ifdef ResizeRedirectMask
1824 return ResizeRedirectMask;
1825 #else
1826 goto not_there;
1827 #endif
1828 if (strEQ(name, "ResizeRequest"))
1829 #ifdef ResizeRequest
1830 return ResizeRequest;
1831 #else
1832 goto not_there;
1833 #endif
1834 if (strEQ(name, "RetainPermanent"))
1835 #ifdef RetainPermanent
1836 return RetainPermanent;
1837 #else
1838 goto not_there;
1839 #endif
1840 if (strEQ(name, "RetainTemporary"))
1841 #ifdef RetainTemporary
1842 return RetainTemporary;
1843 #else
1844 goto not_there;
1845 #endif
1846 if (strEQ(name, "RevertToNone"))
1847 #ifdef RevertToNone
1848 return RevertToNone;
1849 #else
1850 goto not_there;
1851 #endif
1852 if (strEQ(name, "RevertToParent"))
1853 #ifdef RevertToParent
1854 return RevertToParent;
1855 #else
1856 goto not_there;
1857 #endif
1858 if (strEQ(name, "RevertToPointerRoot"))
1859 #ifdef RevertToPointerRoot
1860 return RevertToPointerRoot;
1861 #else
1862 goto not_there;
1863 #endif
1864 break;
1865 case 'S':
1866 if (strEQ(name, "ScreenSaverActive"))
1867 #ifdef ScreenSaverActive
1868 return ScreenSaverActive;
1869 #else
1870 goto not_there;
1871 #endif
1872 if (strEQ(name, "ScreenSaverReset"))
1873 #ifdef ScreenSaverReset
1874 return ScreenSaverReset;
1875 #else
1876 goto not_there;
1877 #endif
1878 if (strEQ(name, "SelectionClear"))
1879 #ifdef SelectionClear
1880 return SelectionClear;
1881 #else
1882 goto not_there;
1883 #endif
1884 if (strEQ(name, "SelectionNotify"))
1885 #ifdef SelectionNotify
1886 return SelectionNotify;
1887 #else
1888 goto not_there;
1889 #endif
1890 if (strEQ(name, "SelectionRequest"))
1891 #ifdef SelectionRequest
1892 return SelectionRequest;
1893 #else
1894 goto not_there;
1895 #endif
1896 if (strEQ(name, "SetModeDelete"))
1897 #ifdef SetModeDelete
1898 return SetModeDelete;
1899 #else
1900 goto not_there;
1901 #endif
1902 if (strEQ(name, "SetModeInsert"))
1903 #ifdef SetModeInsert
1904 return SetModeInsert;
1905 #else
1906 goto not_there;
1907 #endif
1908 if (strEQ(name, "ShiftMapIndex"))
1909 #ifdef ShiftMapIndex
1910 return ShiftMapIndex;
1911 #else
1912 goto not_there;
1913 #endif
1914 if (strEQ(name, "ShiftMask"))
1915 #ifdef ShiftMask
1916 return ShiftMask;
1917 #else
1918 goto not_there;
1919 #endif
1920 if (strEQ(name, "SouthEastGravity"))
1921 #ifdef SouthEastGravity
1922 return SouthEastGravity;
1923 #else
1924 goto not_there;
1925 #endif
1926 if (strEQ(name, "SouthGravity"))
1927 #ifdef SouthGravity
1928 return SouthGravity;
1929 #else
1930 goto not_there;
1931 #endif
1932 if (strEQ(name, "SouthWestGravity"))
1933 #ifdef SouthWestGravity
1934 return SouthWestGravity;
1935 #else
1936 goto not_there;
1937 #endif
1938 if (strEQ(name, "StaticColor"))
1939 #ifdef StaticColor
1940 return StaticColor;
1941 #else
1942 goto not_there;
1943 #endif
1944 if (strEQ(name, "StaticGravity"))
1945 #ifdef StaticGravity
1946 return StaticGravity;
1947 #else
1948 goto not_there;
1949 #endif
1950 if (strEQ(name, "StaticGray"))
1951 #ifdef StaticGray
1952 return StaticGray;
1953 #else
1954 goto not_there;
1955 #endif
1956 if (strEQ(name, "StippleShape"))
1957 #ifdef StippleShape
1958 return StippleShape;
1959 #else
1960 goto not_there;
1961 #endif
1962 if (strEQ(name, "StructureNotifyMask"))
1963 #ifdef StructureNotifyMask
1964 return StructureNotifyMask;
1965 #else
1966 goto not_there;
1967 #endif
1968 if (strEQ(name, "SubstructureNotifyMask"))
1969 #ifdef SubstructureNotifyMask
1970 return SubstructureNotifyMask;
1971 #else
1972 goto not_there;
1973 #endif
1974 if (strEQ(name, "SubstructureRedirectMask"))
1975 #ifdef SubstructureRedirectMask
1976 return SubstructureRedirectMask;
1977 #else
1978 goto not_there;
1979 #endif
1980 if (strEQ(name, "Success"))
1981 #ifdef Success
1982 return Success;
1983 #else
1984 goto not_there;
1985 #endif
1986 if (strEQ(name, "SyncBoth"))
1987 #ifdef SyncBoth
1988 return SyncBoth;
1989 #else
1990 goto not_there;
1991 #endif
1992 if (strEQ(name, "SyncKeyboard"))
1993 #ifdef SyncKeyboard
1994 return SyncKeyboard;
1995 #else
1996 goto not_there;
1997 #endif
1998 if (strEQ(name, "SyncPointer"))
1999 #ifdef SyncPointer
2000 return SyncPointer;
2001 #else
2002 goto not_there;
2003 #endif
2004 break;
2005 case 'T':
2006 if (strEQ(name, "TileShape"))
2007 #ifdef TileShape
2008 return TileShape;
2009 #else
2010 goto not_there;
2011 #endif
2012 if (strEQ(name, "TopIf"))
2013 #ifdef TopIf
2014 return TopIf;
2015 #else
2016 goto not_there;
2017 #endif
2018 if (strEQ(name, "TrueColor"))
2019 #ifdef TrueColor
2020 return TrueColor;
2021 #else
2022 goto not_there;
2023 #endif
2024 break;
2025 case 'U':
2026 if (strEQ(name, "UnmapGravity"))
2027 #ifdef UnmapGravity
2028 return UnmapGravity;
2029 #else
2030 goto not_there;
2031 #endif
2032 if (strEQ(name, "UnmapNotify"))
2033 #ifdef UnmapNotify
2034 return UnmapNotify;
2035 #else
2036 goto not_there;
2037 #endif
2038 if (strEQ(name, "Unsorted"))
2039 #ifdef Unsorted
2040 return Unsorted;
2041 #else
2042 goto not_there;
2043 #endif
2044 break;
2045 case 'V':
2046 if (strEQ(name, "VisibilityChangeMask"))
2047 #ifdef VisibilityChangeMask
2048 return VisibilityChangeMask;
2049 #else
2050 goto not_there;
2051 #endif
2052 if (strEQ(name, "VisibilityFullyObscured"))
2053 #ifdef VisibilityFullyObscured
2054 return VisibilityFullyObscured;
2055 #else
2056 goto not_there;
2057 #endif
2058 if (strEQ(name, "VisibilityNotify"))
2059 #ifdef VisibilityNotify
2060 return VisibilityNotify;
2061 #else
2062 goto not_there;
2063 #endif
2064 if (strEQ(name, "VisibilityPartiallyObscured"))
2065 #ifdef VisibilityPartiallyObscured
2066 return VisibilityPartiallyObscured;
2067 #else
2068 goto not_there;
2069 #endif
2070 if (strEQ(name, "VisibilityUnobscured"))
2071 #ifdef VisibilityUnobscured
2072 return VisibilityUnobscured;
2073 #else
2074 goto not_there;
2075 #endif
2076 break;
2077 case 'W':
2078 if (strEQ(name, "WestGravity"))
2079 #ifdef WestGravity
2080 return WestGravity;
2081 #else
2082 goto not_there;
2083 #endif
2084 if (strEQ(name, "WhenMapped"))
2085 #ifdef WhenMapped
2086 return WhenMapped;
2087 #else
2088 goto not_there;
2089 #endif
2090 if (strEQ(name, "WindingRule"))
2091 #ifdef WindingRule
2092 return WindingRule;
2093 #else
2094 goto not_there;
2095 #endif
2096 break;
2097 case 'X':
2098 if (strEQ(name, "XYBitmap"))
2099 #ifdef XYBitmap
2100 return XYBitmap;
2101 #else
2102 goto not_there;
2103 #endif
2104 if (strEQ(name, "XYPixmap"))
2105 #ifdef XYPixmap
2106 return XYPixmap;
2107 #else
2108 goto not_there;
2109 #endif
2110 if (strEQ(name, "X_PROTOCOL"))
2111 #ifdef X_PROTOCOL
2112 return X_PROTOCOL;
2113 #else
2114 goto not_there;
2115 #endif
2116 if (strEQ(name, "X_PROTOCOL_REVISION"))
2117 #ifdef X_PROTOCOL_REVISION
2118 return X_PROTOCOL_REVISION;
2119 #else
2120 goto not_there;
2121 #endif
2122 break;
2123 case 'Y':
2124 if (strEQ(name, "YSorted"))
2125 #ifdef YSorted
2126 return YSorted;
2127 #else
2128 goto not_there;
2129 #endif
2130 if (strEQ(name, "YXBanded"))
2131 #ifdef YXBanded
2132 return YXBanded;
2133 #else
2134 goto not_there;
2135 #endif
2136 if (strEQ(name, "YXSorted"))
2137 #ifdef YXSorted
2138 return YXSorted;
2139 #else
2140 goto not_there;
2141 #endif
2142 break;
2143 case 'Z':
2144 if (strEQ(name, "ZPixmap"))
2145 #ifdef ZPixmap
2146 return ZPixmap;
2147 #else
2148 goto not_there;
2149 #endif
2150 break;
2151 }
2152 errno = EINVAL;
2153 return 0;
2154
2155 not_there:
2156 errno = ENOENT;
2157 return 0;
2158 }
2159
2160
2161 MODULE = Tk::X PACKAGE = Tk::X
2162
2163 PROTOTYPES: ENABLE
2164
2165 double
2166 constant(name,arg)
2167 char * name
2168 int arg
2169