File Coverage

blib/lib/X11/AtomConstants.pm
Criterion Covered Total %
statement 217 217 100.0
branch n/a
condition n/a
subroutine 73 73 100.0
pod n/a
total 290 290 100.0


line stmt bran cond sub pod time code
1             # Copyright 2011, 2012, 2013, 2014, 2017 Kevin Ryde
2              
3             # This file is part of X11-Protocol-Other.
4             #
5             # X11-Protocol-Other is free software; you can redistribute it and/or modify
6             # it under the terms of the GNU General Public License as published by the
7             # Free Software Foundation; either version 3, or (at your option) any later
8             # version.
9             #
10             # X11-Protocol-Other is distributed in the hope that it will be useful, but
11             # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12             # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13             # for more details.
14             #
15             # You should have received a copy of the GNU General Public License along
16             # with X11-Protocol-Other. If not, see .
17              
18 10     10   20724 BEGIN { require 5 }
19             package X11::AtomConstants;
20 10     10   58 use strict;
  10         30  
  10         195  
21 10     10   49 use Exporter;
  10         18  
  10         366  
22 10     10   54 use vars '$VERSION', '@ISA', '@EXPORT_OK', '%EXPORT_TAGS';
  10         19  
  10         1667  
23              
24             $VERSION = 31;
25             @ISA = ('Exporter');
26             %EXPORT_TAGS = (all => \@EXPORT_OK);
27              
28             # List generated by
29             # (shell-command "perl -n -e '/define XA_([^ ]*).*?([0-9]+)/ and print \" $1\n\"'
30              
31             @EXPORT_OK =
32             (qw(
33             PRIMARY
34             SECONDARY
35             ARC
36             ATOM
37             BITMAP
38             CARDINAL
39             COLORMAP
40             CURSOR
41             CUT_BUFFER0
42             CUT_BUFFER1
43             CUT_BUFFER2
44             CUT_BUFFER3
45             CUT_BUFFER4
46             CUT_BUFFER5
47             CUT_BUFFER6
48             CUT_BUFFER7
49             DRAWABLE
50             FONT
51             INTEGER
52             PIXMAP
53             POINT
54             RECTANGLE
55             RESOURCE_MANAGER
56             RGB_COLOR_MAP
57             RGB_BEST_MAP
58             RGB_BLUE_MAP
59             RGB_DEFAULT_MAP
60             RGB_GRAY_MAP
61             RGB_GREEN_MAP
62             RGB_RED_MAP
63             STRING
64             VISUALID
65             WINDOW
66             WM_COMMAND
67             WM_HINTS
68             WM_CLIENT_MACHINE
69             WM_ICON_NAME
70             WM_ICON_SIZE
71             WM_NAME
72             WM_NORMAL_HINTS
73             WM_SIZE_HINTS
74             WM_ZOOM_HINTS
75             MIN_SPACE
76             NORM_SPACE
77             MAX_SPACE
78             END_SPACE
79             SUPERSCRIPT_X
80             SUPERSCRIPT_Y
81             SUBSCRIPT_X
82             SUBSCRIPT_Y
83             UNDERLINE_POSITION
84             UNDERLINE_THICKNESS
85             STRIKEOUT_ASCENT
86             STRIKEOUT_DESCENT
87             ITALIC_ANGLE
88             X_HEIGHT
89             QUAD_WIDTH
90             WEIGHT
91             POINT_SIZE
92             RESOLUTION
93             COPYRIGHT
94             NOTICE
95             FONT_NAME
96             FAMILY_NAME
97             FULL_NAME
98             CAP_HEIGHT
99             WM_CLASS
100             WM_TRANSIENT_FOR
101             LAST_PREDEFINED
102             ));
103              
104              
105             # List generated by
106             # (shell-command "perl -n -e '/define XA_([^ ]*).*?([0-9]+)/ and print \"use constant $1 => $2;\n\"'
107              
108 10     10   76 use constant PRIMARY => 1;
  10         21  
  10         1026  
109 10     10   70 use constant SECONDARY => 2;
  10         28  
  10         539  
110 10     10   64 use constant ARC => 3;
  10         18  
  10         592  
111 10     10   63 use constant ATOM => 4;
  10         20  
  10         590  
112 10     10   59 use constant BITMAP => 5;
  10         24  
  10         643  
113 10     10   65 use constant CARDINAL => 6;
  10         26  
  10         531  
114 10     10   63 use constant COLORMAP => 7;
  10         60  
  10         509  
115 10     10   70 use constant CURSOR => 8;
  10         20  
  10         486  
116 10     10   61 use constant CUT_BUFFER0 => 9;
  10         16  
  10         474  
117 10     10   75 use constant CUT_BUFFER1 => 10;
  10         19  
  10         504  
118 10     10   60 use constant CUT_BUFFER2 => 11;
  10         20  
  10         565  
119 10     10   58 use constant CUT_BUFFER3 => 12;
  10         20  
  10         517  
120 10     10   55 use constant CUT_BUFFER4 => 13;
  10         16  
  10         503  
121 10     10   63 use constant CUT_BUFFER5 => 14;
  10         25  
  10         455  
