Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:26

0001 /*
0002 
0003 Copyright 1988, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 */
0026 
0027 /*
0028  * The interfaces described by this header file are for miscellaneous utilities
0029  * and are not part of the Xlib standard.
0030  */
0031 
0032 #ifndef _XMU_DRAWING_H_
0033 #define _XMU_DRAWING_H_
0034 
0035 #include <X11/Xlib.h>
0036 #include <X11/Xfuncproto.h>
0037 
0038 #include <stdio.h>
0039 #if ! defined(_XtIntrinsic_h) && ! defined(PIXEL_ALREADY_TYPEDEFED)
0040 typedef unsigned long Pixel;
0041 #endif
0042 
0043 _XFUNCPROTOBEGIN
0044 
0045 void XmuDrawRoundedRectangle
0046 (
0047  Display        *dpy,
0048  Drawable       draw,
0049  GC             gc,
0050  int            x,
0051  int            y,
0052  int            w,
0053  int            h,
0054  int            ew,
0055  int            eh
0056  );
0057 
0058 void XmuFillRoundedRectangle
0059 (
0060  Display        *dpy,
0061  Drawable       draw,
0062  GC             gc,
0063  int            x,
0064  int            y,
0065  int            w,
0066  int            h,
0067  int            ew,
0068  int            eh
0069  );
0070 
0071 void XmuDrawLogo
0072 (
0073  Display        *dpy,
0074  Drawable       drawable,
0075  GC         gcFore,
0076  GC         gcBack,
0077  int            x,
0078  int            y,
0079  unsigned int       width,
0080  unsigned int       height
0081  );
0082 
0083 Pixmap XmuCreatePixmapFromBitmap
0084 (
0085  Display        *dpy,
0086  Drawable       d,
0087  Pixmap         bitmap,
0088  unsigned int       width,
0089  unsigned int       height,
0090  unsigned int       depth,
0091  unsigned long      fore,
0092  unsigned long      back
0093 );
0094 
0095 Pixmap XmuCreateStippledPixmap
0096 (
0097  Screen         *screen,
0098  Pixel          fore,
0099  Pixel          back,
0100  unsigned int       depth
0101  );
0102 
0103 void XmuReleaseStippledPixmap
0104 (
0105  Screen         *screen,
0106  Pixmap         pixmap
0107  );
0108 
0109 Pixmap XmuLocateBitmapFile
0110 (
0111  Screen         *screen,
0112  _Xconst char       *name,
0113  char           *srcname_return,
0114  int            srcnamelen,
0115  int            *width_return,
0116  int            *height_return,
0117  int            *xhot_return,
0118  int            *yhot_return
0119  );
0120 
0121 Pixmap XmuLocatePixmapFile
0122 (
0123  Screen         *screen,
0124  _Xconst char       *name,
0125  unsigned long      fore,
0126  unsigned long      back,
0127  unsigned int       depth,
0128  char           *srcname_return,
0129  int            srcnamelen,
0130  int            *width_return,
0131  int            *height_return,
0132  int            *xhot_return,
0133  int            *yhot_return
0134  );
0135 
0136 int XmuReadBitmapData
0137 (
0138  FILE           *fstream,
0139  unsigned int       *width_return,
0140  unsigned int       *height_return,
0141  unsigned char      **datap_return,
0142  int            *xhot_return,
0143  int            *yhot_return
0144 );
0145 
0146 int XmuReadBitmapDataFromFile
0147 (
0148  _Xconst char       *filename,
0149  unsigned int       *width_return,
0150  unsigned int       *height_return,
0151  unsigned char      **datap_return,
0152  int            *xhot_return,
0153  int            *yhot_return
0154  );
0155 
0156 _XFUNCPROTOEND
0157 
0158 #endif /* _XMU_DRAWING_H_ */