home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / xmu / drawing.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  4.3 KB  |  173 lines

  1. /* $XConsortium: Drawing.h,v 1.11 94/04/17 20:16:03 converse Exp $ */
  2.  
  3. /*
  4.  
  5. Copyright (c) 1988  X Consortium
  6.  
  7. Permission is hereby granted, free of charge, to any person obtaining a copy
  8. of this software and associated documentation files (the "Software"), to deal
  9. in the Software without restriction, including without limitation the rights
  10. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. copies of the Software, and to permit persons to whom the Software is
  12. furnished to do so, subject to the following conditions:
  13.  
  14. The above copyright notice and this permission notice shall be included in
  15. all copies or substantial portions of the Software.
  16.  
  17. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  20. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  21. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  22. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23.  
  24. Except as contained in this notice, the name of the X Consortium shall not be
  25. used in advertising or otherwise to promote the sale, use or other dealings
  26. in this Software without prior written authorization from the X Consortium.
  27.  
  28. */
  29.  
  30. /*
  31.  * The interfaces described by this header file are for miscellaneous utilities
  32.  * and are not part of the Xlib standard.
  33.  */
  34.  
  35. #ifndef _XMU_DRAWING_H_
  36. #define _XMU_DRAWING_H_
  37.  
  38. #include <X11/Xfuncproto.h>
  39.  
  40. #if NeedFunctionPrototypes
  41. #include <stdio.h>
  42. #if ! defined(_XtIntrinsic_h) && ! defined(PIXEL_ALREADY_TYPEDEFED)
  43. typedef unsigned long Pixel;
  44. #endif
  45. #endif
  46.  
  47. _XFUNCPROTOBEGIN
  48.  
  49. extern void XmuDrawRoundedRectangle(
  50. #if NeedFunctionPrototypes
  51.     Display*    /* dpy */,
  52.     Drawable     /* draw */,
  53.     GC         /* gc */,
  54.     int        /* x */,
  55.     int        /* y */,
  56.     int        /* w */,
  57.     int        /* h */,
  58.     int        /* ew */,
  59.     int        /* eh */
  60. #endif
  61. );
  62.  
  63. extern void XmuFillRoundedRectangle(
  64. #if NeedFunctionPrototypes
  65.     Display*    /* dpy */,
  66.     Drawable     /* draw */,
  67.     GC         /* gc */,
  68.     int        /* x */,
  69.     int        /* y */,
  70.     int        /* w */,
  71.     int        /* h */,
  72.     int        /* ew */,
  73.     int        /* eh */
  74. #endif
  75. );
  76.  
  77. extern void XmuDrawLogo(
  78. #if NeedFunctionPrototypes
  79.     Display*    /* dpy */,
  80.     Drawable     /* drawable */,
  81.     GC        /* gcFore */,
  82.     GC        /* gcBack */,
  83.     int        /* x */,
  84.     int        /* y */,
  85.     unsigned int /* width */,
  86.     unsigned int /* height */
  87. #endif
  88. );
  89.  
  90. extern Pixmap XmuCreatePixmapFromBitmap(
  91. #if NeedFunctionPrototypes
  92.     Display*        /* dpy */,
  93.     Drawable         /* d */,
  94.     Pixmap         /* bitmap */,
  95.     unsigned int    /* width */,
  96.     unsigned int    /* height */,
  97.     unsigned int    /* depth */,
  98.     unsigned long    /* fore */,
  99.     unsigned long    /* back */
  100. #endif
  101. );
  102.  
  103. extern Pixmap XmuCreateStippledPixmap(
  104. #if NeedFunctionPrototypes
  105.     Screen*        /* screen */,
  106.     Pixel        /* fore */,
  107.     Pixel        /* back */,
  108.     unsigned int    /* depth */
  109. #endif
  110. );
  111.  
  112. extern void XmuReleaseStippledPixmap(
  113. #if NeedFunctionPrototypes
  114.     Screen*        /* screen */,
  115.     Pixmap         /* pixmap */
  116. #endif
  117. );
  118.  
  119. extern Pixmap XmuLocateBitmapFile(
  120. #if NeedFunctionPrototypes
  121.     Screen*        /* screen */,
  122.     _Xconst char*    /* name */,
  123.     char*        /* srcname_return */,
  124.     int         /* srcnamelen */,
  125.     int*        /* width_return */,
  126.     int*        /* height_return, */,
  127.     int*        /* xhot_return */,
  128.     int*        /* yhot_return */
  129. #endif
  130. );
  131.  
  132. extern Pixmap XmuLocatePixmapFile(
  133. #if NeedFunctionPrototypes
  134.     Screen*        /* screen */,
  135.     _Xconst char*    /* name */,
  136.     unsigned long    /* fore */,
  137.     unsigned long    /* back */,
  138.     unsigned int    /* depth */,
  139.     char*        /* srcname_return */,
  140.     int         /* srcnamelen */,
  141.     int*        /* width_return */,
  142.     int*        /* height_return, */,
  143.     int*        /* xhot_return */,
  144.     int*        /* yhot_return */
  145. #endif
  146. );
  147.  
  148. extern int XmuReadBitmapData(
  149. #if NeedFunctionPrototypes
  150.     FILE*        /* fstream */,
  151.     unsigned int*    /* width_return */,
  152.     unsigned int*    /* height_return */,
  153.     unsigned char**    /* datap_return */,
  154.     int*        /* xhot_return */,
  155.     int*        /* yhot_return */
  156. #endif
  157. );
  158.  
  159. extern int XmuReadBitmapDataFromFile(
  160. #if NeedFunctionPrototypes
  161.     _Xconst char*    /* filename */,
  162.     unsigned int*    /* width_return */,
  163.     unsigned int*    /* height_return */,
  164.     unsigned char**    /* datap_return */,
  165.     int*        /* xhot_return */,
  166.     int*        /* yhot_return */
  167. #endif
  168. );
  169.  
  170. _XFUNCPROTOEND
  171.  
  172. #endif /* _XMU_DRAWING_H_ */
  173.