122 10     10   54 use constant CUT_BUFFER6 => 15;
  10         32  
  10         518  
123 10     10   98 use constant CUT_BUFFER7 => 16;
  10         20  
  10         498  
124 10     10   69 use constant DRAWABLE => 17;
  10         26  
  10         460  
125 10     10   58 use constant FONT => 18;
  10         36  
  10         533  
126 10     10   62 use constant INTEGER => 19;
  10         32  
  10         465  
127 10     10   62 use constant PIXMAP => 20;
  10         18  
  10         477  
128 10     10   65 use constant POINT => 21;
  10         17  
  10         425  
129 10     10   54 use constant RECTANGLE => 22;
  10         19  
  10         503  
130 10     10   59 use constant RESOURCE_MANAGER => 23;
  10         21  
  10         433  
131 10     10   54 use constant RGB_COLOR_MAP => 24;
  10         18  
  10         502  
132 10     10   70 use constant RGB_BEST_MAP => 25;
  10         17  
  10         483  
133 10     10   60 use constant RGB_BLUE_MAP => 26;
  10         31  
  10         459  
134 10     10   56 use constant RGB_DEFAULT_MAP => 27;
  10         21  
  10         501  
135 10     10   79 use constant RGB_GRAY_MAP => 28;
  10         20  
  10         475  
136 10     10   56 use constant RGB_GREEN_MAP => 29;
  10         20  
  10         466  
137 10     10   59 use constant RGB_RED_MAP => 30;
  10         19  
  10         508  
138 10     10   61 use constant STRING => 31;
  10         21  
  10         420  
139 10     10   1790 use constant VISUALID => 32;
  10         19  
  10         2180  
140 10     10   100 use constant WINDOW => 33;
  10         27  
  10         446  
141 10     10   67 use constant WM_COMMAND => 34;
  10         17  
  10         761  
142 10     10   55 use constant WM_HINTS => 35;
  10         19  
  10         441  
143 10     10   57 use constant WM_CLIENT_MACHINE => 36;
  10         32  
  10         423  
144 10     10   55 use constant WM_ICON_NAME => 37;
  10         19  
  10         443  
145 10     10   53 use constant WM_ICON_SIZE => 38;
  10         18  
  10         442  
146 10     10   56 use constant WM_NAME => 39;
  10         25  
  10         464  
147 10     10   57 use constant WM_NORMAL_HINTS => 40;
  10         18  
  10         482  
148 10     10   57 use constant WM_SIZE_HINTS => 41;
  10         28  
  10         467  
149 10     10   59 use constant WM_ZOOM_HINTS => 42;
  10         17  
  10         460  
150 10     10   54 use constant MIN_SPACE => 43;
  10         19  
  10         2108  
151 10     10   59 use constant NORM_SPACE => 44;
  10         22  
  10         472  
152 10     10   56 use constant MAX_SPACE => 45;
  10         16  
  10         461  
153 10     10   58 use constant END_SPACE => 46;
  10         53  
  10         439  
154 10     10   68 use constant SUPERSCRIPT_X => 47;
  10         22  
  10         466  
155 10     10   56 use constant SUPERSCRIPT_Y => 48;
  10         19  
  10         509  
156 10     10   58 use constant SUBSCRIPT_X => 49;
  10         54  
  10         451  
157 10     10   168 use constant SUBSCRIPT_Y => 50;
  10         26  
  10         477  
158 10     10   56 use constant UNDERLINE_POSITION => 51;
  10         25  
  10         436  
159 10     10   56 use constant UNDERLINE_THICKNESS => 52;
  10         42  
  10         483  
160 10     10   60 use constant STRIKEOUT_ASCENT => 53;
  10         18  
  10         2181  
161 10     10   61 use constant STRIKEOUT_DESCENT => 54;
  10         24  
  10         452  
162 10     10   66 use constant ITALIC_ANGLE => 55;
  10         18  
  10         494  
163 10     10   61 use constant X_HEIGHT => 56;
  10         18  
  10         506  
164 10     10   58 use constant QUAD_WIDTH => 57;
  10         17  
  10         539  
165 10     10   59 use constant WEIGHT => 58;
  10         17  
  10         529  
166 10     10   61 use constant POINT_SIZE => 59;
  10         50  
  10         494  
167 10     10   56 use constant RESOLUTION => 60;
  10         18  
  10         422  
168 10     10   68 use constant COPYRIGHT => 61;
  10         33  
  10         2183  
169 10     10   87 use constant NOTICE => 62;
  10         22  
  10         506  
170 10     10   68 use constant FONT_NAME => 63;
  10         20  
  10         418  
171 10     10   53 use constant FAMILY_NAME => 64;
  10         20  
  10         473  
172 10     10   55 use constant FULL_NAME => 65;
  10         20  
  10         478  
173 10     10   57 use constant CAP_HEIGHT => 66;
  10         26  
  10         450  
174 10     10   65 use constant WM_CLASS => 67;
  10         18  
  10         491  
175 10     10   58 use constant WM_TRANSIENT_FOR => 68;
  10         25  
  10         433  
176 10     10   54 use constant LAST_PREDEFINED => 68;
  10         15  
  10         597  
177              
178             1;
179             __END__