home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sa104os2.zip / SATHR104.ZIP / SATHER / CONTRIB / SCHNETTR / XLIB / DRAWABLE.C < prev    next >
C/C++ Source or Header  |  1994-11-28  |  938b  |  40 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. void X_DrawPoint (Display* display, INT drawable, GC gc, INT x, INT y)
  13. /* GC is struct* */
  14. {
  15.   XDrawPoint (display, drawable, gc, x, y);
  16. }
  17.  
  18. void X_DrawLine (Display* display, INT drawable, GC gc,
  19.          INT x1, INT y1, INT x2, INT y2)
  20. /* GC is struct* */
  21. {
  22.   XDrawLine (display, drawable, gc, x1, y1, x2, y2);
  23. }
  24.  
  25. void X_CopyArea (Display* display, INT src, INT dest, GC gc,
  26.          INT src_x, INT src_y, INT width, INT height,
  27.          INT dest_x, INT dest_y)
  28. /* GC is struct* */
  29. {
  30.   XCopyArea (display, src, dest, gc,
  31.          src_x, src_y, width, height, dest_x, dest_y);
  32. }
  33.  
  34. void X_FillRectangle (Display* display, INT drawable, GC gc,
  35.               INT x, INT y, INT width, INT height)
  36. /* GC is struct* */
  37. {
  38.   XFillRectangle (display, drawable, gc, x, y, width, height);
  39. }
  40.