Drawing.h revision 6c321187
16c321187Smrg/* $Xorg: Drawing.h,v 1.5 2001/02/09 02:03:52 xorgcvs Exp $ */ 26c321187Smrg 36c321187Smrg/* 46c321187Smrg 56c321187SmrgCopyright 1988, 1998 The Open Group 66c321187Smrg 76c321187SmrgPermission to use, copy, modify, distribute, and sell this software and its 86c321187Smrgdocumentation for any purpose is hereby granted without fee, provided that 96c321187Smrgthe above copyright notice appear in all copies and that both that 106c321187Smrgcopyright notice and this permission notice appear in supporting 116c321187Smrgdocumentation. 126c321187Smrg 136c321187SmrgThe above copyright notice and this permission notice shall be included in 146c321187Smrgall copies or substantial portions of the Software. 156c321187Smrg 166c321187SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 176c321187SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 186c321187SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 196c321187SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 206c321187SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 216c321187SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 226c321187Smrg 236c321187SmrgExcept as contained in this notice, the name of The Open Group shall not be 246c321187Smrgused in advertising or otherwise to promote the sale, use or other dealings 256c321187Smrgin this Software without prior written authorization from The Open Group. 266c321187Smrg 276c321187Smrg*/ 286c321187Smrg/* $XFree86: xc/lib/Xmu/Drawing.h,v 1.6 2001/12/14 19:55:42 dawes Exp $ */ 296c321187Smrg 306c321187Smrg/* 316c321187Smrg * The interfaces described by this header file are for miscellaneous utilities 326c321187Smrg * and are not part of the Xlib standard. 336c321187Smrg */ 346c321187Smrg 356c321187Smrg#ifndef _XMU_DRAWING_H_ 366c321187Smrg#define _XMU_DRAWING_H_ 376c321187Smrg 386c321187Smrg#include <X11/Xlib.h> 396c321187Smrg#include <X11/Xfuncproto.h> 406c321187Smrg 416c321187Smrg#include <stdio.h> 426c321187Smrg#if ! defined(_XtIntrinsic_h) && ! defined(PIXEL_ALREADY_TYPEDEFED) 436c321187Smrgtypedef unsigned long Pixel; 446c321187Smrg#endif 456c321187Smrg 466c321187Smrg_XFUNCPROTOBEGIN 476c321187Smrg 486c321187Smrgvoid XmuDrawRoundedRectangle 496c321187Smrg( 506c321187Smrg Display *dpy, 516c321187Smrg Drawable draw, 526c321187Smrg GC gc, 536c321187Smrg int x, 546c321187Smrg int y, 556c321187Smrg int w, 566c321187Smrg int h, 576c321187Smrg int ew, 586c321187Smrg int eh 596c321187Smrg ); 606c321187Smrg 616c321187Smrgvoid XmuFillRoundedRectangle 626c321187Smrg( 636c321187Smrg Display *dpy, 646c321187Smrg Drawable draw, 656c321187Smrg GC gc, 666c321187Smrg int x, 676c321187Smrg int y, 686c321187Smrg int w, 696c321187Smrg int h, 706c321187Smrg int ew, 716c321187Smrg int eh 726c321187Smrg ); 736c321187Smrg 746c321187Smrgvoid XmuDrawLogo 756c321187Smrg( 766c321187Smrg Display *dpy, 776c321187Smrg Drawable drawable, 786c321187Smrg GC gcFore, 796c321187Smrg GC gcBack, 806c321187Smrg int x, 816c321187Smrg int y, 826c321187Smrg unsigned int width, 836c321187Smrg unsigned int height 846c321187Smrg ); 856c321187Smrg 866c321187SmrgPixmap XmuCreatePixmapFromBitmap 876c321187Smrg( 886c321187Smrg Display *dpy, 896c321187Smrg Drawable d, 906c321187Smrg Pixmap bitmap, 916c321187Smrg unsigned int width, 926c321187Smrg unsigned int height, 936c321187Smrg unsigned int depth, 946c321187Smrg unsigned long fore, 956c321187Smrg unsigned long back 966c321187Smrg); 976c321187Smrg 986c321187SmrgPixmap XmuCreateStippledPixmap 996c321187Smrg( 1006c321187Smrg Screen *screen, 1016c321187Smrg Pixel fore, 1026c321187Smrg Pixel back, 1036c321187Smrg unsigned int depth 1046c321187Smrg ); 1056c321187Smrg 1066c321187Smrgvoid XmuReleaseStippledPixmap 1076c321187Smrg( 1086c321187Smrg Screen *screen, 1096c321187Smrg Pixmap pixmap 1106c321187Smrg ); 1116c321187Smrg 1126c321187SmrgPixmap XmuLocateBitmapFile 1136c321187Smrg( 1146c321187Smrg Screen *screen, 1156c321187Smrg _Xconst char *name, 1166c321187Smrg char *srcname_return, 1176c321187Smrg int srcnamelen, 1186c321187Smrg int *width_return, 1196c321187Smrg int *height_return, 1206c321187Smrg int *xhot_return, 1216c321187Smrg int *yhot_return 1226c321187Smrg ); 1236c321187Smrg 1246c321187SmrgPixmap XmuLocatePixmapFile 1256c321187Smrg( 1266c321187Smrg Screen *screen, 1276c321187Smrg _Xconst char *name, 1286c321187Smrg unsigned long fore, 1296c321187Smrg unsigned long back, 1306c321187Smrg unsigned int depth, 1316c321187Smrg char *srcname_return, 1326c321187Smrg int srcnamelen, 1336c321187Smrg int *width_return, 1346c321187Smrg int *height_return, 1356c321187Smrg int *xhot_return, 1366c321187Smrg int *yhot_return 1376c321187Smrg ); 1386c321187Smrg 1396c321187Smrgint XmuReadBitmapData 1406c321187Smrg( 1416c321187Smrg FILE *fstream, 1426c321187Smrg unsigned int *width_return, 1436c321187Smrg unsigned int *height_return, 1446c321187Smrg unsigned char **datap_return, 1456c321187Smrg int *xhot_return, 1466c321187Smrg int *yhot_return 1476c321187Smrg); 1486c321187Smrg 1496c321187Smrgint XmuReadBitmapDataFromFile 1506c321187Smrg( 1516c321187Smrg _Xconst char *filename, 1526c321187Smrg unsigned int *width_return, 1536c321187Smrg unsigned int *height_return, 1546c321187Smrg unsigned char **datap_return, 1556c321187Smrg int *xhot_return, 1566c321187Smrg int *yhot_return 1576c321187Smrg ); 1586c321187Smrg 1596c321187Smrg_XFUNCPROTOEND 1606c321187Smrg 1616c321187Smrg#endif /* _XMU_DRAWING_H_ */ 162