.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "X11::AtomConstants 3" .TH X11::AtomConstants 3 2023-07-25 "perl v5.38.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME X11::AtomConstants \-\- predefined X11 atoms .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 7 \& use X11::AtomConstants; \& $X\->ChangeProperty($window, \& X11::AtomConstants::WM_NAME, # property \& X11::AtomConstants::PIXMAP, # type \& 8, # format \& \*(AqReplace\*(Aq, \& \*(AqMy Window Title\*(Aq); .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" This is the X11 pre-defined atoms as Perl constants. For example \f(CW\*(C`PIXMAP\*(C'\fR is 20, the PIXMAP atom. .PP .Vb 2 \& my $atom_id = X11::AtomConstants::PIXMAP; # $atom_id is 20 \& my $name = $X\->GetAtomName($atom_id); # $name is "PIXMAP" .Ve .PP The \f(CW\*(C`LAST_PREDEFINED\*(C'\fR constant is not an atom as such, but the last of the predefined values, which happens to be \f(CW\*(C`WM_TRANSIENT_FOR\*(C'\fR. .PP .Vb 1 \& Constant Value \& \& PRIMARY 1 \& SECONDARY 2 \& ARC 3 \& ATOM 4 \& BITMAP 5 \& CARDINAL 6 \& COLORMAP 7 \& CURSOR 8 \& CUT_BUFFER0 9 \& CUT_BUFFER1 10 \& CUT_BUFFER2 11 \& CUT_BUFFER3 12 \& CUT_BUFFER4 13 \& CUT_BUFFER5 14 \& CUT_BUFFER6 15 \& CUT_BUFFER7 16 \& DRAWABLE 17 \& FONT 18 \& INTEGER 19 \& PIXMAP 20 \& POINT 21 \& RECTANGLE 22 \& RESOURCE_MANAGER 23 \& RGB_COLOR_MAP 24 \& RGB_BEST_MAP 25 \& RGB_BLUE_MAP 26 \& RGB_DEFAULT_MAP 27 \& RGB_GRAY_MAP 28 \& RGB_GREEN_MAP 29 \& RGB_RED_MAP 30 \& STRING 31 \& VISUALID 32 \& WINDOW 33 \& WM_COMMAND 34 \& WM_HINTS 35 \& WM_CLIENT_MACHINE 36 \& WM_ICON_NAME 37 \& WM_ICON_SIZE 38 \& WM_NAME 39 \& WM_NORMAL_HINTS 40 \& WM_SIZE_HINTS 41 \& WM_ZOOM_HINTS 42 \& MIN_SPACE 43 \& NORM_SPACE 44 \& MAX_SPACE 45 \& END_SPACE 46 \& SUPERSCRIPT_X 47 \& SUPERSCRIPT_Y 48 \& SUBSCRIPT_X 49 \& SUBSCRIPT_Y 50 \& UNDERLINE_POSITION 51 \& UNDERLINE_THICKNESS 52 \& STRIKEOUT_ASCENT 53 \& STRIKEOUT_DESCENT 54 \& ITALIC_ANGLE 55 \& X_HEIGHT 56 \& QUAD_WIDTH 57 \& WEIGHT 58 \& POINT_SIZE 59 \& RESOLUTION 60 \& COPYRIGHT 61 \& NOTICE 62 \& FONT_NAME 63 \& FAMILY_NAME 64 \& FULL_NAME 65 \& CAP_HEIGHT 66 \& WM_CLASS 67 \& WM_TRANSIENT_FOR 68 \& \& LAST_PREDEFINED 68 .Ve .SH EXPORTS .IX Header "EXPORTS" Nothing is exported by default, but the constants can be requested in usual \&\f(CW\*(C`Exporter\*(C'\fR style, .PP .Vb 2 \& use X11::AtomConstants \*(AqPIXMAP\*(Aq; \& blah (atom => PIXMAP); .Ve .PP The \f(CW\*(C`:all\*(C'\fR tag imports everything, .PP .Vb 3 \& use X11::AtomConstants \*(Aq:all\*(Aq; \& blah (atom1 => POINT, \& atom2 => RECTANGLE); .Ve .PP Many atoms like \f(CW\*(C`STRING\*(C'\fR or \f(CW\*(C`WEIGHT\*(C'\fR have rather generic names and importing them may be undesirable. They can always be used with the full package name, .PP .Vb 2 \& use X11::AtomConstants; \& blah (atom => X11::AtomConstants::PIXMAP); .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" X11::CursorFont, X11::Keysyms, X11::Protocol, X11::Protocol::Other, X11::Protocol::WM .PP \&\fIX Window System Protocol\fR specification (values in Appendix\ B), \&\fI/usr/share/X11/doc/hardcopy/XProtocol/proto.PS.gz\fR .PP \&\fI/usr/include/X11/Xatom.h\fR .SH "HOME PAGE" .IX Header "HOME PAGE" .SH LICENSE .IX Header "LICENSE" Copyright 2011, 2012, 2013, 2014, 2017 Kevin Ryde .PP 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. .PP 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. .PP You should have received a copy of the GNU General Public License along with X11\-Protocol\-Other. If not, see .