1X11::AtomConstants(3) User Contributed Perl DocumentationX11::AtomConstants(3)
2
3
4

NAME

6       X11::AtomConstants -- predefined X11 atoms
7

SYNOPSIS

9        use X11::AtomConstants;
10        $X->ChangeProperty($window,
11                           X11::AtomConstants::WM_NAME,  # property
12                           X11::AtomConstants::PIXMAP,   # type
13                           8,                            # format
14                           'Replace',
15                           'My Window Title');
16

DESCRIPTION

18       This is the X11 pre-defined atoms as Perl constants.  For example
19       "PIXMAP" is 20, the PIXMAP atom.
20
21           my $atom_id = X11::AtomConstants::PIXMAP;  # $atom_id is 20
22           my $name = $X->GetAtomName($atom_id);      # $name is "PIXMAP"
23
24       The "LAST_PREDEFINED" constant is not an atom as such, but the last of
25       the predefined values, which happens to be "WM_TRANSIENT_FOR".
26
27           Constant             Value
28
29           PRIMARY                1
30           SECONDARY              2
31           ARC                    3
32           ATOM                   4
33           BITMAP                 5
34           CARDINAL               6
35           COLORMAP               7
36           CURSOR                 8
37           CUT_BUFFER0            9
38           CUT_BUFFER1           10
39           CUT_BUFFER2           11
40           CUT_BUFFER3           12
41           CUT_BUFFER4           13
42           CUT_BUFFER5           14
43           CUT_BUFFER6           15
44           CUT_BUFFER7           16
45           DRAWABLE              17
46           FONT                  18
47           INTEGER               19
48           PIXMAP                20
49           POINT                 21
50           RECTANGLE             22
51           RESOURCE_MANAGER      23
52           RGB_COLOR_MAP         24
53           RGB_BEST_MAP          25
54           RGB_BLUE_MAP          26
55           RGB_DEFAULT_MAP       27
56           RGB_GRAY_MAP          28
57           RGB_GREEN_MAP         29
58           RGB_RED_MAP           30
59           STRING                31
60           VISUALID              32
61           WINDOW                33
62           WM_COMMAND            34
63           WM_HINTS              35
64           WM_CLIENT_MACHINE     36
65           WM_ICON_NAME          37
66           WM_ICON_SIZE          38
67           WM_NAME               39
68           WM_NORMAL_HINTS       40
69           WM_SIZE_HINTS         41
70           WM_ZOOM_HINTS         42
71           MIN_SPACE             43
72           NORM_SPACE            44
73           MAX_SPACE             45
74           END_SPACE             46
75           SUPERSCRIPT_X         47
76           SUPERSCRIPT_Y         48
77           SUBSCRIPT_X           49
78           SUBSCRIPT_Y           50
79           UNDERLINE_POSITION    51
80           UNDERLINE_THICKNESS   52
81           STRIKEOUT_ASCENT      53
82           STRIKEOUT_DESCENT     54
83           ITALIC_ANGLE          55
84           X_HEIGHT              56
85           QUAD_WIDTH            57
86           WEIGHT                58
87           POINT_SIZE            59
88           RESOLUTION            60
89           COPYRIGHT             61
90           NOTICE                62
91           FONT_NAME             63
92           FAMILY_NAME           64
93           FULL_NAME             65
94           CAP_HEIGHT            66
95           WM_CLASS              67
96           WM_TRANSIENT_FOR      68
97
98           LAST_PREDEFINED       68
99

EXPORTS

101       Nothing is exported by default, but the constants can be requested in
102       usual "Exporter" style,
103
104           use X11::AtomConstants 'PIXMAP';
105           blah (atom => PIXMAP);
106
107       The ":all" tag imports everything,
108
109           use X11::AtomConstants ':all';
110           blah (atom1 => POINT,
111                 atom2 => RECTANGLE);
112
113       Many atoms like "STRING" or "WEIGHT" have rather generic names and
114       importing them may be undesirable.  They can always be used with the
115       full package name,
116
117           use X11::AtomConstants;
118           blah (atom => X11::AtomConstants::PIXMAP);
119

SEE ALSO

121       X11::CursorFont, X11::Keysyms, X11::Protocol, X11::Protocol::Other,
122       X11::Protocol::WM
123
124       X Window System Protocol specification (values in Appendix B),
125       /usr/share/X11/doc/hardcopy/XProtocol/proto.PS.gz
126
127       /usr/include/X11/Xatom.h
128

HOME PAGE

130       <http://user42.tuxfamily.org/x11-protocol-other/index.html>
131

LICENSE

133       Copyright 2011, 2012, 2013, 2014, 2017 Kevin Ryde
134
135       X11-Protocol-Other is free software; you can redistribute it and/or
136       modify it under the terms of the GNU General Public License as
137       published by the Free Software Foundation; either version 3, or (at
138       your option) any later version.
139
140       X11-Protocol-Other is distributed in the hope that it will be useful,
141       but WITHOUT ANY WARRANTY; without even the implied warranty of
142       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
143       General Public License for more details.
144
145       You should have received a copy of the GNU General Public License along
146       with X11-Protocol-Other.  If not, see <http://www.gnu.org/licenses/>.
147
148
149
150perl v5.36.0                      2022-07-22             X11::AtomConstants(3)
Impressum