annotate src/xmu.h @ 424:11054d720c21 r21-2-20

Import from CVS: tag r21-2-20
author cvs
date Mon, 13 Aug 2007 11:26:11 +0200
parents 697ef44129c6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Compatibility routines based on code from the MIT Xmu library */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 /* Synched up with: Not in FSF. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 #ifdef HAVE_XMU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 # include <X11/Xmu/CharSet.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 # include <X11/Xmu/Converters.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 # include <X11/Xmu/CurUtil.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 # include <X11/Xmu/Drawing.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 # include <X11/Xmu/Error.h>
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
12 # include <X11/Xmu/Misc.h>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 /* Do the EDITRES protocol if running X11R5 (or later) version */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 #if (XtSpecificationRelease >= 5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 /* #### No dice if we don't have XMU until someone ports
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 _XEditResCheckMessages to xmu.c */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 #define HACK_EDITRES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 #include <X11/Xmu/Editres.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 #endif /* R5+ */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
24 int XmuCursorNameToIndex (CONST char *name);
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
25 int XmuReadBitmapDataFromFile (CONST char *filename, unsigned int *width,
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 unsigned int *height, unsigned char **datap,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 int *x_hot, int *y_hot);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 int XmuPrintDefaultErrorMessage (Display *dpy, XErrorEvent *event, FILE *fp);
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
29 void XmuCopyISOLatin1Lowered (char *, CONST char *);
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
424
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
31 #define Max(x, y) (((x) > (y)) ? (x) : (y))
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
32 #define Min(x, y) (((x) < (y)) ? (x) : (y))
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
33 #define AssignMax(x, y) {if ((y) > (x)) x = (y);}
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
34 #define AssignMin(x, y) {if ((y) < (x)) x = (y);}
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
35 typedef enum {XtorientHorizontal, XtorientVertical} XtOrientation;
11054d720c21 Import from CVS: tag r21-2-20
cvs
parents: 412
diff changeset
36
412
697ef44129c6 Import from CVS: tag r21-2-14
cvs
parents: 398
diff changeset
37 #endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38