Drawing.h

Go to the documentation of this file.
00001 /* $Xorg: Drawing.h,v 1.5 2001/02/09 02:03:52 xorgcvs Exp $ */
00002 
00003 /*
00004  
00005 Copyright 1988, 1998  The Open Group
00006 
00007 Permission to use, copy, modify, distribute, and sell this software and its
00008 documentation for any purpose is hereby granted without fee, provided that
00009 the above copyright notice appear in all copies and that both that
00010 copyright notice and this permission notice appear in supporting
00011 documentation.
00012 
00013 The above copyright notice and this permission notice shall be included in
00014 all copies or substantial portions of the Software.
00015 
00016 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00017 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00018 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00019 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00020 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00021 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00022 
00023 Except as contained in this notice, the name of The Open Group shall not be
00024 used in advertising or otherwise to promote the sale, use or other dealings
00025 in this Software without prior written authorization from The Open Group.
00026 
00027 */
00028 /* $XFree86: xc/lib/Xmu/Drawing.h,v 1.6 2001/12/14 19:55:42 dawes Exp $ */
00029 
00030 /*
00031  * The interfaces described by this header file are for miscellaneous utilities
00032  * and are not part of the Xlib standard.
00033  */
00034 
00035 #ifndef _XMU_DRAWING_H_
00036 #define _XMU_DRAWING_H_
00037 
00038 #include <X11/Xlib.h>
00039 #include <X11/Xfuncproto.h>
00040 
00041 #include <stdio.h>
00042 #if ! defined(_XtIntrinsic_h) && ! defined(PIXEL_ALREADY_TYPEDEFED)
00043 typedef unsigned long Pixel;
00044 #endif
00045 
00046 _XFUNCPROTOBEGIN
00047 
00048 void XmuDrawRoundedRectangle
00049 (
00050  Display                *dpy,
00051  Drawable               draw,
00052  GC                     gc,
00053  int                    x,
00054  int                    y,
00055  int                    w,
00056  int                    h,
00057  int                    ew,
00058  int                    eh
00059  );
00060 
00061 void XmuFillRoundedRectangle
00062 (
00063  Display                *dpy,
00064  Drawable               draw,
00065  GC                     gc,
00066  int                    x,
00067  int                    y,
00068  int                    w,
00069  int                    h,
00070  int                    ew,
00071  int                    eh
00072  );
00073 
00074 void XmuDrawLogo
00075 (
00076  Display                *dpy,
00077  Drawable               drawable,
00078  GC                     gcFore,
00079  GC                     gcBack,
00080  int                    x,
00081  int                    y,
00082  unsigned int           width,
00083  unsigned int           height
00084  );
00085 
00086 Pixmap XmuCreatePixmapFromBitmap
00087 (
00088  Display                *dpy,
00089  Drawable               d,
00090  Pixmap                 bitmap,
00091  unsigned int           width,
00092  unsigned int           height,
00093  unsigned int           depth,
00094  unsigned long          fore,
00095  unsigned long          back
00096 );
00097 
00098 Pixmap XmuCreateStippledPixmap
00099 (
00100  Screen                 *screen,
00101  Pixel                  fore,
00102  Pixel                  back,
00103  unsigned int           depth
00104  );
00105 
00106 void XmuReleaseStippledPixmap
00107 (
00108  Screen                 *screen,
00109  Pixmap                 pixmap
00110  );
00111 
00112 Pixmap XmuLocateBitmapFile
00113 (
00114  Screen                 *screen,
00115  _Xconst char           *name,
00116  char                   *srcname_return,
00117  int                    srcnamelen,
00118  int                    *width_return,
00119  int                    *height_return,
00120  int                    *xhot_return,
00121  int                    *yhot_return
00122  );
00123 
00124 Pixmap XmuLocatePixmapFile
00125 (
00126  Screen                 *screen,
00127  _Xconst char           *name,
00128  unsigned long          fore,
00129  unsigned long          back,
00130  unsigned int           depth,
00131  char                   *srcname_return,
00132  int                    srcnamelen,
00133  int                    *width_return,
00134  int                    *height_return,
00135  int                    *xhot_return,
00136  int                    *yhot_return
00137  );
00138 
00139 int XmuReadBitmapData
00140 (
00141  FILE                   *fstream,
00142  unsigned int           *width_return,
00143  unsigned int           *height_return,
00144  unsigned char          **datap_return,
00145  int                    *xhot_return,
00146  int                    *yhot_return
00147 );
00148 
00149 int XmuReadBitmapDataFromFile
00150 (
00151  _Xconst char           *filename,
00152  unsigned int           *width_return,
00153  unsigned int           *height_return,
00154  unsigned char          **datap_return,
00155  int                    *xhot_return,
00156  int                    *yhot_return
00157  );
00158 
00159 _XFUNCPROTOEND
00160 
00161 #endif /* _XMU_DRAWING_H_ */

Generated on Sun Mar 4 15:03:56 2007 for Scilab [trunk] by  doxygen 1.5.1