v04i100: ansi.xlib -- C++ or ANSI-C header files, Part01/01

Dan Heller argv at island.uu.net
Thu Sep 7 19:38:39 AEST 1989


Submitted-by: Bob Miner <uunet!odi!bob>
Posting-number: Volume 4, Issue 100
Archive-name: ansixlib/part01



Newsgroups: comp.sources.x
Path: bob
From: bob at odi.com (Bob Miner)
Subject: C++ and ANSI-C header files for Xlib, Xt and Xm (motif)
Message-ID: <1989Sep6.184634.4948 at odi.com>
Reply-To: bob at odi.com (Bob Miner)
Organization: Object Design Inc., Burlington, MA
Distribution: comp.sources.x
Date: Wed, 6 Sep 89 18:46:34 GMT

Contained in this file are 3 files - ansiXlib.h, ansiXt.h and ansiXm.h.
They are header files to be used when writing X code either with C++ or
with C and an ANSI-C compiler.  The first file - ansiXlib.h - is a
slightly cleaned-up version of a file which was distributed with InterViews
in the X11R3 tape.  The other two files - ansiXt.h and ansiXm.h - I typed
in manually (using as many emacs macros as I could to speed it up!).

I've been using these header files for a few weeks now with cfront 2.0
and the Sun cc compiler, so I know they will work.  I can't vouch for
earlier versions of cfront nor other C compilers.  I don't have access to
an ANSI C compiler, so I haven't tested the files with one.  I think they
should work and would be curious to hear people's results.

I'm SURE that there are errors and ommissions in these files.
If you get an error in your C++ or C code at an X function call, first
check to see if the function prototype in the appropriate ansiX*.h file
is there and is correct.  If it's not there or is wrong, add it or fix it.
If it's there and correct, then your call to that function must be wrong.

These files all work the same way.  They redefine the C++ keywords which
may appear in X header files to harmless things (like CC_class) and they
redefine X functions to harmless things (like cc_XtCreateWidget).  Then
they include the appropriate X header files.  Finally, they undefine
everything they've defined and then they have the complete function prototypes
for the appropriate X functions.

Someone using this with an ANSI-C compiler would probably want to remove
the redefine's of the C++ keywords.

Note that it is very important that these files be included INSTEAD of
any of the X headers in your code.  You should never need to include an
X header directly.  Doing so would screw everything up in that the function
names would not have been redefined, so you'd get duplicate declarations.

Good Luck.  I'd appreciate hearing how people make out with these and, of
course, I'd love to hear of all the errors/ommissions.

Oh yeah.  On the legal side.  This is all free to be used as you wish.
There are no copyrights on any of this and it is being distributed in the
hope that more people will use C++ and ANSI C compilers with X.  I can't
count the number of times someone at the X Consortium has had to reply
to a mail message "You're arguments for X... function are incorrect".
Hopefully this will alleviate that problem to some extent.

Bob Miner - bob at odi.com
Object Design Inc.
1 New England Executive Park
Burlington, MA 01803
(617) 270-9797

