home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / DrawP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  7.3 KB  |  236 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2.2
  7. */ 
  8. /*   $RCSfile: DrawP.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:37:36 $ */
  9. /*
  10. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  11. /*
  12. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  13. #ifndef _XmDrawP_h
  14. #define _XmDrawP_h
  15.  
  16. #include <Xm/XmP.h>
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22.  
  23. /********    Private Function Declarations    ********/
  24. #ifdef _NO_PROTO
  25.  
  26. extern void _XmDrawShadows() ;
  27. extern void _XmClearBorder() ;
  28. extern void _XmDrawSeparator() ;
  29. extern void _XmDrawDiamond() ;
  30. extern void _XmDrawHighlight() ;
  31. extern void _XmDrawSimpleHighlight() ;
  32. extern void _XmDrawArrow() ;
  33.  
  34. #else
  35.  
  36. extern void _XmDrawShadows( 
  37.                         Display *display,
  38.                         Drawable d,
  39.                         GC top_gc,
  40.                         GC bottom_gc,
  41. #if NeedWidePrototypes
  42.                         int x,
  43.                         int y,
  44.                         int width,
  45.                         int height,
  46.                         int shad_thick,
  47. #else
  48.                         Position x,
  49.                         Position y,
  50.                         Dimension width,
  51.                         Dimension height,
  52.                         Dimension shad_thick,
  53. #endif /* NeedWidePrototypes */
  54.                         unsigned int shad_type) ;
  55. extern void _XmClearBorder( 
  56.                         Display *display,
  57.                         Window w,
  58. #if NeedWidePrototypes
  59.                         int x,
  60.                         int y,
  61.                         int width,
  62.                         int height,
  63.                         int shadow_thick) ;
  64. #else
  65.                         Position x,
  66.                         Position y,
  67.                         Dimension width,
  68.                         Dimension height,
  69.                         Dimension shadow_thick) ;
  70. #endif /* NeedWidePrototypes */
  71. extern void _XmDrawSeparator( 
  72.                         Display *display,
  73.                         Drawable d,
  74.                         GC top_gc,
  75.                         GC bottom_gc,
  76.                         GC separator_gc,
  77. #if NeedWidePrototypes
  78.                         int x,
  79.                         int y,
  80.                         int width,
  81.                         int height,
  82.                         int shadow_thick,
  83.                         int margin,
  84.                         unsigned int orientation,
  85.                         unsigned int separator_type) ;
  86. #else
  87.                         Position x,
  88.                         Position y,
  89.                         Dimension width,
  90.                         Dimension height,
  91.                         Dimension shadow_thick,
  92.                         Dimension margin,
  93.                         unsigned char orientation,
  94.                         unsigned char separator_type) ;
  95. #endif /* NeedWidePrototypes */
  96. extern void _XmDrawDiamond( 
  97.                         Display *display,
  98.                         Drawable d,
  99.                         GC top_gc,
  100.                         GC bottom_gc,
  101.                         GC center_gc,
  102. #if NeedWidePrototypes
  103.                         int x,
  104.                         int y,
  105.                         int width,
  106.                         int height,
  107.                         int shadow_thick,
  108.                         int fill) ;
  109. #else
  110.                         Position x,
  111.                         Position y,
  112.                         Dimension width,
  113.                         Dimension height,
  114.                         Dimension shadow_thick,
  115.                         Dimension fill) ;
  116. #endif /* NeedWidePrototypes */
  117.  
  118. extern void _XmDrawSimpleHighlight( 
  119.                         Display *display,
  120.                         Drawable d,
  121.                         GC gc,
  122. #if NeedWidePrototypes
  123.                         int x,
  124.                         int y,
  125.                         int width,
  126.                         int height,
  127.                         int highlight_thick);
  128. #else
  129.                         Position x,
  130.                         Position y,
  131.                         Dimension width,
  132.                         Dimension height,
  133.                         Dimension highlight_thick);
  134. #endif /* NeedWidePrototypes */
  135. extern void _XmDrawHighlight( 
  136.                         Display *display,
  137.                         Drawable d,
  138.                         GC gc,
  139. #if NeedWidePrototypes
  140.                         int x,
  141.                         int y,
  142.                         int width,
  143.                         int height,
  144.                         int highlight_thick,
  145. #else
  146.                         Position x,
  147.                         Position y,
  148.                         Dimension width,
  149.                         Dimension height,
  150.                         Dimension highlight_thick,
  151. #endif /* NeedWidePrototypes */
  152.                         int line_style) ;
  153. extern void _XmDrawArrow( 
  154.                         Display *display,
  155.                         Drawable d,
  156.                         GC top_gc,
  157.                         GC bot_gc,
  158.                         GC cent_gc,
  159. #if NeedWidePrototypes
  160.                         int x,
  161.                         int y,
  162.                         int width,
  163.                         int height,
  164.                         int shadow_thick,
  165.                         unsigned int direction) ;
  166. #else
  167.                         Position x,
  168.                         Position y,
  169.                         Dimension width,
  170.                         Dimension height,
  171.                         Dimension shadow_thick,
  172.                         unsigned char direction) ;
  173. #endif /* NeedWidePrototypes */
  174.  
  175. #endif /* _NO_PROTO */
  176. /********    End Private Function Declarations    ********/
  177.  
  178. #ifdef WINTIF 
  179. #ifdef _NO_PROTO
  180. extern void _WXmDrawDashedBorder ();
  181. extern void _WXmDrawArrow ();
  182. extern void _WXmDrawToggle ();
  183. #else
  184. extern void _WXmDrawDashedBorder(Display * display,
  185.                                  Drawable d,
  186.                                  GC gc,
  187. #if NeedWidePrototypes
  188.                                  int x,
  189.                                  int y,
  190.                                  int width,
  191.                                  int height);
  192. #else
  193.                                  Position x,
  194.                                  Position y,
  195.                                  Dimension width,
  196.                                  Dimension height);
  197. #endif /* NeedWidePrototypes */
  198.  
  199. extern void _WXmDrawArrow(Display *display, Drawable d,
  200.                   GC gc,
  201. #if NeedWidePrototypes
  202.                   int x, int y,
  203.                   int width, int height,
  204.                   unsigned int direction);
  205. #else
  206.                   Position x, Position y,
  207.                   Dimension width, Dimension height,
  208.                   unsigned char direction);
  209. #endif /* NeedWidePrototypes */
  210.  
  211. extern void _WXmDrawToggle(Display *display, Drawable d,
  212.                     GC outer_gc, GC center_gc,
  213. #if NeedWidePrototypes
  214.                     int x, int y,
  215.                     int length,
  216.                     int shadow_thick,
  217. #else
  218.                     Position x, Position y,
  219.                     Dimension length,
  220.                     Dimension shadow_thick,
  221. #endif /* NeedWidePrototypes */
  222.                     Pixmap pixmap);
  223.  
  224. #endif /* _NO_PROTO */
  225.  
  226. #define WXM_MIN_INDICATOR_SIZE 13
  227.  
  228. #endif /* WINTIF */
  229.  
  230.  
  231. #if defined(__cplusplus) || defined(c_plusplus)
  232. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  233. #endif
  234.  
  235. #endif /* _XmDrawP_h */
  236.