home *** CD-ROM | disk | FTP | other *** search
/ IRIS Development Option 6.2 / IRIS_Development_Option_6.2_814-0478-001.iso / dist / dev.idb / usr / include / abi / X11 / Xmu / Atoms.h.z / Atoms.h
C/C++ Source or Header  |  1996-03-14  |  3KB  |  116 lines

  1. /* $XConsortium: Atoms.h,v 1.8 91/07/23 14:39:51 converse Exp $
  2.  *
  3.  * Copyright 1988 by the Massachusetts Institute of Technology
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software and its
  6.  * documentation for any purpose and without fee is hereby granted, provided 
  7.  * that the above copyright notice appear in all copies and that both that 
  8.  * copyright notice and this permission notice appear in supporting 
  9.  * documentation, and that the name of M.I.T. not be used in advertising
  10.  * or publicity pertaining to distribution of the software without specific, 
  11.  * written prior permission. M.I.T. makes no representations about the 
  12.  * suitability of this software for any purpose.  It is provided "as is"
  13.  * without express or implied warranty.
  14.  *
  15.  * The X Window System is a Trademark of MIT.
  16.  *
  17.  * The interfaces described by this header file are for miscellaneous utilities
  18.  * and are not part of the Xlib standard.
  19.  */
  20.  
  21. #ifndef _XMU_ATOMS_H_
  22. #define _XMU_ATOMS_H_
  23.  
  24. #include <X11/Intrinsic.h>
  25. #include <X11/Xfuncproto.h>
  26.  
  27. typedef struct _AtomRec *AtomPtr;
  28.  
  29. extern AtomPtr
  30.     _XA_ATOM_PAIR,
  31.     _XA_CHARACTER_POSITION,
  32.     _XA_CLASS,
  33.     _XA_CLIENT_WINDOW,
  34.     _XA_CLIPBOARD,
  35.     _XA_COMPOUND_TEXT,
  36.     _XA_DECNET_ADDRESS,
  37.     _XA_DELETE,
  38.     _XA_FILENAME,
  39.     _XA_HOSTNAME,
  40.     _XA_IP_ADDRESS,
  41.     _XA_LENGTH,
  42.     _XA_LIST_LENGTH,
  43.     _XA_NAME,
  44.     _XA_NET_ADDRESS,
  45.     _XA_NULL,
  46.     _XA_OWNER_OS,
  47.     _XA_SPAN,
  48.     _XA_TARGETS,
  49.     _XA_TEXT,
  50.     _XA_TIMESTAMP,
  51.     _XA_USER;
  52.  
  53. #define XA_ATOM_PAIR(d)        XmuInternAtom(d, _XA_ATOM_PAIR)
  54. #define XA_CHARACTER_POSITION(d) XmuInternAtom(d, _XA_CHARACTER_POSITION)
  55. #define XA_CLASS(d)        XmuInternAtom(d, _XA_CLASS)
  56. #define XA_CLIENT_WINDOW(d)    XmuInternAtom(d, _XA_CLIENT_WINDOW)
  57. #define XA_CLIPBOARD(d)        XmuInternAtom(d, _XA_CLIPBOARD)
  58. #define XA_COMPOUND_TEXT(d)    XmuInternAtom(d, _XA_COMPOUND_TEXT)
  59. #define XA_DECNET_ADDRESS(d)    XmuInternAtom(d, _XA_DECNET_ADDRESS)
  60. #define XA_DELETE(d)        XmuInternAtom(d, _XA_DELETE)
  61. #define XA_FILENAME(d)        XmuInternAtom(d, _XA_FILENAME)
  62. #define XA_HOSTNAME(d)        XmuInternAtom(d, _XA_HOSTNAME)
  63. #define XA_IP_ADDRESS(d)    XmuInternAtom(d, _XA_IP_ADDRESS)
  64. #define XA_LENGTH(d)        XmuInternAtom(d, _XA_LENGTH)
  65. #define XA_LIST_LENGTH(d)    XmuInternAtom(d, _XA_LIST_LENGTH)
  66. #define XA_NAME(d)        XmuInternAtom(d, _XA_NAME)
  67. #define XA_NET_ADDRESS(d)    XmuInternAtom(d, _XA_NET_ADDRESS)
  68. #define XA_NULL(d)        XmuInternAtom(d, _XA_NULL)
  69. #define XA_OWNER_OS(d)        XmuInternAtom(d, _XA_OWNER_OS)
  70. #define XA_SPAN(d)        XmuInternAtom(d, _XA_SPAN)
  71. #define XA_TARGETS(d)        XmuInternAtom(d, _XA_TARGETS)
  72. #define XA_TEXT(d)        XmuInternAtom(d, _XA_TEXT)
  73. #define XA_TIMESTAMP(d)        XmuInternAtom(d, _XA_TIMESTAMP)
  74. #define XA_USER(d)        XmuInternAtom(d, _XA_USER)
  75.  
  76. _XFUNCPROTOBEGIN
  77.  
  78. extern char *XmuGetAtomName(
  79. #if NeedFunctionPrototypes
  80.     Display *    /* dpy */,
  81.     Atom    /* atom */
  82. #endif
  83. );
  84.  
  85. extern Atom XmuInternAtom(
  86. #if NeedFunctionPrototypes
  87.     Display *    /* dpy */,
  88.     AtomPtr    /* atom_ptr */
  89. #endif
  90. );
  91.  
  92. extern void XmuInternStrings(
  93. #if NeedFunctionPrototypes
  94.     Display *        /* dpy */,
  95.     String *        /* names */,
  96.     Cardinal        /* count */,
  97.     Atom *        /* atoms_return */
  98. #endif
  99. );
  100.  
  101. extern AtomPtr XmuMakeAtom(
  102. #if NeedFunctionPrototypes
  103.     _Xconst char *        /* name    */
  104. #endif
  105. );
  106.  
  107. extern char *XmuNameOfAtom(
  108. #if NeedFunctionPrototypes
  109.     AtomPtr    /* atom_ptr */
  110. #endif
  111. );
  112.  
  113. _XFUNCPROTOEND
  114.  
  115. #endif /* _XMU_ATOMS_H_ */
  116.