home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / e20313sr.zip / emacs / 20.3.1 / src / pmlib.h < prev    next >
Text File  |  1999-07-31  |  2KB  |  74 lines

  1. /* pmlib.h -- Minimal X11/Xlib.h for the OS/2 Presentation Manager
  2.    Copyright (C) 1993-1996 Eberhard Mattes.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19. Boston, MA 02111-1307, USA.  */
  20.  
  21.  
  22. #if !defined (_PMLIB_H)
  23. #define _PMLIB_H
  24.  
  25. typedef int GC;
  26. typedef int Pixmap;
  27. typedef unsigned long Pixel;
  28. typedef int Display;
  29. typedef int Colormap;
  30.  
  31. typedef struct pm_font
  32. {
  33.   struct pm_font *next;
  34.   struct
  35.     {
  36.       int width;
  37.     } max_bounds;
  38.   int ascent;
  39.   int descent;
  40.   char name[100];
  41. } XFontStruct;
  42.  
  43. typedef struct
  44. {
  45.   int width, height, x, y;
  46. } XRectangle;
  47.  
  48. typedef struct
  49. {
  50.   int pixel;
  51. } XColor;
  52.  
  53. typedef int Widget;
  54. typedef int LWLIB_ID;
  55. typedef int XtPointer;
  56.  
  57. #define DefaultScreenOfDisplay(d)    0
  58. #define DefaultColormapOfScreen(s)    0
  59.  
  60.  
  61. /* void XFreeGC (Display *dpy, GC gc); */
  62. #define XFreeGC(dpy,gc)            ((void)0)
  63.  
  64. XFontStruct *XLoadQueryFont (Display *dpy, char *name);
  65. int XParseColor (Display *dpy, Colormap cmap, char *name, XColor *color);
  66.  
  67. /* void XFreeFont (Display *dpy, XFontStruct *font); */
  68. #define XFreeFont(dpy,font)        ((void)0)
  69.  
  70. /* int XAllocColor (Display *dpy, Colormap cmap, XColor *color); */
  71. #define XAllocColor(dpy,cmap,color)    1
  72.  
  73. #endif
  74.