home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sa104os2.zip / SATHR104.ZIP / SATHER / CONTRIB / SCHNETTR / XLIB / GC.C < prev    next >
C/C++ Source or Header  |  1994-11-28  |  748b  |  35 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_ChangeGC_foreground (Display* display, GC gc, INT color)
  13. /* GC is struct* */
  14. {
  15.   XGCValues values;
  16.   values.foreground = color;
  17.   XChangeGC (display, gc, GCForeground, &values);
  18. }
  19.  
  20. void X_ChangeGC_background (Display* display, GC gc, INT color)
  21. /* GC is struct* */
  22. {
  23.   XGCValues values;
  24.   values.background = color;
  25.   XChangeGC (display, gc, GCBackground, &values);
  26. }
  27.  
  28. void X_ChangeGC_fill_style (Display* display, GC gc, INT style)
  29. /* GC is struct* */
  30. {
  31.   XGCValues values;
  32.   values.fill_style = style;
  33.   XChangeGC (display, gc, GCFillStyle, &values);
  34. }
  35.