Atoms.h

Go to the documentation of this file.
00001 /* $Xorg: Atoms.h,v 1.4 2001/02/09 02:03:51 xorgcvs Exp $ */
00002 
00003 /* 
00004 
00005 Copyright 1988, 1998  The Open Group
00006 
00007 Permission to use, copy, modify, distribute, and sell this software and its
00008 documentation for any purpose is hereby granted without fee, provided that
00009 the above copyright notice appear in all copies and that both that
00010 copyright notice and this permission notice appear in supporting
00011 documentation.
00012 
00013 The above copyright notice and this permission notice shall be included in
00014 all copies or substantial portions of the Software.
00015 
00016 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00017 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00018 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00019 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00020 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00021 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00022 
00023 Except as contained in this notice, the name of The Open Group shall not be
00024 used in advertising or otherwise to promote the sale, use or other dealings
00025 in this Software without prior written authorization from The Open Group.
00026 
00027 */
00028 /* $XFree86: xc/lib/Xmu/Atoms.h,v 1.6 2001/01/17 19:42:53 dawes Exp $ */
00029 
00030 /*
00031  * The interfaces described by this header file are for miscellaneous utilities
00032  * and are not part of the Xlib standard.
00033  */
00034 
00035 #ifndef _XMU_ATOMS_H_
00036 #define _XMU_ATOMS_H_
00037 
00038 #include <X11/Intrinsic.h>
00039 #include <X11/Xfuncproto.h>
00040 
00041 typedef struct _AtomRec *AtomPtr;
00042 
00043 extern AtomPtr
00044     _XA_ATOM_PAIR,
00045     _XA_CHARACTER_POSITION,
00046     _XA_CLASS,
00047     _XA_CLIENT_WINDOW,
00048     _XA_CLIPBOARD,
00049     _XA_COMPOUND_TEXT,
00050     _XA_DECNET_ADDRESS,
00051     _XA_DELETE,
00052     _XA_FILENAME,
00053     _XA_HOSTNAME,
00054     _XA_IP_ADDRESS,
00055     _XA_LENGTH,
00056     _XA_LIST_LENGTH,
00057     _XA_NAME,
00058     _XA_NET_ADDRESS,
00059     _XA_NULL,
00060     _XA_OWNER_OS,
00061     _XA_SPAN,
00062     _XA_TARGETS,
00063     _XA_TEXT,
00064     _XA_TIMESTAMP,
00065     _XA_USER,
00066     _XA_UTF8_STRING;
00067 
00068 #define XA_ATOM_PAIR(d)         XmuInternAtom(d, _XA_ATOM_PAIR)
00069 #define XA_CHARACTER_POSITION(d) XmuInternAtom(d, _XA_CHARACTER_POSITION)
00070 #define XA_CLASS(d)             XmuInternAtom(d, _XA_CLASS)
00071 #define XA_CLIENT_WINDOW(d)     XmuInternAtom(d, _XA_CLIENT_WINDOW)
00072 #define XA_CLIPBOARD(d)         XmuInternAtom(d, _XA_CLIPBOARD)
00073 #define XA_COMPOUND_TEXT(d)     XmuInternAtom(d, _XA_COMPOUND_TEXT)
00074 #define XA_DECNET_ADDRESS(d)    XmuInternAtom(d, _XA_DECNET_ADDRESS)
00075 #define XA_DELETE(d)            XmuInternAtom(d, _XA_DELETE)
00076 #define XA_FILENAME(d)          XmuInternAtom(d, _XA_FILENAME)
00077 #define XA_HOSTNAME(d)          XmuInternAtom(d, _XA_HOSTNAME)
00078 #define XA_IP_ADDRESS(d)        XmuInternAtom(d, _XA_IP_ADDRESS)
00079 #define XA_LENGTH(d)            XmuInternAtom(d, _XA_LENGTH)
00080 #define XA_LIST_LENGTH(d)       XmuInternAtom(d, _XA_LIST_LENGTH)
00081 #define XA_NAME(d)              XmuInternAtom(d, _XA_NAME)
00082 #define XA_NET_ADDRESS(d)       XmuInternAtom(d, _XA_NET_ADDRESS)
00083 #define XA_NULL(d)              XmuInternAtom(d, _XA_NULL)
00084 #define XA_OWNER_OS(d)          XmuInternAtom(d, _XA_OWNER_OS)
00085 #define XA_SPAN(d)              XmuInternAtom(d, _XA_SPAN)
00086 #define XA_TARGETS(d)           XmuInternAtom(d, _XA_TARGETS)
00087 #define XA_TEXT(d)              XmuInternAtom(d, _XA_TEXT)
00088 #define XA_TIMESTAMP(d)         XmuInternAtom(d, _XA_TIMESTAMP)
00089 #define XA_USER(d)              XmuInternAtom(d, _XA_USER)
00090 #define XA_UTF8_STRING(d)       XmuInternAtom(d, _XA_UTF8_STRING)
00091 
00092 _XFUNCPROTOBEGIN
00093 
00094 char *XmuGetAtomName
00095 (
00096  Display        *dpy,
00097  Atom           atom
00098  );
00099 
00100 Atom XmuInternAtom
00101 (
00102  Display        *dpy,
00103  AtomPtr        atom_ptr
00104  );
00105 
00106 void XmuInternStrings
00107 (
00108  Display        *dpy,
00109  String         *names,
00110  Cardinal       count,
00111  Atom           *atoms_return
00112 );
00113 
00114 AtomPtr XmuMakeAtom
00115 (
00116  _Xconst char   *name
00117  );
00118 
00119 char *XmuNameOfAtom
00120 (
00121  AtomPtr        atom_ptr
00122  );
00123 
00124 _XFUNCPROTOEND
00125 
00126 #endif /* _XMU_ATOMS_H_ */

Generated on Sun Mar 4 15:03:56 2007 for Scilab [trunk] by  doxygen 1.5.1