| 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 <http://www.gnu.org/licenses/>. | ||
| 17 | |||
| 18 | 10 | ▶ | BEGIN { require 5 } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | package X11::AtomConstants; | ||
| 20 | 10 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 10 | ▶ | use Exporter; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 10 | ▶ | use vars '$VERSION', '@ISA', '@EXPORT_OK', '%EXPORT_TAGS'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 10 | $VERSION = 31; | |
| 25 | 10 | @ISA = ('Exporter'); | |
| 26 | 10 | %EXPORT_TAGS = (all => \@EXPORT_OK); | |
| 27 | |||
| 28 | # List generated by | ||
| 29 | # (shell-command "perl -n -e '/define XA_([^ ]*).*?([0-9]+)/ and print \" $1\n\"' </usr/include/X11/Xatom.h" 'insert) | ||
| 30 | |||
| 31 | 10 | @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\"' </usr/include/X11/Xatom.h" 'insert) | ||
| 107 | |||
| 108 | 10 | ▶ | use constant PRIMARY => 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 109 | 10 | ▶ | use constant SECONDARY => 2; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 110 | 10 | ▶ | use constant ARC => 3; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 111 | 10 | ▶ | use constant ATOM => 4; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 112 | 10 | ▶ | use constant BITMAP => 5; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 113 | 10 | ▶ | use constant CARDINAL => 6; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 114 | 10 | ▶ | use constant COLORMAP => 7; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 115 | 10 | ▶ | use constant CURSOR => 8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 116 | 10 | ▶ | use constant CUT_BUFFER0 => 9; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 117 | 10 | ▶ | use constant CUT_BUFFER1 => 10; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 118 | 10 | ▶ | use constant CUT_BUFFER2 => 11; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 119 | 10 | ▶ | use constant CUT_BUFFER3 => 12; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 120 | 10 | ▶ | use constant CUT_BUFFER4 => 13; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 121 | 10 | ▶ | use constant CUT_BUFFER5 => 14; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 122 | 10 | ▶ | use constant CUT_BUFFER6 => 15; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 123 | 10 | ▶ | use constant CUT_BUFFER7 => 16; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 124 | 10 | ▶ | use constant DRAWABLE => 17; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 125 | 10 | ▶ | use constant FONT => 18; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 126 | 10 | ▶ | use constant INTEGER => 19; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 127 | 10 | ▶ | use constant PIXMAP => 20; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 128 | 10 | ▶ | use constant POINT => 21; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 129 | 10 | ▶ | use constant RECTANGLE => 22; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 130 | 10 | ▶ | use constant RESOURCE_MANAGER => 23; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 131 | 10 | ▶ | use constant RGB_COLOR_MAP => 24; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 132 | 10 | ▶ | use constant RGB_BEST_MAP => 25; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 133 | 10 | ▶ | use constant RGB_BLUE_MAP => 26; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 134 | 10 | ▶ | use constant RGB_DEFAULT_MAP => 27; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 135 | 10 | ▶ | use constant RGB_GRAY_MAP => 28; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 136 | 10 | ▶ | use constant RGB_GREEN_MAP => 29; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 137 | 10 | ▶ | use constant RGB_RED_MAP => 30; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 138 | 10 | ▶ | use constant STRING => 31; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 139 | 10 | ▶ | use constant VISUALID => 32; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 140 | 10 | ▶ | use constant WINDOW => 33; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 141 | 10 | ▶ | use constant WM_COMMAND => 34; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 142 | 10 | ▶ | use constant WM_HINTS => 35; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 143 | 10 | ▶ | use constant WM_CLIENT_MACHINE => 36; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 144 | 10 | ▶ | use constant WM_ICON_NAME => 37; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 145 | 10 | ▶ | use constant WM_ICON_SIZE => 38; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 146 | 10 | ▶ | use constant WM_NAME => 39; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 147 | 10 | ▶ | use constant WM_NORMAL_HINTS => 40; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 148 | 10 | ▶ | use constant WM_SIZE_HINTS => 41; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 149 | 10 | ▶ | use constant WM_ZOOM_HINTS => 42; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 150 | 10 | ▶ | use constant MIN_SPACE => 43; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 151 | 10 | ▶ | use constant NORM_SPACE => 44; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 152 | 10 | ▶ | use constant MAX_SPACE => 45; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 153 | 10 | ▶ | use constant END_SPACE => 46; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 154 | 10 | ▶ | use constant SUPERSCRIPT_X => 47; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 155 | 10 | ▶ | use constant SUPERSCRIPT_Y => 48; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 156 | 10 | ▶ | use constant SUBSCRIPT_X => 49; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 157 | 10 | ▶ | use constant SUBSCRIPT_Y => 50; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 158 | 10 | ▶ | use constant UNDERLINE_POSITION => 51; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 159 | 10 | ▶ | use constant UNDERLINE_THICKNESS => 52; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 160 | 10 | ▶ | use constant STRIKEOUT_ASCENT => 53; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 161 | 10 | ▶ | use constant STRIKEOUT_DESCENT => 54; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 162 | 10 | ▶ | use constant ITALIC_ANGLE => 55; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 163 | 10 | ▶ | use constant X_HEIGHT => 56; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 164 | 10 | ▶ | use constant QUAD_WIDTH => 57; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 165 | 10 | ▶ | use constant WEIGHT => 58; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 166 | 10 | ▶ | use constant POINT_SIZE => 59; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 167 | 10 | ▶ | use constant RESOLUTION => 60; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 168 | 10 | ▶ | use constant COPYRIGHT => 61; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 169 | 10 | ▶ | use constant NOTICE => 62; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 170 | 10 | ▶ | use constant FONT_NAME => 63; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 171 | 10 | ▶ | use constant FAMILY_NAME => 64; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 172 | 10 | ▶ | use constant FULL_NAME => 65; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 173 | 10 | ▶ | use constant CAP_HEIGHT => 66; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 174 | 10 | ▶ | use constant WM_CLASS => 67; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 175 | 10 | ▶ | use constant WM_TRANSIENT_FOR => 68; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 176 | 10 | ▶ | use constant LAST_PREDEFINED => 68; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 177 | |||
| 178 | 10 | 1; | |
| 179 | __END__ | ||