#! /bin/sh
# This is a shell archive.  Remove anything before this line, then feed it
# into a shell via "sh file" or similar.  To overwrite existing files,
# type "sh file -c".
# The tool that generated this appeared in the comp.sources.unix newsgroup;
# send mail to comp-sources-unix at uunet.uu.net if you want that tool.
# If this archive is complete, you will see the following message at the end:
#		"End of shell archive."
# Contents:  ansiXlib.h ansiXm.h ansiXt.h
# Wrapped by argv at island on Thu Sep  7 02:33:13 1989
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'ansiXlib.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'ansiXlib.h'\"
else
echo shar: Extracting \"'ansiXlib.h'\" \(22264 characters\)
sed "s/^X//" >'ansiXlib.h' <<'END_OF_FILE'
X/*
X * ansiXlib.h - C++ interface to Xlib level headers (Xlib.h and Xutil.h)
X *
X * We must disable C++ keywords that might be used as identifiers
X * in Xlib.h and Xutil.h.  We also must disable function prototypes
X * so we can define their argument types later.
X *
X */
X
X#ifndef ansiXlib_h
X#define ansiXlib_h
X
X/*
X * Redefine C++ keywords if an including file hasn't already done it
X */
X
X#ifndef _REDEFINEDCLASS
X
X#define _REDEFINEDCLASS
X#define _XLIBHREDEFINEDCLASS	/* so this file knows to undef class */
X
X#define class CC_class
X#define new CC_new
X#define delete CC_delete
X#define inline CC_inline
X#define virtual CC_virtual
X
X#endif /* _REDEFINEDCLASS */
X
X/*
X * Redefine all Xlib function prototypes
X */
X
X#define XGetSizeHints cc_XGetSizeHints
X#define XSetSizeHints cc_XSetSizeHints
X#define XSaveContext cc_XSaveContext
X#define XFindContext cc_XFindContext
X#define XDeleteContext cc_XDeleteContext
X#define XSetWMHints cc_XSetWMHints
X#define XGetWMHints cc_XGetWMHints
X#define XSetTransientForHint cc_XSetTransientForHint
X#define XGetTransientForHint cc_XGetTransientForHint
X#define XCreateRegion cc_XCreateRegion
X#define XPolygonRegion cc_XPolygonRegion
X#define XCreateImage cc_XCreateImage
X#define XPutImage cc_XPutImage
X#define XGetImage cc_XGetImage
X#define XGetVisualInfo cc_XGetVisualInfo
X
X#define XLoadQueryFont cc_XLoadQueryFont
X#define XQueryFont cc_XQueryFont
X#define XGetMotionEvents cc_XGetMotionEvents
X#define XOpenDisplay cc_XOpenDisplay
X#define XCreate cc_XCreate
X#define XFetchBytes cc_XFetchBytes
X#define XFetchBuffer cc_XFetchBuffer
X#define XGetAtomName cc_XGetAtomName
X#define XGetDefault cc_XGetDefault
X#define XDisplayName cc_XDisplayName
X#define XKeysymToString cc_XKeysymToString
X#define XSynchronize cc_XSynchronize
X#define XSetAfterFunction cc_XSetAfterFunction
X#define XInternAtom cc_XInternAtom
X#define XCopyColormapAndFree cc_XCopyColormapAndFree
X#define XCreateColormap cc_XCreateColormap
X#define XCreatePixmapCursor cc_XCreatePixmapCursor
X#define XCreateGlyphCursor cc_XCreateGlyphCursor
X#define XCreateFontCursor cc_XCreateFontCursor
X#define XLoadFont cc_XLoadFont
X#define XCreateGC cc_XCreateGC
X#define XGContextFromGC cc_XGContextFromGC
X#define XCreatePixmap cc_XCreatePixmap
X#define XCreateBitmapFromData cc_XCreateBitmapFromData
X#define XCreatePixmapFromBitmapData cc_XCreatePixmapFromBitmapData
X#define XCreateSimpleWindow cc_XCreateSimpleWindow
X#define XGetSelectionOwner cc_XGetSelectionOwner
X#define XGetIconWindow cc_XGetIconWindow
X#define XCreateWindow cc_XCreateWindow
X#define XListInstalledColormaps cc_XListInstalledColormaps
X#define XListFonts cc_XListFonts
X#define XListFontsWithInfo cc_XListFontsWithInfo
X#define XGetFontPath cc_XGetFontPath
X#define XListExtensions cc_XListExtensions
X#define XListProperties cc_XListProperties
X
X#define XGetSubImage cc_XGetSubImage
X#define XListHosts cc_XListHosts
X#define XNewModifiermap cc_XNewModifiermap
X#define XGetModifierMapping cc_XGetModifierMapping
X#define XDeleteModifiermapEntry cc_XDeleteModifiermapEntry
X#define XInsertModifiermapEntry cc_XInsertModifiermapEntry
X#define XKeycodeToKeysym cc_XKeycodeToKeysym
X#define XLookupKeysym cc_XLookupKeysym
X#define XGetKeyboardMapping cc_XGetKeyboardMapping
X#define XStringToKeysym cc_XStringToKeysym
X#define XInitExtension cc_XInitExtension
X#define XESetCreateGC cc_XESetCreateGC
X#define XESetCopyGC cc_XESetCopyGC
X#define XESetFlushGC cc_XESetFlushGC
X#define XESetFreeGC cc_XESetFreeGC
X#define XESetCreateFont cc_XESetCreateFont
X#define XESetFreeFont cc_XESetFreeFont
X#define XESetCloseDisplay cc_XESetCloseDisplay
X#define XESetError cc_XESetError
X#define XESetErrorString cc_XESetErrorString
X#define XESetWireToEvent cc_XESetWireToEvent
X#define XESetEventToWire cc_XESetEventToWire
X#define XRootWindow cc_XRootWindow
X#define XDefaultRootWindow cc_XDefaultRootWindow
X#define XRootWindowOfScreen cc_XRootWindowOfScreen
X#define XDefaultVisual cc_XDefaultVisual
X#define XDefaultVisualOfScreen cc_XDefaultVisualOfScreen
X#define XDefaultGC cc_XDefaultGC
X#define XDefaultGCofScreen cc_XDefaultGCofScreen
X#define XBlackPixel cc_XBlackPixel
X#define XWhitePixel cc_XWhitePixel
X#define XAllPlanes cc_XAllPlanes
X#define XBlackPixelOfScreen cc_XBlackPixelOfScreen
X#define XWhitePixelOfScreen cc_XWhitePixelOfScreen
X#define XNextRequest cc_XNextRequest
X#define XLastKnownRequestProcessed cc_XLastKnownRequestProcessed
X#define XServerVendor cc_XServerVendor
X#define XDisplayString cc_XDisplayString
X#define XDefaultColormap cc_XDefaultColormap
X#define XDefaultColormapOfScreen cc_XDefaultColormapOfScreen
X#define XDisplayOfScreen cc_XDisplayOfScreen
X#define XScreenOfDisplay cc_XScreenOfDisplay
X#define XDefaultScreenOfDisplay cc_XDefaultScreenOfDisplay
X#define XEventMaskOfScreen cc_XEventMaskOfScreen
X
X/*
X * include actual X header files
X */
X
X#include <X11/Xlib.h>
X#include <X11/Xutil.h>
X
X/*
X * Undefine everything which was defined
X */
X
X#undef XGetSizeHints
X#undef XSetSizeHints
X#undef XSaveContext
X#undef XFindContext
X#undef XDeleteContext
X#undef XSetWMHints
X#undef XSetTransientForHint
X#undef XGetTransientForHint
X#undef XGetWMHints
X#undef XCreateRegion
X#undef XPolygonRegion
X#undef XCreateImage
X#undef XPutImage
X#undef XGetImage
X#undef XGetVisualInfo
X
X#undef XLoadQueryFont
X#undef XQueryFont
X#undef XGetMotionEvents
X#undef XOpenDisplay
X#undef XCreate
X#undef XFetchBytes
X#undef XFetchBuffer
X#undef XGetDefault
X#undef XGetAtomName
X#undef XDisplayName
X#undef XKeysymToString
X#undef XSynchronize
X#undef XSetAfterFunction
X#undef XInternAtom
X#undef XCopyColormapAndFree
X#undef XCreateColormap
X#undef XCreatePixmapCursor
X#undef XCreateGlyphCursor
X#undef XCreateFontCursor
X#undef XLoadFont
X#undef XCreateGC
X#undef XGContextFromGC
X#undef XCreatePixmap
X#undef XCreateBitmapFromData
X#undef XCreatePixmapFromBitmapData
X#undef XCreateSimpleWindow
X#undef XGetSelectionOwner
X#undef XGetIconWindow
X#undef XCreateWindow
X#undef XListInstalledColormaps
X#undef XListFonts
X#undef XListFontsWithInfo
X#undef XGetFontPath
X#undef XListExtensions
X#undef XListProperties
X#undef XGetSubImage
X#undef XListHosts
X#undef XNewModifiermap
X#undef XGetModifierMapping
X#undef XDeleteModifiermapEntry
X#undef XInsertModifiermapEntry
X#undef XKeycodeToKeysym
X#undef XLookupKeysym
X#undef XGetKeyboardMapping
X#undef XStringToKeysym
X#undef XInitExtension
X#undef XESetCreateGC
X#undef XESetCopyGC
X#undef XESetFlushGC
X#undef XESetFreeGC
X#undef XESetCreateFont
X#undef XESetFreeFont
X#undef XESetCloseDisplay
X#undef XESetError
X#undef XESetErrorString
X#undef XESetWireToEvent
X#undef XESetEventToWire
X#undef XRootWindow
X#undef XDefaultRootWindow
X#undef XRootWindowOfScreen
X#undef XDefaultVisual
X#undef XDefaultVisualOfScreen
X#undef XDefaultGC
X#undef XDefaultGCofScreen
X#undef XBlackPixel
X#undef XWhitePixel
X#undef XAllPlanes
X#undef XBlackPixelOfScreen
X#undef XWhitePixelOfScreen
X#undef XNextRequest
X#undef XLastKnownRequestProcessed
X#undef XServerVendor
X#undef XDisplayString
X#undef XDefaultColormap
X#undef XDefaultColormapOfScreen
X#undef XDisplayOfScreen
X#undef XScreenOfDisplay
X#undef XDefaultScreenOfDisplay
X#undef XEventMaskOfScreen
X
X/*
X * Undefine C++ keywords and other various #define's if they were
X * originally #define'd in this file.
X */
X
X#ifdef _XLIBHREDEFINEDCLASS
X
X#undef class
X#undef new
X#undef delete
X#undef inline
X#undef virtual
X
X#undef _XLIBHREDEFINEDCLASS
X#undef _REDEFINEDCLASS
X
X#endif /* _XLIBHREDEFINEDCLASS */
X
X/*
X * Xlib function prototypes with arguments specified
X */
X
Xvoid XGetSizeHints(Display*, Window, XSizeHints*, Atom);
Xvoid XSetSizeHints(Display*, Window, XSizeHints*, Atom);
X
Xint XSaveContext(Display* Window, XContext, caddr_t);
Xint XFindContext(Display*, Window, XContext, caddr_t);
Xint XDeleteContext(Display*, Window, XContext);
X
Xint XParseGeometry(char*, int*, int*, int*, int*);
X
Xvoid XSetWMHints(Display*, Window, XWMHints*);
XXWMHints* XGetWMHints(Display*, Window);
X
Xvoid XSetTransientForHint(Display*, Window, Window);
XStatus XGetTransientForHint(Display*, Window, Window*);
X
XRegion XCreateRegion();
XRegion XPolygonRegion(XPoint points[], int, int);
X
XXImage* XCreateImage( Display*, Visual*, int, int, int,
X		      void*, int, int, int, int);
Xvoid XPutImage( Display*, Drawable, GC, XImage*, int, int,
X		int, int, unsigned int, unsigned int);
Xvoid XGetImage( Display*, Drawable, GC, XImage*, int, int,
X		int, int, unsigned int, unsigned int,
X		unsigned long, int);
X
XDisplay* XOpenDisplay(const char*);
Xchar* XDisplayName(Display*);
Xvoid XCloseDisplay(Display*);
X
Xchar* XGetDefault(Display*, const char* prog, const char* param);
XAtom XInternAtom(Display*, char*, int);
XColormap* XListInstalledColormaps();
Xchar* XGetAtomName(Display*, Atom);
X
Xvoid XSetScreenSaver(
X    Display*, int timeout, int interval, int blanking, int exposures
X);
Xvoid XForceScreenSaver(Display*, int mode);
Xvoid XActivateScreenSaver(Display*);
Xvoid XResetScreenSaver(Display*);
Xvoid XGetScreenSaver(
X    Display*, int* timeout, int* interval, int* blanking, int* exposures
X);
X
Xvoid XAddHost(Display*, XHostAddress*);
Xvoid XAddHosts(Display*, XHostAddress[], int);
XXHostAddress* XListHosts(Display*, int* n, Bool*);
Xvoid XRemoveHost(Display*, XHostAddress*);
Xvoid XRemoveHosts(Display*, XHostAddress[], int);
X
XWindow XCreateWindow(
X    Display*, Window parent, int x, int y,
X    unsigned int width, unsigned int height,
X    unsigned int bwidth, unsigned int depth,
X    unsigned int window_class, Visual*, unsigned int, XSetWindowAttributes*
X);
XWindow XCreateSimpleWindow(
X    Display*, Window, int x, int y,
X    unsigned int width, unsigned int height, unsigned int bwidth,
X    unsigned long border, unsigned long background
X);
Xvoid XDestroyWindow(Display*, Window);
Xvoid XDestroySubwindows(Display*, Window);
Xvoid XMapWindow(Display*, Window);
Xvoid XMapRaised(Display*, Window);
Xvoid XMapSubwindows(Display*, Window);
Xvoid XUnmapWindow(Display*, Window);
Xvoid XUnmapSubwindows(Display*, Window);
Xvoid XConfigureWindow(Display*, Window, unsigned int, XWindowChanges*);
Xvoid XMoveWindow(Display*, Window, int x, int y);
Xvoid XResizeWindow(
X    Display*, Window, unsigned int width, unsigned int height
X);
Xvoid XMoveResizeWindow(
X    Display*, Window, int x, int y, unsigned int width, unsigned int height
X);
Xvoid XSetWindowBorderWidth(Display*, Window, unsigned int width);
Xvoid XRaiseWindow(Display*, Window);
Xvoid XLowerWindow(Display*, Window);
Xvoid XCirculateSubwindows(Display*, Window, int direction);
Xvoid XCirculateSubwindowsUp(Display*, Window);
Xvoid XCirculateSubwindwosDown(Display*, Window);
Xvoid XRestackWindows(Display*, Window[], int nwindows);
Xvoid XChangeWindowAttributes(
X    Display*, Window, unsigned int, XSetWindowAttributes*
X);
Xvoid XSetWindowBackground(Display*, Window, unsigned long);
Xvoid XSetWindowBackgroundPixmap(Display*, Window, Pixmap);
Xvoid XSetWindowBorder(Display*, Window, unsigned long);
Xvoid XSetWindowBorderPixmap(Display*, Window, Pixmap);
X
XCursor XCreateFontCursor(Display*, int shape);
XCursor XCreatePixmapCursor(
X    Display*, Pixmap src, Pixmap mask, XColor* fg, XColor* bg, int x, int y
X);
XCursor XCreateGlyphCursor(
X    Display*, Font src, Font mask, unsigned int schar, unsigned int mchar,
X    XColor* fg, XColor* bg
X);
Xvoid XRecolorCursor(Display*, Cursor, XColor* fg, XColor* bg);
Xvoid XFreeCursor(Display*, Cursor);
Xvoid XQueryBestCursor(
X    Display*, Drawable, unsigned int width, unsigned int height,
X    unsigned int* rwidth, unsigned int* rheight
X);
Xvoid XDefineCursor(Display*, Window, Cursor);
Xvoid XUndefineCursor(Display*, Window);
X
XStatus XQueryTree(
X    Display*, Window, Window* root, Window* parent,
X    Window** children, int* nchildren
X);
XStatus XGetWindowAttributes(Display*, Window, XWindowAttributes*);
XStatus XGetGeometry(
X    Display*, Drawable, Drawable* root, int* x, int* y,
X    unsigned int* width, unsigned int* height,
X    unsigned int* bwidth, unsigned int* depth
X);
Xint XTranslateCoordinates(
X    Display*, Window src, Window dst, int srcx, int srcy,
X    int* dstx, int* dsty, Window* child
X);
X
Xint XGetWindowProperty(
X    Display*, Window, Atom, long offset, long len, Bool del,
X    Atom req_type, Atom* actual_type, int* actual_format, unsigned long* n,
X    long* bytes_after, unsigned char** prop
X);
XAtom* XListProperties(Display*, Window, int* nprop);
Xvoid XChangeProperty(
X    Display*, Window, Atom prop, Atom type, int format, int mode,
X    unsigned char* data, int nelements
X);
Xvoid XRotateWindowProperties(Display*, Window, Atom[], int n, int npos);
Xvoid XDeleteProperty(Display*, Window, Atom);
X
Xvoid XSetSelectionOwner(Display*, Atom, Window, Time);
XWindow XGetSelectionOwner(Display*, Atom);
Xvoid XConvertSelection(
X    Display*, Atom selection, Atom target, Atom prop,
X    Window requestor, Time
X);
X
Xvoid XStoreName(Display*, Window, const char*);
XStatus XFetchName(Display*, Window, char**);
Xvoid XSetIconName(Display*, Window, char*);
XStatus XGetIconName(Display*, Window, char**);
Xvoid XSetCommand(Display*, Window, char* argv[], int argc);
X
XColormap XCreateColormap(Display*, Window, Visual*, int alloc);
XColormap XCopyColormapAndFree(Display*, Colormap);
Xvoid XFreeColormap(Display*, Colormap);
Xvoid XSetWindowColormap(Display*, Window, Colormap);
XStatus XAllocColor(Display*, Colormap, XColor*);
XStatus XAllocNamedColor(Display*, Colormap, const char*, XColor*, XColor*);
XStatus XLookupColor(Display*, Colormap, const char*, XColor*, XColor*);
Xvoid XStoreColors(Display*, Colormap, XColor[], int);
Xvoid XStoreColor(Display*, Colormap, XColor*);
XStatus XAllocColorCells(
X    Display*, Colormap, Bool, unsigned long plane[], unsigned long nplanes,
X    unsigned long[], unsigned long npixels
X);
XStatus XAllocColorPlanes(
X    Display*, Colormap, Bool, unsigned long[], unsigned long npixels,
X    int nreds, int ngreens, int nblues,
X    unsigned long* rmask, unsigned long* gmask, unsigned long* bmask
X);
Xvoid XStoreNamedColor(Display*, Colormap, const char*, unsigned long, int);
Xvoid XFreeColors(
X    Display*, Colormap, unsigned long[], int, unsigned long nplanes
X);
XStatus XQueryColor(Display*, Colormap, XColor*);
XStatus XQueryColors(Display*, Colormap, XColor[], int ncolors);
X
XFont XLoadFont(Display*, const char*);
XXFontStruct* XQueryFont(Display*, Font);
Xchar** XListFontsWithInfo(
X    Display*, char*, int maxnames, int count, XFontStruct**
X);
XXFontStruct* XLoadQueryFont(Display*, const char*);
Xvoid XFreeFont(Display*, XFontStruct*);
XBool XGetFontProperty(XFontStruct*, Atom, unsigned long*);
Xchar** XListFonts(Display*, char*, int maxnames, int* count);
Xvoid XFreeFontNames(char**);
X
Xvoid XSetFontPath(Display*, char**, int);
Xchar** XGetFontPath(Display*, int*);
Xvoid XFreeFontPath(char**);
X
Xint XTextWidth(XFontStruct*, const char*, int);
Xint XTextWidth16(XFontStruct*, const unsigned short*, int);
Xvoid XTextExtents(
X    XFontStruct*, const char*, int,
X    int* direction, int* ascent, int* descent, XCharStruct* overall
X);
Xvoid XTextExtents16(
X    XFontStruct*, const unsigned short*, int, int* direction,
X    int* ascent, int* descent, XCharStruct* overall
X);
Xvoid XQueryTextExtents(
X    Display*, Font, const char*, int,
X    int* direction, int* ascent, int* descent, XCharStruct* overall
X);
Xvoid XQueryTextExtents16(
X    Display*, Font, const XChar2b*, int,
X    int* direction, int* ascent, int* descent, XCharStruct* overall
X);
X
Xvoid XDrawText(Display*, Drawable, GC, int x, int y, XTextItem[], int);
Xvoid XDrawText16(Display*, Drawable, GC, int x, int y, XTextItem16[], int);
Xvoid XDrawString16(
X    Display*, Drawable, GC, int x, int y, const XChar2b*, int
X);
Xvoid XDrawImageString16(
X    Display*, Drawable, GC, int x, int y, const XChar2b*, int
X);
X
XGC XCreateGC(Display*, Drawable, unsigned long, XGCValues*);
Xvoid XCopyGC(Display*, GC src, unsigned int, GC dst);
Xvoid XChangeGC(Display*, GC, unsigned long, XGCValues*);
Xvoid XFreeGC(Display*, GC);
Xvoid XSetState(
X    Display*, GC, unsigned long fg, unsigned long bg, int func, unsigned long
X);
Xvoid XSetFunction(Display*, GC, int);
Xvoid XSetPlaneMask(Display*, GC, unsigned long);
Xvoid XSetForeground(Display*, GC, unsigned long);
Xvoid XSetBackground(Display*, GC, unsigned long);
Xvoid XSetLineAttributes(
X    Display*, GC, unsigned int width, int style, int cap, int join
X);
Xvoid XSetDashes(Display*, GC, int offset, char* dash[], int n);
Xvoid XSetFillStyle(Display*, GC, int);
Xvoid XSetFillRule(Display*, GC, int);
Xvoid XQueryBestSize(
X    Display*, int, Drawable, unsigned int width, unsigned int height,
X    unsigned int* rwidth, unsigned int* rheight
X);
Xvoid XQueryBestTile(
X    Display*, Drawable, unsigned int width, unsigned int height,
X    unsigned int* rwidth, unsigned int* rheight
X);
Xvoid XQueryBestStipple(
X    Display*, Drawable, unsigned int width, unsigned int height,
X    unsigned int* rwidth, unsigned int* rheight
X);
Xvoid XSetTile(Display*, GC, Pixmap);
Xvoid XSetStipple(Display*, GC, Pixmap);
Xvoid XSetTSOrigin(Display*, GC, int x, int y);
X
Xvoid XSetFont(Display*, GC, Font);
Xvoid XSetClipOrigin(Display*, GC, int x, int y);
Xvoid XSetClipMask(Display*, GC, Pixmap);
Xvoid XSetClipRectangles(
X    Display*, GC, int x, int y, XRectangle[], int n, int ordering
X);
Xvoid XSetArcMode(Display*, GC, int);
Xvoid XSetSubwindowMode(Display*, GC, int);
Xvoid XSetGraphicsExposures(Display*, GC, Bool);
X
XPixmap XCreatePixmap(
X    Display*, Drawable,
X    unsigned int width, unsigned int height, unsigned int depth
X);
XPixmap XCreateBitmapFromData(
X    Display*, Drawable, void*, unsigned int, unsigned int
X);
Xvoid XFreePixmap(Display*, Pixmap);
X
Xvoid XClearArea(
X    Display*, Window, int x, int y, unsigned int width, unsigned int height,
X    Bool exposures
X);
Xvoid XClearWindow(Display*, Window);
Xvoid XCopyArea(
X    Display*, Drawable src, Drawable dst, GC, int srcx, int srcy,
X    unsigned int width, unsigned int height, int dstx, int dsty
X);
Xvoid XCopyPlane(
X    Display*, Drawable src, Drawable dst, GC, int srcx, int srcy,
X    unsigned int width, unsigned int height, int dstx, int dsty,
X    unsigned long plane
X);
X
Xvoid XDrawPoint(Display*, Drawable, GC, int x, int y);
Xvoid XDrawPoints(Display*, Drawable, GC, XPoint[], int, int mode);
Xvoid XDrawLine(Display*, Drawable, GC, int x1, int y1, int x2, int y2);
Xvoid XDrawLines(Display*, Drawable, GC, XPoint[], int n, int mode);
Xvoid XDrawSegments(Display*, Drawable, GC, XSegment[], int);
Xvoid XDrawRectangle(
X    Display*, Drawable, GC, int x, int y,
X    unsigned int width, unsigned int height
X);
Xvoid XDrawRectangles(Display*, Drawable, GC, struct XRectangle[], int);
Xvoid XDrawArc(
X    Display*, Drawable, GC, int x, int y,
X    unsigned int width, unsigned int height,
X    int angle1, int angle2
X);
Xvoid XDrawArcs(Display*, Drawable, GC, XArc[], int);
Xvoid XFillRectangle(
X    Display*, Drawable, GC, int x, int y,
X    unsigned int width, unsigned int height
X);
Xvoid XFillRectangles(Display*, Drawable, GC, XRectangle[], int);
Xvoid XFillPolygon(
X    Display*, Drawable, GC, XPoint[], int, int shape, int mode
X);
Xvoid XFillArc(
X    Display*, Drawable, GC, int x, int y,
X    unsigned int width, unsigned int height,
X    int angle1, int angle2
X);
Xvoid XFillArcs(Display*, Drawable, GC, XArc[], int);
X
Xvoid XDrawString(Display*, Drawable, GC, int x, int y, const char*, int);
Xvoid XDrawImageString(
X    Display*, Drawable, GC, int x, int y, const char*, int
X);
X
Xvoid XGrabButton(
X    Display*, unsigned int, unsigned int, Window, Bool,
X    unsigned int, int ptrmode, int kbdmode, Window confined, Cursor
X);
Xvoid XUngrabButton(Display*, unsigned int, unsigned int, Window);
Xint XGrabPointer(
X    Display*, Window, Bool, unsigned int, int ptrmode, int kbdmode,
X    Window confined, Cursor, Time
X);
Xvoid XUngrabPointer(Display*, Time);
Xvoid XChangeActivePointerGrab(Display*, unsigned int, Cursor, Time);
Xvoid XGrabKeyboard(Display*, Window, Bool, int ptrmode, int kbdmode, Time);
Xvoid XUngrabKeyboard(Display*, Time);
Xvoid XGrabKey(
X    Display*, int, unsigned int, Window, Bool, int ptrmode, int kbdmode
X);
Xvoid XUngrabKey(Display*, int key, unsigned int, Window);
Xvoid XAllowEvents(Display*, int, Time);
X
Xvoid XGrabServer(Display*);
Xvoid XUngrabServer(Display*);
X
Xvoid XWarpPointer(
X    Display*, Window src, Window dst, int srcx, int srcy,
X    unsigned int width, unsigned int height, int dstx, int dsty
X);
Xvoid XSetInputFocus(Display*, Window, int revert, Time);
Xvoid XGetInputFocus(Display*, Window*, int* revert);
X
Xvoid XChangePointerControl(
X    Display*, Bool has_acc, Bool has_thresh, int acc1, int acc2, int thresh
X);
Xvoid XGetPointerControl(Display*, int* acc1, int* acc2, int* thresh);
X
Xvoid XChangeKeyboardControl(Display*, unsigned long, XKeyboardControl*);
Xvoid XGetKeyboardControl(Display*, XKeyboardState*);
Xvoid XAutoRepeatOn(Display*);
Xvoid XAutoRepeatOff(Display*);
Xvoid XBell(Display*, int percent);
Xint XSetPointerMapping(Display*, unsigned char[], int);
Xint XGetPointerMapping(Display*, unsigned char[], int);
X
Xvoid XQueryPointer(
X    Display*, Window, Window* root, Window* child, int* x0, int* y0,
X    int* wx, int* wy, unsigned int*
X);
X
Xvoid XChangeKeyboardMapping(Display*, int first, int percode, KeySym[], int);
Xvoid XSetModifierMapping(Display*, XModifierKeymap*);
Xvoid XGetModifierMapping(Display*, XModifierKeymap*);
X
Xvoid XSelectInput(Display*, Window, unsigned int);
Xvoid XFlush(Display*);
Xvoid XSync(Display*, int);
Xint XPending(Display*);
Xvoid XNextEvent(Display*, XEvent*);
Xvoid XPeekEvent(Display*, XEvent*);
X
Xtypedef Bool (*XPredicate)(Display*, XEvent*, char*);
X
Xvoid XIfEvent(Display*, XEvent*, XPredicate, char*);
Xint XCheckIfEvent(Display*, XEvent*, XPredicate, char*);
Xvoid XPeekIfEvent(Display*, XEvent*, XPredicate, char*);
Xvoid XPutBackEvent(Display*, XEvent*);
Xvoid XWindowEvent(Display*, Window, unsigned int, XEvent*);
Xint XCheckWindowEvent(Display*, Window, unsigned int, XEvent*);
Xvoid XMaskEvent(Display*, unsigned int, XEvent*);
Xint XCheckMaskEvent(Display*, unsigned int, XEvent*);
XXTimeCoord* XGetMotionEvents(
X    Display*, Window, Time start, Time stop, int* nevents
X);
X
Xvoid XSendEvent(Display*, Window, Bool, unsigned int, XEvent*);
X
XKeySym XLookupKeysym(XKeyEvent*, int);
Xvoid XRefereshKeyboardMapping(XMappingEvent*);
Xint XLookupString(XKeyEvent*, char*, int, KeySym*, struct _XComposeStatus*);
Xvoid XRebindKeySym(
X    Display*, KeySym, KeySym[], int, unsigned char*, int nbytes
X);
X
X/*
X * Functions not in original InterViews file
X */
X
XWindow XRootWindow ( Display*, int);
XWindow XDefaultRootWindow( Display*);
X
X#endif
X---------------------- end of ansiXlib.h -----------------------
END_OF_FILE
if test 22264 -ne `wc -c <'ansiXlib.h'`; then
    echo shar: \"'ansiXlib.h'\" unpacked with wrong size!
