File indexing completed on 2025-01-18 10:14:26
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
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