home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sa104os2.zip / SATHR104.ZIP / SATHER / CONTRIB / SCHNETTR / XLIB / WINDOW.C < prev    next >
C/C++ Source or Header  |  1994-11-28  |  1KB  |  60 lines

  1. /* -*-C-*-
  2.  * access to the X Window System for Sather
  3.  * (c) 1994/11/03 - 1994/11/28 by Erik Schnetter
  4.  */
  5.  
  6. #include <X11/X.h>
  7. #include <X11/Xlib.h>
  8. #include "../../System/header.h"
  9.  
  10.  
  11.  
  12. INT X_CreateSimpleWindow (Display* display, INT parent,
  13.               INT x, INT y,    INT width, INT height,
  14.               INT border_width,
  15.               INT border, INT background)
  16. {
  17.   return XCreateSimpleWindow (display, parent,
  18.                   x, y, width, height,
  19.                   border_width,
  20.                   border, background);
  21. }
  22.  
  23. void X_DestroyWindow (Display* display, INT window)
  24. {
  25.   XDestroyWindow (display, window);
  26. }
  27.  
  28.  
  29.  
  30. void X_MapWindow (Display* display, INT window)
  31. {
  32.   XMapWindow (display, window);
  33. }
  34.  
  35. void X_UnmapWindow (Display* display, INT window)
  36. {
  37.   XUnmapWindow (display, window);
  38. }
  39.  
  40.  
  41.  
  42. void X_SelectInput (Display* display, INT window, INT mask)
  43. {
  44.   XSelectInput (display, window, mask);
  45. }
  46.  
  47.  
  48.  
  49. void X_StoreName (Display* display, INT window, CHAR* name)
  50. {
  51.   XStoreName (display, window, name);
  52. }
  53.  
  54. void* X_FetchName (Display* display, INT window)
  55. {
  56.   CHAR* ptr;
  57.   XFetchName (display, window, &ptr);
  58.   return ptr;
  59. }
  60.