fi
# end of 'ansiXlib.h'
fi
if test -f 'ansiXm.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'ansiXm.h'\"
else
echo shar: Extracting \"'ansiXm.h'\" \(18519 characters\)
sed "s/^X//" >'ansiXm.h' <<'END_OF_FILE'
X
X/*
X * ansiXm.h - C++ interface to Motif
X *
X * We must disable C++ keywords that might be used as identifiers in Motif.
X * We must also disable function prototypes, so we can define their argument
X * types later.
X *
X */
X
X#ifndef _ansixm_h
X#define _ansixm_h
X
X/*
X * Redefine C++ keywords if an including file hasn't already done it
X */
X
X#ifndef _REDEFINEDCLASS
X
X#define _REDEFINEDCLASS	    /* so ansiXt.h & ansiXlib.h won't redefine class */
X#define _XMHREDEFINEDCLASS	/* so this file knows to undef class */
X
X#define class CC_class
X#define new CC_new
X#define delete CC_delete
X#define inline CC_inline
X#define virtual CC_virtual
X
X#endif /* _REDEFINEDCLASS */
X
X/*
X * Redefine Motif Functions
X */
X
X#define XmAddTabGroup cc_XmAddTabGroup
X
X#define XmCascadeButtonHighlight cc_XmCascadeButtonHighlight
X
X#define XmClipboardCancelCopy cc_XmClipboardCancelCopy
X#define XmClipboardCopy cc_XmClipboardCopy
X#define XmClipboardCopyByName cc_XmClipboardCopyByName
X#define XmClipboardEndCopy cc_XmClipboardEndCopy
X#define XmClipboardEndRetrieve cc_XmClipboardEndRetrieve
X#define XmClipboardInquireCount cc_XmClipboardInquireCount
X#define XmClipboardInquireFormat cc_XmClipboardInquireFormat
X#define XmClipboardInquireLength cc_XmClipboardInquireLength
X#define XmClipboardInquirePendingItems cc_XmClipboardInquirePendingItems
X#define XmClipboardLock cc_XmClipboardLock
X#define XmClipboardRegisterFormat cc_XmClipboardRegisterFormat
X#define XmClipboardRetrieve cc_XmClipboardRetrieve
X#define XmClipboardStartCopy cc_XmClipboardStartCopy
X#define XmClipboardStartRetrieve cc_XmClipboardStartRetrieve
X#define XmClipboardUndoCopy cc_XmClipboardUndoCopy
X#define XmClipboardUnlock cc_XmClipboardUnlock
X#define XmClipboardWithdrawFormat cc_XmClipboardWithdrawFormat
X
X#define XmCommandAppendValue cc_XmCommandAppendValue
X#define XmCommandError cc_XmCommandError
X#define XmCommandGetChild cc_XmCommandGetChild
X#define XmCommandSetValue cc_XmCommandSetValue
X
X#define XmCreateArrowButton cc_XmCreateArrowButton
X#define XmCreateArrowButtonGadget cc_XmCreateArrowButtonGadget
X
X#define XmCreateBulletinBoard cc_XmCreateBulletinBoard
X#define XmCreateBulletinBoardDialog cc_XmCreateBulletinBoardDialog
X
X#define XmCreateCascadeButton cc_XmCreateCascadeButton
X#define XmCreateCascadeButtonGadget cc_XmCreateCascadeButtonGadget
X
X#define XmCreateCommand cc_XmCreateCommand
X
X#define XmCreateDialogShell cc_XmCreateDialogShell
X
X#define XmCreateDrawingArea cc_XmCreateDrawingArea
X
X#define XmCreateDrawnButton cc_XmCreateDrawnButton
X
X#define XmCreateErrorDialog cc_XmCreateErrorDialog
X
X#define XmCreateFileSelectionBox cc_XmCreateFileSelectionBox
X#define XmCreateFileSelectionDialog cc_XmCreateFileSelectionDialog
X
X#define XmCreateForm cc_XmCreateForm
X#define XmCreateFormDialog cc_XmCreateFormDialog
X
X#define XmCreateFrame cc_XmCreateFrame
X
X#define XmCreateInformationDialog cc_XmCreateInformationDialog
X
X#define XmCreateLabel cc_XmCreateLabel
X#define XmCreateLabelGadget cc_XmCreateLabelGadget
X
X#define XmCreateList cc_XmCreateList
X
X#define XmCreateMainWindow cc_XmCreateMainWindow
X
X#define XmCreateMenuBar cc_XmCreateMenuBar
X
X#define XmCreateMenuShell cc_XmCreateMenuShell
X
X#define XmCreateMessageBox cc_XmCreateMessageBox
X#define XmCreateMessageDialog cc_XmCreateMessageDialog
X
X#define XmCreateOptionMenu cc_XmCreateOptionMenu
X
X#define XmCreatePanedWindow cc_XmCreatePanedWindow
X
X#define XmCreatePopupMenu cc_XmCreatePopupMenu
X
X#define XmCreatePromptDialog cc_XmCreatePromptDialog
X
X#define XmCreatePushButton cc_XmCreatePushButton
X#define XmCreatePushButtonGadget cc_XmCreatePushButtonGadget
X
X#define XmCreatePulldownMenu cc_XmCreatePulldownMenu
X
X#define XmCreateQuestionDialog cc_XmCreateQuestionDialog
X
X#define XmCreateRadioBox cc_XmCreateRadioBox
X
X#define XmCreateRowColumn cc_XmCreateRowColumn
X
X#define XmCreateScrollBar cc_XmCreateScrollBar
X#define XmCreateScrolledList cc_XmCreateScrolledList
X#define XmCreateScrolledText cc_XmCreateScrolledText
X#define XmCreateScrolledWindow cc_XmCreateScrolledWindow
X
X#define XmCreateScale cc_XmCreateScale
X
X#define XmCreateSelectionBox cc_XmCreateSelectionBox
X#define XmCreateSelectionBoxDialog cc_XmCreateSelectionBoxDialog
X
X#define XmCreateSeparator cc_XmCreateSeparator
X#define XmCreateSeparatorGadget cc_XmCreateSeparatorGadget
X
X#define XmCreateText cc_XmCreateText
X
X#define XmCreateToggleButton cc_XmCreateToggleButton
X#define XmCreateToggleButtonGadget cc_XmCreateToggleButtonGadget
X
X#define XmCreateWarningDialog cc_XmCreateWarningDialog
X#define XmCreateWorkingDialog cc_XmCreateWorkingDialog
X
X#define XmDestroyPixmap cc_XmDestroyPixmap
X
X#define XmFileSelectionBoxGetChild cc_XmFileSelectionBoxGetChild
X
X#define XmFileSelectionDoSearch cc_XmFileSelectionDoSearch
X
X#define XmGetAtomName cc_XmGetAtomName
X
X#define XmGetMenuCursor cc_XmGetMenuCursor
X
X#define XmGetPixmap cc_XmGetPixmap
X
X#define XmInstallImage cc_XmInstallImage
X
X#define XmInternAtom cc_XmInternAtom
X
X#define XmIsMotifWMRunning cc_XmIsMotifWMRunning
X
X#define XmListAddItem cc_XmListAddItem
X#define XmListAddItemUnselected cc_XmListAddItemUnselected
X#define XmListDeleteItem cc_XmListDeleteItem
X#define XmListDeletePos cc_XmListDeletePos
X#define XmListDeselectAllItems cc_XmListDeselectAllItems
X#define XmListDeselectItem cc_XmListDeselectItem
X#define XmListDeselectPos cc_XmListDeselectPos
X#define XmListItemExists cc_XmListItemExists
X#define XmListSelectItem cc_XmListSelectItem
X#define XmListSelectPos cc_XmListSelectPos
X#define XmListSelectBottomItem cc_XmListSelectBottomItem
X#define XmListSetBottomPos cc_XmListSetBottomPos
X#define XmListSetHorizPos cc_XmListSetHorizPos
X#define XmListSetItem cc_XmListSetItem
X#define XmListSetPos cc_XmListSetPos
X
X#define XmMainWindowSep1 cc_XmMainWindowSep1
X#define XmMainWindowSep2 cc_XmMainWindowSep2
X#define XmMainWindowSetAreas cc_XmMainWindowSetAreas
X
X#define XmMenuPosition cc_XmMenuPosition
X
X#define XmMessageBoxGetChild cc_XmMessageBoxGetChild
X
X#define XmOptionButtonGadget cc_XmOptionButtonGadget
X#define XmOptionLabelGadget cc_XmOptionLabelGadget
X
X#define XmRemoveTabGroup cc_XmRemoveTabGroup
X
X#define XmResolvePartOffsets cc_XmResolvePartOffsets
X
X#define XmScaleGetValue cc_XmScaleGetValue
X#define XmScaleSetValue cc_XmScaleSetValue
X
X#define XmScrollBarGetValues cc_XmScrollBarGetValues
X#define XmScrollBarSetValues cc_XmScrollBarSetValues
X
X#define XmScrolledWindowSetAreas cc_XmScrolledWindowSetAreas
X
X#define XmSelectionBoxGetChild cc_XmSelectionBoxGetChild
X
X#define XmSetMenuCursor cc_XmSetMenuCursor
X
X#define XmTextClearSelection cc_XmTextClearSelection
X#define XmTextGetEditable cc_XmTextGetEditable
X#define XmTextGetMaxLength cc_XmTextGetMaxLength
X#define XmTextGetSelection cc_XmTextGetSelection
X#define XmTextGetString cc_XmTextGetString
X#define XmTextReplace cc_XmTextReplace
X#define XmTextSetEditable cc_XmTextSetEditable
X#define XmTextSetMaxLength cc_XmTextSetMaxLength
X#define XmTextSetSelection cc_XmTextSetSelection
X#define XmTextSetString cc_XmTextSetString
X
X#define XmToggleButtonGadgetGetState cc_XmToggleButtonGadgetGetState
X#define XmToggleButtonGadgetSetState cc_XmToggleButtonGadgetSetState
X#define XmToggleButtonGetState cc_XmToggleButtonGetState
X#define XmToggleButtonSetState cc_XmToggleButtonSetState
X
X#define XmUninstallImage cc_XmUninstallImage
X
X#define XmUpdateDisplay cc_XmUpdateDisplay
X
X/*
X * Include Motif stuff
X */
X
X#include "ansiXlib.h"
X#include "ansiXt.h"
X#include <Xm/Xm.h>
X#include <Xm/CutPaste.h>
X#include <Xm/Text.h>
X
X/*
X * Undefine all the Motif functions
X */
X
X#undef XmAddTabGroup
X
X#undef XmCascadeButtonHighlight
X
X#undef XmClipboardCancelCopy
X#undef XmClipboardCopy
X#undef XmClipboardCopyByName
X#undef XmClipboardEndCopy
X#undef XmClipboardEndRetrieve
X#undef XmClipboardInquireCount
X#undef XmClipboardInquireFormat
X#undef XmClipboardInquireLength
X#undef XmClipboardInquirePendingItems
X#undef XmClipboardLock
X#undef XmClipboardRegisterFormat
X#undef XmClipboardRetrieve
X#undef XmClipboardStartCopy
X#undef XmClipboardStartRetrieve
X#undef XmClipboardUndoCopy
X#undef XmClipboardUnlock
X#undef XmClipboardWithdrawFormat
X
X#undef XmCommandAppendValue
X#undef XmCommandError
X#undef XmCommandGetChild
X#undef XmCommandSetValue
X
X#undef XmCreateArrowButton
X#undef XmCreateArrowButtonGadget
X
X#undef XmCreateBulletinBoard
X#undef XmCreateBulletinBoardDialog
X
X#undef XmCreateCascadeButton
X#undef XmCreateCascadeButtonGadget
X
X#undef XmCreateCommand
X
X#undef XmCreateDialogShell
X
X#undef XmCreateDrawingArea
X
X#undef XmCreateDrawnButton
X
X#undef XmCreateErrorDialog
X
X#undef XmCreateFileSelectionBox
X#undef XmCreateFileSelectionDialog
X
X#undef XmCreateForm
X#undef XmCreateFormDialog
X
X#undef XmCreateFrame
X
X#undef XmCreateInformationDialog
X
X#undef XmCreateLabel
X#undef XmCreateLabelGadget
X
X#undef XmCreateList
X
X#undef XmCreateMainWindow
X
X#undef XmCreateMenuBar
X
X#undef XmCreateMenuShell
X
X#undef XmCreateMessageBox
X#undef XmCreateMessageDialog
X
X#undef XmCreateOptionMenu
X
X#undef XmCreatePanedWindow
X
X#undef XmCreatePopupMenu
X
X#undef XmCreatePromptDialog
X
X#undef XmCreatePushButton
X#undef XmCreatePushButtonGadget
X
X#undef XmCreatePulldownMenu
X
X#undef XmCreateQuestionDialog
X
X#undef XmCreateRadioBox
X
X#undef XmCreateRowColumn
X
X#undef XmCreateScrollBar
X#undef XmCreateScrolledList
X#undef XmCreateScrolledText
X#undef XmCreateScrolledWindow
X
X#undef XmCreateScale
X
X#undef XmCreateSelectionBox
X#undef XmCreateSelectionBoxDialog
X
X#undef XmCreateSeparator
X#undef XmCreateSeparatorGadget
X
X#undef XmCreateText
X
X#undef XmCreateToggleButton
X#undef XmCreateToggleButtonGadget
X
X#undef XmCreateWarningDialog
X#undef XmCreateWorkingDialog
X
X#undef XmDestroyPixmap
X
X#undef XmFileSelectionBoxGetChild
X
X#undef XmFileSelectionDoSearch
X
X#undef XmGetAtomName
X
X#undef XmGetMenuCursor
X
X#undef XmGetPixmap
X
X#undef XmInstallImage
X
X#undef XmInternAtom
X
X#undef XmIsMotifWMRunning
X
X#undef XmListAddItem
X#undef XmListAddItemUnselected
X#undef XmListDeleteItem
X#undef XmListDeletePos
X#undef XmListDeselectAllItems
X#undef XmListDeselectItem
X#undef XmListDeselectPos
X#undef XmListItemExists
X#undef XmListSelectItem
X#undef XmListSelectPos
X#undef XmListSelectBottomItem
X#undef XmListSetBottomPos
X#undef XmListSetHorizPos
X#undef XmListSetItem
X#undef XmListSetPos
X
X#undef XmMainWindowSep1
X#undef XmMainWindowSep2
X#undef XmMainWindowSetAreas
X
X#undef XmMenuPosition
X
X#undef XmMessageBoxGetChild
X
X#undef XmOptionButtonGadget
X#undef XmOptionLabelGadget
X
X#undef XmRemoveTabGroup
X
X#undef XmResolvePartOffsets
X
X#undef XmScaleGetValue
X#undef XmScaleSetValue
X
X#undef XmScrollBarGetValues
X#undef XmScrollBarSetValues
X
X#undef XmScrolledWindowSetAreas
X
X#undef XmSelectionBoxGetChild
X
X#undef XmSetMenuCursor
X
X#undef XmTextClearSelection
X#undef XmTextGetEditable
X#undef XmTextGetMaxLength
X#undef XmTextGetSelection
X#undef XmTextGetString
X#undef XmTextReplace
X#undef XmTextSetEditable
X#undef XmTextSetMaxLength
X#undef XmTextSetSelection
X#undef XmTextSetString
X
X#undef XmToggleButtonGadgetGetState
X#undef XmToggleButtonGadgetSetState
X#undef XmToggleButtonGetState
X#undef XmToggleButtonSetState
X
X#undef XmUninstallImage
X
X#undef XmUpdateDisplay
X
X/*
X * Undefine C++ keywords and other various #define's if they
X * were originally #define'd in this file.
X */
X
X#ifdef _XMHREDEFINEDCLASS
X
X#undef class
X#undef new
X#undef delete
X#undef inline
X#undef virtual
X
X#undef _XMHREDEFINEDCLASS
X#undef _REDEFINEDCLASS
X
X#endif /* _XMHREDEFINEDCLASS */
X
X/*
X * Motif function prototypes with arguments specified - in man page order
X */
X
Xvoid XmAddTabGroup( Widget);
X
Xvoid XmCascadeButtonHighlight( Widget, Boolean);
X
Xvoid XmClipboardCancelCopy( Display*, Window, long);
Xint XmClipboardCopy( Display*, Window, long, char*, char*, unsigned long,
X		     int, int*);
Xint XmClipboardCopyByName( Display*, Window, int, char*, unsigned long, int);
Xint XmClipboardEndCopy( Display*, Window, long);
Xint XmClipboardEndRetrieve( Display*, Window);
Xint XmClipboardInquireCount( Display*, Window, int*, int*);
Xint XmClipboardInquireFormat( Display*, Window, int, char*, unsigned long,
X			      unsigned long*);
Xint XmClipboardInquireLength( Display*, Window, char*, unsigned long*);
Xint XmClipboardInquirePendingItems( Display*, Window, char*,
X				    XmClipboardPendingList*, unsigned long*);
Xint XmClipboardLock( Display*, Window);
Xint XmClipboardRegisterFormat( Display*, char*, unsigned long);
Xint XmClipboardRetrieve( Display*, Window, char*, char*, unsigned long,
X			 unsigned long*, int*);
Xint XmClipboardStartCopy( Display*, Window, XmString, Time, Widget,
X			  XtCallbackProc, long*);
Xint XmClipboardStartRetrieve( Display*, Window, Time);
Xint XmClipboardUndoCopy( Display*, Window);
Xint XmClipboardUnlock( Display*, Window, Boolean);
Xint XmClipboardWithdrawFormat( Display*, Window, int);
X
Xvoid XmCommandAppendValue( Widget, XmString);
Xvoid XmCommandError( Widget, XmString);
XWidget XmCommandGetChild( Widget, unsigned char);
Xvoid XmCommandSetValue( Widget, XmString);
X
XWidget XmCreateArrowButton( Widget, String, ArgList, Cardinal);
XWidget XmCreateArrowButtonGadget( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateBulletinBoard( Widget, String, ArgList, Cardinal);
XWidget XmCreateBulletinBoardDialog( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateCascadeButton( Widget, String, ArgList, Cardinal);
XWidget XmCreateCascadeButtonGadget( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateCommand( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateDialogShell( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateDrawingArea( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateDrawnButton( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateErrorDialog( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateFileSelectionBox( Widget, String, ArgList, Cardinal);
XWidget XmCreateFileSelectionDialog( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateForm( Widget, String, ArgList, Cardinal);
XWidget XmCreateFormDialog( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateFrame( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateInformationDialog( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateLabel( Widget, String, ArgList, Cardinal);
XWidget XmCreateLabelGadget( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateList( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateMainWindow( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateMenuBar( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateMenuShell( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateMessageBox( Widget, String, ArgList, Cardinal);
XWidget XmCreateMessageDialog( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateOptionMenu( Widget, String, ArgList, Cardinal);
X
XWidget XmCreatePanedWindow( Widget, String, ArgList, Cardinal);
X
XWidget XmCreatePopupMenu( Widget, String, ArgList, Cardinal);
X
XWidget XmCreatePromptDialog( Widget, String, ArgList, Cardinal);
X
XWidget XmCreatePushButton( Widget, String, ArgList, Cardinal);
XWidget XmCreatePushButtonGadget( Widget, String, ArgList, Cardinal);
X
XWidget XmCreatePulldownMenu( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateQuestionDialog( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateRadioBox( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateRowColumn( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateScrollBar( Widget, String, ArgList, Cardinal);
XWidget XmCreateScrolledList( Widget, String, ArgList, Cardinal);
XWidget XmCreateScrolledText( Widget, String, ArgList, Cardinal);
XWidget XmCreateScrolledWindow( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateScale( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateSelectionBox( Widget, String, ArgList, Cardinal);
XWidget XmCreateSelectionBoxDialog( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateSeparator( Widget, String, ArgList, Cardinal);
XWidget XmCreateSeparatorGadget( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateText( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateToggleButton( Widget, String, ArgList, Cardinal);
XWidget XmCreateToggleButtonGadget( Widget, String, ArgList, Cardinal);
X
XWidget XmCreateWarningDialog( Widget, String, ArgList, Cardinal);
XWidget XmCreateWorkingDialog( Widget, String, ArgList, Cardinal);
X
XBoolean XmDestroyPixmap( Screen*, Pixmap);
X
XWidget XmFileSelectionBoxGetChild( Widget, unsigned char);
X
Xvoid XmFileSelectionDoSearch( Widget, XmString);
X
XString XmGetAtomName( Display*, Atom*);
X
XCursor XmGetMenuCursor( Display*);
X
XPixmap XmGetPixmap( Screen*, char*, Pixel, Pixel);
X
XBoolean XmInstallImage( XImage*, char*);
X
XAtom XmInternAtom( Display*, String, Boolean);
X
XBoolean XmIsMotifWMRunning( Widget);
X
Xvoid XmListAddItem( Widget, XmString, int);
Xvoid XmListAddItemUnselected( Widget, XmString, int);
Xvoid XmListDeleteItem( Widget, XmString);
Xvoid XmListDeletePos( Widget, int);
Xvoid XmListDeselectAllItems( Widget);
Xvoid XmListDeselectItem( Widget, XmString);
Xvoid XmListDeselectPos( Widget, int);
XBoolean XmListItemExists( Widget, XmString);
Xvoid XmListSelectItem( Widget);
Xvoid XmListSelectPos( Widget, int, Boolean);
Xvoid XmListSelectBottomItem( Widget, XmString);
Xvoid XmListSetBottomPos( Widget, int);
Xvoid XmListSetHorizPos( Widget, int);
Xvoid XmListSetItem( Widget, XmString);
Xvoid XmListSetPos( Widget, int);
X
XWidget XmMainWindowSep1( Widget);
XWidget XmMainWindowSep2( Widget);
Xvoid XmMainWindowSetAreas( Widget, Widget, Widget, Widget, Widget, Widget);
X
Xvoid XmMenuPosition( Widget, XButtonPressedEvent*);
X
XWidget XmMessageBoxGetChild( Widget, unsigned char);
X
XWidget XmOptionButtonGadget( Widget);
XWidget XmOptionLabelGadget( Widget);
X
Xvoid XmRemoveTabGroup( Widget);
X
X/* if you uncomment this, you'll have to include XmP.h
Xvoid XmResolvePartOffsets( WidgetClass, XmOffsetPtr*);
X*/
X
Xvoid XmScaleGetValue( Widget, int*);
Xvoid XmScaleSetValue( Widget, int);
X
Xvoid XmScrollBarGetValues( Widget, int*, int*, int*, int*);
Xvoid XmScrollBarSetValues( Widget, int, int, int, int, Boolean);
X
Xvoid XmScrolledWindowSetAreas( Widget, Widget, Widget, Widget);
X
XWidget XmSelectionBoxGetChild( Widget, unsigned char);
X
Xvoid XmSetMenuCursor( Display*, Cursor);
X
Xvoid XmTextClearSelection( Widget, Time);
XBoolean XmTextGetEditable( Widget);
Xint XmTextGetMaxLength( Widget);
Xchar* XmTextGetSelection( Widget);
Xchar* XmTextGetString( Widget);
Xvoid XmTextReplace( Widget, XmTextPosition, XmTextPosition, char*);
Xvoid XmTextSetEditable( Widget, Boolean);
Xvoid XmTextSetMaxLength( Widget, int);
Xvoid XmTextSetSelection( Widget, XmTextPosition, XmTextPosition, Time);
Xvoid XmTextSetString( Widget, char*);
X
XBoolean XmToggleButtonGadgetGetState( Widget);
Xvoid XmToggleButtonGadgetSetState( Widget, Boolean, Boolean);
XBoolean XmToggleButtonGetState( Widget);
Xvoid XmToggleButtonSetState( Widget, Boolean, Boolean);
X
XBoolean XmUninstallImage( XImage*);
X
Xvoid XmUpdateDisplay( Widget);
X
X#endif /* _ansixm_h */
END_OF_FILE
if test 18519 -ne `wc -c <'ansiXm.h'`; then
    echo shar: \"'ansiXm.h'\" unpacked with wrong size!
fi
# end of 'ansiXm.h'
fi
if test -f 'ansiXt.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'ansiXt.h'\"
else
echo shar: Extracting \"'ansiXt.h'\" \(18708 characters\)
sed "s/^X//" >'ansiXt.h' <<'END_OF_FILE'
X
X/*
X * ansiXt.h - C++ interface to the X Intrinsics
X *
X * We must disable C++ keywords that might be used as identifiers in Motif.
X * We must also disable function prototypes, so we can define their argument
X * types later.
X *
X * The functions are in man page order, which is roughly alphabetical.
X * Functions which aren't defined in the man pages are put in where it
X * seems sensible.
X *
X */
X
X#ifndef _ansiXt_h
X#define _ansiXt_h
X
X/*
X * Redefine C++ keywords if an including file hasn't already done it
X */
X
X#ifndef _REDEFINEDCLASS
X
X#define _REDEFINEDCLASS		/* so ansiXlib.h won't redefine class */
X#define _XTHREDEFINEDCLASS	/* so this file knows to undef class */
X
X#define class CC_class
X#define new CC_new
X#define delete CC_delete
X#define inline CC_inline
X#define virtual CC_virtual
X
X#endif /* _REDEFINEDCLASS */
X
X/*
X * Redefine Intrinsics Functions
X */
X
X#define XtAddCallback cc_XtAddCallback
X#define XtAddCallbacks cc_XtAddCallbacks
X#define XtRemoveCallback cc_XtRemoveCallback
X#define XtRemoveCallbacks cc_XtRemoveCallbacks
X#define XtRemoveAllCallbacks cc_XtRemoveAllCallbacks
X
X#define XtAddEventHandler cc_XtAddEventHandler
X#define XtAddRawEventHandler cc_XtAddRawEventHandler
X#define XtRemoveEventHandler cc_XtRemoveEventHandler
X#define XtRemoveRawEventHandler cc_XtRemoveRawEventHandler
X
X#define XtAddExposureToRegion cc_XtAddExposureToRegion
X
X#define XtAddGrab cc_XtAddGrab
X#define XtRemoveGrab cc_XtRemoveGrab
X
X#define XtAppAddActions cc_XtAppAddActions
X
X#define XtAppAddConverter cc_XtAppAddConverter
X#define XtAddConverter cc_XtAddConverter
X
X#define XtAppAddInput cc_XtAppAddInput
X#define XtRemoveInput cc_XtRemoveInput
X
X#define XtAppAddTimeOut cc_XtAppAddTimeOut
X#define XtRemoveTimeOut cc_XtRemoveTimeOut
X
X#define XtAppAddWorkProc cc_XtAppAddWorkProc
X#define XtRemoveWorkProc cc_XtRemoveWorkProc
X
X#define XtAppCreateShell cc_XtAppCreateShell
X
X#define XtAppError cc_XtAppError
X#define XtAppSetErrorHandler cc_XtAppSetErrorHandler
X#define XtAppSetWarningHandler cc_XtAppSetWarningHandler
X#define XtAppWarning cc_XtAppWarning
X
X#define XtAppErrorMsg cc_XtAppErrorMsg
X#define XtAppSetErrorMsgHandler cc_XtAppSetErrorMsgHandler
X#define XtAppSetWarningMsgHandler cc_XtAppSetWarningMsgHandler
X#define XtAppWarningMsg cc_XtAppWarningMsg
X
X#define XtAppGetErrorDatabase cc_XtAppGetErrorDatabase
X#define XtAppGetErrorDatabaseText cc_XtAppGetErrorDatabaseText
X
X#define XtAppGetSelectionTimeout cc_XtAppGetSelectionTimeout
X#define XtAppSetSelectionTimeout cc_XtAppSetSelectionTimeout
X
X#define XtAppNextEvent cc_XtAppNextEvent
X#define XtAppPeekEvent cc_XtAppPeekEvent
X#define XtAppPending cc_XtAppPending
X#define XtAppProcessEvent cc_XtAppProcessEvent
X#define XtDispatchEvent cc_XtDispatchEvent
X#define XtAppMainLoop cc_XtAppMainLoop
X
X#define XtBuildEventMask cc_XtBuildEventMask
X
X#define XtCallAcceptFocus cc_XtCallAcceptFocus
X
X#define XtCallCallbacks cc_XtCallCallbacks
X#define XtHasCallbacks cc_XtHasCallbacks
X
X#define XtClass cc_XtClass
X#define XtSuperclass cc_XtSuperclass
X#define XtIsSubclass cc_XtIsSubclass
X#define XtCheckSubclass cc_XtCheckSubclass
X/* #define XtIsComposite cc_XtIsComposite --- macro */
X#define XtIsManaged cc_XtIsManaged
X
X#define XtConfigureWidget cc_XtConfigureWidget
X#define XtMoveWidget cc_XtMoveWidget
X#define XtResizeWidget cc_XtResizeWidget
X#define XtResizeWindow cc_XtResizeWindow
X
X#define XtConvert cc_XtConvert
X#define XtDirectConvert cc_XtDirectConvert
X
X#define XtCreateApplicationContext cc_XtCreateApplicationContext
X#define XtDestroyApplicationContext cc_XtDestroyApplicationContext
X#define XtWidgetToApplicationContext cc_XtWidgetToApplicationContext
X#define XtToolkitInitialize cc_XtToolkitInitialize
X
X#define XtCreatePopupShell cc_XtCreatePopupShell
X
X#define XtCreateWidget cc_XtCreateWidget
X#define XtCreateManagedWidget cc_XtCreateManagedWidget
X#define XtDestroyWidget cc_XtDestroyWidget
X
X#define XtCreateWindow cc_XtCreateWindow
X
X#define XtDisplay cc_XtDisplay
X#define XtParent cc_XtParent
X#define XtScreen cc_XtScreen
X#define XtWindow cc_XtWindow
X
X#define XtDisplayInitialize cc_XtDisplayInitialize
X#define XtOpenDisplay cc_XtOpenDisplay
X#define XtCloseDisplay cc_XtCloseDisplay
X#define XtDatabase cc_XtDatabase
X
X#define XtGetGC cc_XtGetGC
X#define XtReleaseGC cc_XtReleaseGC
X
X#define XtGetResourceList cc_XtGetResourceList
X
X#define XtGetSelectionValue cc_XtGetSelectionValue
X#define XtGetSelectionValues cc_XtGetSelectionValues
X#define XtGetSelectionValueIncremental cc_XtGetSelectionValueIncremental
X#define XtGetSelectionValuesIncremental cc_XtGetSelectionValuesIncremental
X
X#define XtGetSubresources cc_XtGetSubresources
X#define XtGetApplicationResources cc_XtGetApplicationResources
X
X#define XtMakeGeometryRequest cc_XtMakeGeometryRequest
X#define XtMakeResizeRequest cc_XtMakeResizeRequest
X
X#define XtMalloc cc_XtMalloc
X#define XtCalloc cc_XtCalloc
X#define XtRealloc cc_XtRealloc
X#define XtFree cc_XtFree
X/* #define XtNewString cc_XtNewString --- macro */
X
X#define XtManageChildren cc_XtManageChildren
X#define XtManageChild cc_XtManageChild
X#define XtUnmanageChildren cc_XtUnmanageChildren
X#define XtUnmanageChild cc_XtUnmanageChild
X
X/* #define XtMapWidget cc_XtMapWidget --- macro */
X#define XtSetMappedWhenManaged cc_XtSetMappedWhenManaged
X/* #define XtUnmapWidget cc_XtUnmapWidget --- macro */
X
X#define XtNameToWidget cc_XtNameToWidget
X#define XtWindowToWidget cc_XtWindowToWidget
X
X#define XtOwnSelection cc_XtOwnSelection
X#define XtOwnSelectionIncremental cc_XtOwnSelectionIncremental
X#define XtDisownSelection cc_XtDisownSelection
X
X#define XtParseAcceleratorTable cc_XtParseAcceleratorTable
X#define XtInstallAccelerators cc_XtInstallAccelerators
X#define XtInstallAllAccelerators cc_XtInstallAllAccelerators
X
X#define XtParseTranslationTable cc_XtParseTranslationTable
X#define XtAugmentTranslations cc_XtAugmentTranslations
X#define XtOverrideTranslations cc_XtOverrideTranslations
X#define XtUninstallTranslations cc_XtUninstallTranslations
X
X#define XtPopdown cc_XtPopdown
X#define XtCallbackPopdown cc_XtCallbackPopdown
X#define MenuPopdown cc_MenuPopdown
X
X#define XtPopup cc_XtPopup
X#define XtCallbackNone cc_XtCallbackNone
X#define XtCallbackNonexclusive cc_XtCallbackNonexclusive
X#define XtCallbackExclusive cc_XtCallbackExclusive
X#define MenuPopup cc_MenuPopup
X
X#define XtQueryGeometry cc_XtQueryGeometry
X
X#define XtRealizeWidget cc_XtRealizeWidget
X#define XtIsRealized cc_XtIsRealized
X#define XtUnrealizeWidget cc_XtUnrealizeWidget
X
X/* #define XtSetArg --- macro */
X#define XtMergeArgLists cc_XtMergeArgLists
X
X#define XtSetKeyboardFocus cc_XtSetKeyboardFocus
X
X#define XtSetKeyTranslator cc_XtSetKeyTranslator
X#define XtTranslateKeycode cc_XtTranslateKeycode
X#define XtTranslateKey cc_XtTranslateKey
X#define XtRegisterCaseConverter cc_XtRegisterCaseConverter
X#define XtConvertCase cc_XtConvertCase
X
X#define XtSetSensitive cc_XtSetSensitive
X#define XtIsSensitive cc_XtIsSensitive
X
X#define XtSetValues cc_XtSetValues
X#define XtSetSubvalues cc_XtSetSubvalues
X#define XtGetValues cc_XtGetValues
X#define XtGetSubvalues cc_XtGetSubvalues
X
X#define XtStringConversionWarning cc_XtStringConversionWarning
X
X#define XtTranslateCoords cc_XtTranslateCoords
X
X/*
X * Include the necessary Xlib and Intrinsics files
X */
X
X#include "ansiXlib.h"
X#include <X11/Intrinsic.h>
X#include <X11/StringDefs.h>
X#include <X11/Selection.h>
X#include <X11/Xatom.h>
X#include <X11/Shell.h>
X
X/*
X * Undefine all the Intrinsics functions
X */
X
X#undef XtAddCallback
X#undef XtAddCallbacks
X#undef XtRemoveCallback
X#undef XtRemoveCallbacks
X#undef XtRemoveAllCallbacks
X
X#undef XtAddEventHandler
X#undef XtAddRawEventHandler
X#undef XtRemoveEventHandler
X#undef XtRemoveRawEventHandler
X
X#undef XtAddExposureToRegion
X
X#undef XtAddGrab
X#undef XtRemoveGrab
X
X#undef XtAppAddActions
X
X#undef XtAppAddConverter
X#undef XtAddConverter
X
X#undef XtAppAddInput
X#undef XtRemoveInput
X
X#undef XtAppAddTimeOut
X#undef XtRemoveTimeOut
X
X#undef XtAppAddWorkProc
X#undef XtRemoveWorkProc
X
X#undef XtAppCreateShell
X
X#undef XtAppError
X#undef XtAppSetErrorHandler
X#undef XtAppSetWarningHandler
X#undef XtAppWarning
X
X#undef XtAppErrorMsg
X#undef XtAppSetErrorMsgHandler
X#undef XtAppSetWarningMsgHandler
X#undef XtAppWarningMsg
X
X#undef XtAppGetErrorDatabase
X#undef XtAppGetErrorDatabaseText
X
X#undef XtAppGetSelectionTimeout
X#undef XtAppSetSelectionTimeout
X
X#undef XtAppNextEvent
X#undef XtAppPeekEvent
X#undef XtAppPending
X#undef XtAppProcessEvent
X#undef XtDispatchEvent
X#undef XtAppMainLoop
X
X#undef XtBuildEventMask
X
X#undef XtCallAcceptFocus
X
X#undef XtCallCallbacks
X#undef XtHasCallbacks
X
X#undef XtClass
X#undef XtSuperclass
X#undef XtIsSubclass
X#undef XtCheckSubclass
X#undef XtIsManaged
X
X#undef XtConfigureWidget
X#undef XtMoveWidget
X#undef XtResizeWidget
X#undef XtResizeWindow
X
X#undef XtConvert
X#undef XtDirectConvert
X
X#undef XtCreateApplicationContext
X#undef XtDestroyApplicationContext
X#undef XtWidgetToApplicationContext
X#undef XtToolkitInitialize
X
X#undef XtCreatePopupShell
X
X#undef XtCreateWidget
X#undef XtCreateManagedWidget
X#undef XtDestroyWidget
X
X#undef XtCreateWindow
X
X#undef XtDisplay
X#undef XtParent
X#undef XtScreen
X#undef XtWindow
X
X#undef XtDisplayInitialize
X#undef XtOpenDisplay
X#undef XtCloseDisplay
X#undef XtDatabase
X
X#undef XtGetGC
X#undef XtReleaseGC
X
X#undef XtGetResourceList
X
X#undef XtGetSelectionValue
X#undef XtGetSelectionValues
X#undef XtGetSelectionValueIncremental
X#undef XtGetSelectionValuesIncremental
X
X#undef XtGetSubresources
X#undef XtGetApplicationResources
X
X#undef XtMakeGeometryRequest
X#undef XtMakeResizeRequest
X
X#undef XtMalloc
X#undef XtCalloc
X#undef XtRealloc
X#undef XtFree
X
X#undef XtManageChildren
X#undef XtManageChild
X#undef XtUnmanageChildren
X#undef XtUnmanageChild
X
X#undef XtSetMappedWhenManaged
X
X#undef XtNameToWidget
X#undef XtWindowToWidget
X
X#undef XtOwnSelection
X#undef XtOwnSelectionIncremental
X#undef XtDisownSelection
X
X#undef XtParseAcceleratorTable
X#undef XtInstallAccelerators
X#undef XtInstallAllAccelerators
X
X#undef XtParseTranslationTable
X#undef XtAugmentTranslations
X#undef XtOverrideTranslations
X#undef XtUninstallTranslations
X
X#undef XtPopdown
X#undef XtCallbackPopdown
X#undef MenuPopdown
X
X#undef XtPopup
X#undef XtCallbackNone
X#undef XtCallbackNonexclusive
X#undef XtCallbackExclusive
X#undef MenuPopup
X
X#undef XtQueryGeometry
X
X#undef XtRealizeWidget
X#undef XtIsRealized
X#undef XtUnrealizeWidget
X
X/* #undef XtSetArg */
X#undef XtMergeArgLists
X
X#undef XtSetKeyboardFocus
X
X#undef XtSetKeyTranslator
X#undef XtTranslateKeycode
X#undef XtTranslateKey
X#undef XtRegisterCaseConverter
X#undef XtConvertCase
X
X#undef XtSetSensitive
X#undef XtIsSensitive
X
X#undef XtSetValues
X#undef XtSetSubvalues
X#undef XtGetValues
X#undef XtGetSubvalues
X
X#undef XtStringConversionWarning
X
X#undef XtTranslateCoords
X
X/*
X * Undefine C++ keywords and other various #define's if they were
X * originally #define'd in this file.
X */
X
X#ifdef _XTHREDEFINEDCLASS
X
X#undef class
X#undef new
X#undef delete
X#undef inline
X#undef virtual
X
X#undef _XTHREDEFINEDCLASS
X#undef _REDEFINEDCLASS
X
X#endif /* _XTHREDEFINEDCLASS */
X
X/*
X * Xt function prototypes with arguments specified
X */
X
Xvoid XtAddCallback( Widget, String, XtCallbackProc, caddr_t);
Xvoid XtAddCallbacks( Widget, String, XtCallbackList);
Xvoid XtRemoveCallback( Widget, String, XtCallbackProc, caddr_t);
Xvoid XtRemoveCallbacks( Widget, String, XtCallbackList);
Xvoid XtRemoveAllCallbacks( Widget, String);
X
Xvoid XtAddEventHandler( Widget, EventMask, Boolean, XtEventHandler, caddr_t);
Xvoid XtAddRawEventHandler( Widget, EventMask, Boolean, XtEventHandler, caddr_t);
Xvoid XtRemoveEventHandler( Widget, EventMask, Boolean, XtEventHandler, caddr_t);
Xvoid XtRemoveRawEventHandler(Widget,EventMask,Boolean, XtEventHandler, caddr_t);
X
Xvoid XtAddExposureToRegion( XEvent*, Region);
X
Xvoid XtAddGrab( Widget, Boolean, Boolean);
Xvoid XtRemoveGrab( Widget);
X
Xvoid XtAppAddActions( XtAppContext, XtActionList, Cardinal);
X
Xvoid XtAppAddConverter( XtAppContext, String, String, XtConverter,
X			XtConvertArgList, Cardinal);
Xvoid XtAddConverter( String, String, XtConverter, XtConvertArgList, Cardinal);
X
XXtInputId XtAppAddInput( XtAppContext, int, caddr_t,
X			 XtInputCallbackProc, caddr_t);
Xvoid XtRemoveInput( XtInputId);
X
XXtIntervalId XtAppAddTimeOut( XtAppContext, unsigned long,
X			      XtTimerCallbackProc, caddr_t);
Xvoid XtRemoveTimeOut( XtIntervalId);
X
XXtWorkProcId XtAppAddWorkProc( XtAppContext, XtWorkProc, caddr_t);
Xvoid XtRemoveWorkProc( XtWorkProcId);
X
XWidget XtAppCreateShell( String, String, WidgetClass, Display*,
X			 ArgList, Cardinal);
X
Xvoid XtAppError( XtAppContext, String);
Xvoid XtAppSetErrorHandler( XtAppContext, XtErrorHandler);
Xvoid XtAppSetWarningHandler( XtAppContext, XtErrorHandler);
Xvoid XtAppWarning( XtAppContext, String);
X
Xvoid XtAppErrorMsg( XtAppContext, String, String, String,
X		    String, String*, Cardinal*);
Xvoid XtAppSetErrorMsgHandler( XtAppContext, XtErrorMsgHandler);
Xvoid XtAppSetWarningMsgHandler( XtAppContext, XtErrorMsgHandler);
Xvoid XtAppWarningMsg( XtAppContext, String, String, String,
X		      String, String*, Cardinal*);
X
XXrmDatabase *XtAppGetErrorDatabase( XtAppContext);
Xvoid XtAppGetErrorDatabaseText( XtAppContext, char*, char*, char*,
X				char*, char*, int, XrmDatabase);
X
Xunsigned long XtAppGetSelectionTimeout( XtAppContext);
Xvoid XtAppSetSelectionTimeout( XtAppContext, unsigned long);
X
Xvoid XtAppNextEvent( XtAppContext, XEvent*);
XBoolean XtAppPeekEvent( XtAppContext, XEvent*);
XXtInputMask XtAppPending( XtAppContext);
Xvoid XtAppProcessEvent( XtAppContext, XtInputMask);
XBoolean XtDispatchEvent( XEvent*);
Xvoid XtAppMainLoop(XtAppContext);
X
XEventMask XtBuildEventMask( Widget);
X
XBoolean XtCallAcceptFocus( Widget, Time*);
X
Xvoid XtCallCallbacks( Widget, String, caddr_t);
XXtCallbackStatus XtHasCallbacks( Widget, String);
X
XWidgetClass XtClass( Widget);
XWidgetClass XtSuperclass( Widget);
XBoolean XtIsSubclass( Widget, WidgetClass);
Xvoid XtCheckSubclass( Widget, WidgetClass, String);
XBoolean XtIsManaged( Widget);
X
Xvoid XtConfigureWidget( Widget, Position, Position,
X			Dimension, Dimension, Dimension);
Xvoid XtMoveWidget( Widget, Position, Position);
Xvoid XtResizeWidget( Widget, Dimension, Dimension, Dimension);
Xvoid XtResizeWindow( Widget);
X
Xvoid XtConvert( Widget, String, XrmValuePtr, String, XrmValuePtr);
Xvoid XtDirectConvert( XtConverter, XrmValuePtr, Cardinal,
X		      XrmValuePtr, XrmValuePtr);
X
XXtAppContext XtCreateApplicationContext();
Xvoid XtDestroyApplicationContext( XtAppContext);
XXtAppContext XtWidgetToApplicationContext( Widget);
Xvoid XtToolkitInitialize();
X
XWidget XtCreatePopupShell( String, WidgetClass, Widget, ArgList, Cardinal);
X
XWidget XtCreateWidget( String, WidgetClass, Widget, ArgList, Cardinal);
XWidget XtCreateManagedWidget( String, WidgetClass, Widget, ArgList, Cardinal);
Xvoid XtDestroyWidget( Widget);
X
Xvoid XtCreateWindow( Widget, unsigned int, Visual*,
X		     XtValueMask, XSetWindowAttributes*);
X
XDisplay* XtDisplay( Widget);
XWidget XtParent( Widget);
XScreen* XtScreen( Widget);
XWindow XtWindow( Widget);
X
Xvoid XtDisplayInitialize( XtAppContext, Display*, String, String,
X			  XrmOptionDescRec*, Cardinal, Cardinal*, String*);
XDisplay* XtOpenDisplay( XtAppContext, String, String, String,
X			XrmOptionDescRec*, Cardinal, Cardinal*, String*);
Xvoid XtCloseDisplay( Display*);
XXrmDatabase XtDatabase( Display*);
X
XGC XtGetGC( Widget, XtGCMask, XGCValues*);
Xvoid XtReleaseGC( Widget, GC);
X
Xvoid XtGetResourceList( WidgetClass, XtResourceList*, Cardinal*);
X
Xvoid XtGetSelectionValue( Widget, Atom, Atom, XtSelectionCallbackProc,
X			  caddr_t, Time);
Xvoid XtGetSelectionValues( Widget, Atom, Atom*, int, XtSelectionCallbackProc,
X			   caddr_t, Time);
Xvoid XtGetSelectionValueIncremental( Widget, Atom, Atom,
X				     XtSelectionCallbackProc,
X				     XtSelectionCallbackProc,
X				     caddr_t, Time);
Xvoid XtGetSelectionValuesIncremental( Widget, Atom, Atom*, int,
X				     XtSelectionCallbackProc,
X				     XtSelectionCallbackProc,
X				     caddr_t, Time);
X
Xvoid XtGetSubresources( Widget, caddr_t, String, String, XtResourceList,
X			Cardinal, ArgList, Cardinal);
Xvoid XtGetApplicationResources( Widget, caddr_t, XtResourceList,
X				Cardinal, ArgList, Cardinal);
X
XXtGeometryResult XtMakeGeometryRequest( Widget, XtWidgetGeometry*,
X					XtWidgetGeometry*);
XXtGeometryResult XtMakeResizeRequest( Widget, Dimension, Dimension,
X				      Dimension*, Dimension*);
X
Xchar* XtMalloc( Cardinal);
Xchar* XtCalloc( Cardinal, Cardinal);
Xchar* XtRealloc( char*, Cardinal);
Xvoid XtFree( char*);
X
Xvoid XtManageChildren( WidgetList, Cardinal);
Xvoid XtManageChild( Widget);
Xvoid XtUnmanageChildren( WidgetList, Cardinal);
Xvoid XtUnmanageChild( Widget);
X
Xvoid XtSetMappedWhenManaged( Widget, Boolean);
X
XWidget XtNameToWidget( Widget, String);
XWidget XtWindowToWidget( Display*, Window);
X
XBoolean XtOwnSelection( Widget, Atom, Time, XtSelectionCallbackProc,
X			XtSelectionCallbackProc, XtSelectionCallbackProc);
XBoolean XtOwnSelectionIncremental( Widget, Atom, Time,
X				   XtSelectionCallbackProc,
X				   XtSelectionCallbackProc,
X				   XtSelectionCallbackProc,
X				   XtSelectionCallbackProc, caddr_t);
Xvoid XtDisownSelection( Widget, Atom, Time);
X
XXtAccelerators XtParseAcceleratorTable( String);
Xvoid XtInstallAccelerators( Widget, Widget);
Xvoid XtInstallAllAccelerators( Widget, Widget);
X
XXtTranslations XtParseTranslationTable( String);
Xvoid XtAugmentTranslations( Widget, XtTranslations);
Xvoid XtOverrideTranslations( Widget, XtTranslations);
Xvoid XtUninstallTranslations( Widget);
X
Xvoid XtPopdown( Widget);
Xvoid XtCallbackPopdown( Widget, caddr_t, caddr_t);
Xvoid MenuPopdown( String);
X
Xvoid XtPopup( Widget, XtGrabKind);
Xvoid XtCallbackNone( Widget, caddr_t, caddr_t);
Xvoid XtCallbackNonexclusive( Widget, caddr_t, caddr_t);
Xvoid XtCallbackExclusive( Widget, caddr_t, caddr_t);
Xvoid MenuPopup( String);
X
XXtGeometryResult XtQueryGeometry( Widget, XtWidgetGeometry);
X
Xvoid XtRealizeWidget( Widget);
XBoolean XtIsRealized( Widget);
Xvoid XtUnrealizeWidget( Widget);
X
X/* void XtSetArg( Arg, String, XtArgVal); */
XArgList XtMergeArgLists( ArgList, Cardinal, ArgList, Cardinal);
X
Xvoid XtSetKeyboardFocus( Widget, Widget);
X
Xvoid XtSetKeyTranslator( Display*, XtKeyProc);
Xvoid XtTranslateKeycode( Display*, KeyCode, Modifiers, Modifiers*, KeySym*);
Xvoid XtTranslateKey( Display*, KeyCode*, Modifiers*, Modifiers*, KeySym*);
Xvoid XtRegisterCaseConverter( Display*, XtCaseProc, KeySym, KeySym);
Xvoid XtConvertCase( Display*, KeySym, KeySym*, KeySym*);
X
Xvoid XtSetSensitive( Widget, Boolean);
XBoolean XtIsSensitive( Widget);
X
Xvoid XtSetValues( Widget, ArgList, Cardinal);
Xvoid XtSetSubvalues( caddr_t, XtResourceList, Cardinal, ArgList, Cardinal);
Xvoid XtGetValues( Widget, ArgList, Cardinal);
Xvoid XtGetSubvalues( caddr_t, XtResourceList, Cardinal, ArgList, Cardinal);
X
Xvoid XtStringConversionWarning( String, String);
X
Xvoid XtTranslateCoords( Widget, Position, Position, Position*, Position*);
X
X#endif /* _ansiXt_h */
END_OF_FILE
if test 18708 -ne `wc -c <'ansiXt.h'`; then
    echo shar: \"'ansiXt.h'\" unpacked with wrong size!
fi
# end of 'ansiXt.h'
fi
echo shar: End of shell archive.
exit 0



More information about the Comp.sources.x mailing list