NAME
X11::AtomConstants -- predefined X11 atoms
SYNOPSIS
use X11::AtomConstants;$X->ChangeProperty($window,X11::AtomConstants::WM_NAME, # propertyX11::AtomConstants::PIXMAP, # type8, # format'Replace','My Window Title');
DESCRIPTION
This is the X11 pre-defined atoms as Perl constants. For example "PIXMAP" is 20, the PIXMAP atom.
my $atom_id = X11::AtomConstants::PIXMAP; # $atom_id is 20my $name = $X->GetAtomName($atom_id); # $name is "PIXMAP"
The "LAST_PREDEFINED" constant is not an atom as such, but the last of the predefined values, which happens to be "WM_TRANSIENT_FOR".
Constant ValuePRIMARY 1SECONDARY 2ARC 3ATOM 4BITMAP 5CARDINAL 6COLORMAP 7CURSOR 8CUT_BUFFER0 9CUT_BUFFER1 10CUT_BUFFER2 11CUT_BUFFER3 12CUT_BUFFER4 13CUT_BUFFER5 14CUT_BUFFER6 15CUT_BUFFER7 16DRAWABLE 17FONT 18INTEGER 19PIXMAP 20POINT 21RECTANGLE 22RESOURCE_MANAGER 23RGB_COLOR_MAP 24RGB_BEST_MAP 25RGB_BLUE_MAP 26RGB_DEFAULT_MAP 27RGB_GRAY_MAP 28RGB_GREEN_MAP 29RGB_RED_MAP 30STRING 31VISUALID 32WINDOW 33WM_COMMAND 34WM_HINTS 35WM_CLIENT_MACHINE 36WM_ICON_NAME 37WM_ICON_SIZE 38WM_NAME 39WM_NORMAL_HINTS 40WM_SIZE_HINTS 41WM_ZOOM_HINTS 42MIN_SPACE 43NORM_SPACE 44MAX_SPACE 45END_SPACE 46SUPERSCRIPT_X 47SUPERSCRIPT_Y 48SUBSCRIPT_X 49SUBSCRIPT_Y 50UNDERLINE_POSITION 51UNDERLINE_THICKNESS 52STRIKEOUT_ASCENT 53STRIKEOUT_DESCENT 54ITALIC_ANGLE 55X_HEIGHT 56QUAD_WIDTH 57WEIGHT 58POINT_SIZE 59RESOLUTION 60COPYRIGHT 61NOTICE 62FONT_NAME 63FAMILY_NAME 64FULL_NAME 65CAP_HEIGHT 66WM_CLASS 67WM_TRANSIENT_FOR 68LAST_PREDEFINED 68
EXPORTS
Nothing is exported by default, but the constants can be requested in usual "Exporter" style,
use X11::AtomConstants 'PIXMAP';blah (atom => PIXMAP);
The ":all" tag imports everything,
use X11::AtomConstants ':all';blah (atom1 => POINT,atom2 => RECTANGLE);
Many atoms like "STRING" or "WEIGHT" have rather generic names and importing them may be undesirable. They can always be used with the full package name,
use X11::AtomConstants;blah (atom => X11::AtomConstants::PIXMAP);
SEE ALSO
X11::CursorFont, X11::Keysyms, X11::Protocol, X11::Protocol::Other, X11::Protocol::WM
X Window System Protocol specification (values in Appendix B), /usr/share/X11/doc/hardcopy/XProtocol/proto.PS.gz
/usr/include/X11/Xatom.h
HOME PAGE
<http://user42.tuxfamily.org/x11-protocol-other/index.html>
LICENSE
Copyright 2011, 2012, 2013, 2014, 2017 Kevin Ryde
X11-Protocol-Other is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
X11-Protocol-Other is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with X11-Protocol-Other. If not, see <http://www.gnu.org/licenses/>.